Slashdot Mirror


Taking Action For Free JavaScript

Atticus Rex writes "Today the FSF kicked off a campaign to put pressure on webmasters to make their sites work without requiring nonfree JavaScript. The first target is Regulations.gov, a site the US government uses to take public comments on proposed regulations. Right now, the site requires nonfree JavaScript, requiring citizens to sacrifice their freedom as users to take part in their democracy."

30 of 318 comments (clear)

  1. Gosh!!! by NoNonAlphaCharsHere · · Score: 5, Insightful

    I never realized visiting a website required me to "sacrifice my freedom"!

    1. Re:Gosh!!! by NoNonAlphaCharsHere · · Score: 3, Funny

      Don't make fun of me. The whole notion of non-free Javascript has me clutching my pearls.

    2. Re:Gosh!!! by grcumb · · Score: 5, Informative

      I never realized visiting a website required me to "sacrifice my freedom"!

      Look, I know it's a lot to ask that you actually pause to reflect before dashing off that Frist Psot and racking up all that precious karma. But why don't you wind down your supercilious, holier-than-thou tone and actually read what Stallmann says about the Javascript trap?

      If you did, you'd see that he has a perfectly valid point about how the effect of non-Free licenses, combined with minified (and therefore effectively unreadable) code, especially that which uses dynamically constructed elements, is hard to read, hard to share and hard for the community to improve. The tone of the article is pragmatic, reasoned and doesn't jump up and down crying 'Injustice!' or waving a placard. Much as you might hate this, it's a reasonable technical argument that follows logically from the concept of Free Software itself.

      If you want to argue against Free Software on its merits, knock yourself out. I work with both proprietary and Free software all the time, and I see the benefits of both. But when you start pitching a fit and belittling someone else's calm, reasonably stated points without even attempting to address the logic, then you've lost any credibility. Honestly, you can ridicule Stallmann all you like, but you might want to consider what you look like to others as you indulge in this kind of adolescent, pop-collared frat-boy humour.

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
    3. Re:Gosh!!! by siride · · Score: 5, Insightful

      Minified JavaScript is for convenience of transport. It's no different from compiled code, which GNU software happily produces.

    4. Re:Gosh!!! by Anonymous Coward · · Score: 5, Insightful

      Remember when the FSF was all about having choice instead of pushing their agenda, when the whole goal was to make sure there was always an alternative so you didn't HAVE to use proprietary if you didn't want to? Wasn't that nice, didn't they seem a hell of a lot less circle loopy in those days? why oh why must every single cause end up ruled by the completely loony tune?

      Firstly, Stallman founded the FSF and is still president of it.

      Secondly, when was the FSF ever about choice? I think you may be confused with the Open Source Initiative (who have never actually accomplished anything of note interestingly enough); the FSF has been bluntly pushing the whole "proprietary software is immoral" ideology from the beginning, nothing has changed on that front. Why do you think they created the GPL instead of just using BSD 3-clause if they actually ever thought the way you seem to think they did?

    5. Re:Gosh!!! by NoNonAlphaCharsHere · · Score: 4, Interesting

      I thought it was pretty obvious that my Frist Psot was about making fun of the ridiculuous levels of Category Five Hyperbole. I'm not arguing against free software, I'm arguing against batshit-crazy concepts and statements like, oh, I don't know, saying that visiting a website that doesn't subscribe to a particular (rather narrowly and authoritively defined by RMS, I might add) philosophy causes me to "sacrifice my freedom". How can you read that without rolling your eyes? I didn't start the "supercilliousness", HE did.

    6. Re:Gosh!!! by exomondo · · Score: 4, Interesting

      I think you may be confused with the Open Source Initiative (who have never actually accomplished anything of note interestingly enough); the FSF has been bluntly pushing the whole "proprietary software is immoral" ideology from the beginning, nothing has changed on that front.

      I agree, I remember Bruce Perens pointing out that the only real point of difference between him and Richard Stallman in terms of ideology was that whilst he believed Free and non-Free Software should co-exist Stallman believes everything should only ever be Free Software.

    7. Re:Gosh!!! by ozmanjusri · · Score: 5, Informative

      I think we can all agree that the FSF reached PETA "sea kittens" levels of batshit

      Actually no.

      I really like this idea. Basically all they're saying is that a website should tell you if you're entitled to use something like Greasemonkey to replace their javascript with your own clean version (eg if they use crappy, DRM ridden, or annoying javascript). It's a nice, simple way to give control back to the computer user, which is the FSF's raison d'etre.

      Simple, clear and functional. I like it.

      --
      "I've got more toys than Teruhisa Kitahara."
    8. Re:Gosh!!! by exomondo · · Score: 5, Funny

      If I see 'minified' code I assume it's malware.

      wow, i'm sure that's really accurate too.

    9. Re:Gosh!!! by fuzzyfuzzyfungus · · Score: 3, Insightful

      The FSF's position on javascript is perfectly consistent with their position on other software; because javascript is just software. It hardly seems surprising that they would be displeased that government-backed, your-tax-dollars-at-work sites would be relying on proprietary javascript.

    10. Re:Gosh!!! by fuzzyfuzzyfungus · · Score: 3, Insightful

      It's also worth remembering to evaluate 'fananticism', and decide whether or not 'pragmatic' or 'realistic' are actually good things, in the context of all the players:

      If Stallman were, by some cosmic quirk, made omnipotent dictator for life, the question of whether he is 'too fanatical' would start to matter a bit more. As it is, though, Stallman has zero coercive power over just about anybody, and isn't likely to obtain any more(if anything, the SFLC is pretty chill about litigating against even people who voluntarily placed themselves under the terms of the GPL by using GPLed code for some purpose or other, they could turn the screws harder than they do, and I'd take them over the BSA any day...) Be he ever so fanatical, his power is so limited(and so counter-balanced by deep pocketed and well-lawyered proprietary vendors) that his influence on you cannot be greater than, and may be less, than attempts at persuasion and voluntary offers.

      Then there's the fact that, given the more or less continual pressure from people who see copyright maximalism and DRM as good for their bottom lines, 'pragmatic' compromising is likely to result in outcomes that converge, more or less swiftly, with those they originally stood against. If one side stands firm, and the other agree's to split the difference, you Zeno your way toward agreement within just a few rounds.

    11. Re:Gosh!!! by fuzzyfuzzyfungus · · Score: 3, Informative

      Minified JavaScript is for convenience of transport. It's no different from compiled code, which GNU software happily produces.

      And, you'll notice that GNU software is licensed so as to ensure that you have access to the uncompiled stuff, specifically because compiled code is dubiously fit for anything except execution.

      If there is an option to get at the un-minified stuff, I'd be astonished if you heard another word on the matter from the FSF about the use of the minified form for the sake of bandwidth use and efficiency.

    12. Re:Gosh!!! by Cajun+Hell · · Score: 5, Insightful

      a website should tell you if you're entitled to use something like Greasemonkey to replace their javascript with your own clean version

      Why would I ever want some website's opinion about that? I wouldn't even trust a judge's website to correctly guess my decision in the matter of what code I allow my computer to run. Asking websites' opinions just implies they could possibly have a say (or even a vote) in the matter, which is of course completely preposterous.

      --
      "Believe me!" -- Donald Trump
    13. Re:Gosh!!! by b4dc0d3r · · Score: 4, Insightful

      If you did, you'd see that he has a perfectly valid point about how the effect of non-Free licenses, combined with minified (and therefore effectively unreadable) code

      No. Free Software wants JavaScript to be readable, and understandable. This is a valid point, regardless of the language and the availability of the source code.

      We cannot make readable C from a decompilation, mostly because of different compilers and different optimization levels. We can decompile Java and C#/VB.NET because there is one and only one VM or IL definition.

      JavaScript minification is only about renaming variables. I can tell you there is only one thing in the way of understanding JavaScript minification. Two, if you include a generic text editor's lack of "replace word only" functionality.

      You have to read the de-minified version, just like any other code. You have to read, or if your language is not the same as the author's, translate, the variable names, just like the original source code.

      JavaScript as it runs in your browser is exactly the same as it runs interpreted, compiled, or in any other fashion. You have the freedom to block it, you have the freedom to modify it (GreaseMonky is just one of many), you have the freedom to read it, save it, or do whatever else you want. If it executes on your machine, I think the FSF would support any measure of scrutiny you wish to apply before, during, or after executing.

      I have read "free" software source code, and found it no more intelligible than minified JavaScript. Some no more readable than a disassembly.

      If you are going to object to minified JS, you also have to object to any code which is difficult to comprehend, and then you place a subjective quality on what is truly free. Firefox, to me, is no longer free software. I debugged just the installer for a bug report on ReactOS, and found piles of code which was misleading, in the most complimentary term. I offered to make a change to Doom, which took me 3 times as long as I thought, and ultimately failed to achieve, because the seemingly readable code was slightly obfuscated by the build process.

      Either source code is enough, or it has to be readable. If we say readable, we have to define the least common denominator who should be able to read it. If we do that, it becomes a subjective criterion, and probably a moving target.

      So here we are, at a crossroads. If a project produces the source code needed to build a complete, binary-perfect copy of their executable(s), but it was run through the C pre-processor, or C++ pre-processor, is that enough? It compiles, it builds with the version of tools the provider used... if you discount the pre-processor, it is effectively the original source code provided to the compiler. Is that enough?

      JavaScript is what is provided to the interpreter - minified or not. Is that enough?

      I say it is, and I disagree 100% with the FSF on this point. Named variables are nice, but they can be interpreted by the usage, if you are going to read the code.

      If you are going to take an ideological stance and say "I don't understand this, therefore it is not enough", you are going to have to establish an objective baseline. I can understand optimized assembly, and some pure hex - is that free enough?

      This is the opinion of someone who believes that source is provided for everything that executes, or is interpreted. Surely to fuck if you wrote a compiler, you can understand this. If you wrote an interpreter it is easier to understand.

      If you don't understand anything else, think of JavaScript like Spanish. Lots of people understand it, most people don't. In this case, you don't. You are provided all instructions in Spanish. Is it more difficult to understand the instructions if given in Spanish? Of course. But I don't see the objection. Especially if you allow C programs written with Spanish, or French, or any other foreign language to be classified as free.

      Let us support the FSF in making all software English only. Or we could just say GFY.

    14. Re:Gosh!!! by serviscope_minor · · Score: 4, Informative

      that they NEVER stay reasonable, they ALWAYS end up a parody of themselves

      RMS and the FSF hve been pretty upfront about their goals since the beginning and these have not changed.

      Given the propensity for people to make up crap about RMS, I'm going to call bullshit unless you can provide some kind of evidence backing up this claim.

      --
      SJW n. One who posts facts.
    15. Re:Gosh!!! by TheCRAIGGERS · · Score: 3, Insightful

      It seems you don't live in the USA. A place where, by modifying the source in your browser, you can be brought up on hacking charges, wire fraud, violating the DMCA, etc.

      You ever actually read any of those TOS that you supposedly agree to the moment you navigate to a webpage?

  2. Re:BIOS by game+kid · · Score: 4, Informative
    --
    You can hold down the "B" button for continuous firing.
  3. Who cares about Javascript by viperidaenz · · Score: 5, Insightful

    That's not even the tip of the iceberg.
    The HTML code you download for the vast majority of the web is protected by copyright. The exact same copyright that protects the Javascript. The exact same copyright that gives the GPL license its power to force GPL upon derivatives.

  4. It's not just the Javascript either... by freezin+fat+guy · · Score: 5, Insightful

    What about all the non-free images and text taking away your rights?

    Wake up people!111

  5. WHAT popular perception? by Dahamma · · Score: 4, Insightful

    Contrary to popular perception, JavaScript does not run "on the Web site" -- it runs locally on users' computers when they visit a site.

    This statement makes no sense. If you actually know what JavaScript is, you probably know it runs in the web browser. If you don't know what JavaScript is, you don't have any perceptions about it whatsoever.

  6. Re:BIOS by MrEricSir · · Score: 5, Funny

    Ah yes, nothing says "freedom" like buying a product from the Chinese government.

    --
    There's no -1 for "I don't get it."
  7. Re:BIOS by Anonymous Coward · · Score: 5, Informative

    You do realize that Stallman uses a Yeelong lemote right? It's a computer that runs on entirely free (as in freedom) software and firmware: https://en.wikipedia.org/wiki/Lemote#Netbook_computers

  8. Re:Loons running the asylum by ShanghaiBill · · Score: 4, Insightful

    So the FSF still seems to be able to find ways to make themselves more loony and fringe. Nice job guys!

    Yes, this is pretty pathetic. There are plenty of areas where free software is very important, such as basic computing infrastructure like compilers, operating systems, networking, web standards, and audio/video decoders. But instead they are focusing on the script that makes text blink on some random website.

  9. Re: Loons running the asylum by Anonymous Coward · · Score: 4, Insightful

    Look this isn't quite so pathetic as you think. The accessibility tools on Linux often depend on running really old browsers on the console. First hand experience. We have upgraded them for ipv6 etc but working js is another matter.

  10. Stop obfusicated Javascript. by Animats · · Score: 3, Interesting

    I can live with copyrighted Javascript. It's obfusicated Javascript that looks like hostile code that I object to.

    Have you looked at Google's home page lately? For a page that appears to do almost nothing, there's a vast amount of obfusicated Javascript involved. Some of it:

    (function(){ window.google={kEI:"a62mUcucJYHQiwKgx4DwDw",getEI:function(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||google.kEI},https:function(){return"https:"==window.location.protocol},kEXPI:"17259,4000116,4001351,4001947,4003714,4003921,4004320,4004334,4004702,4004788,4004844,4004897,4004943,4004949,4004953,4004971,4005031,4005198,4005731,4005817,4005987,4006191,4006374,4006426,4006442,4006448,4006466,4006541,4006578,4006727,4006806,4006974,4007007,4007009,4007020,4007040,4007055,4007060,4007073,4007077,4007080,4007117,4007118,4007131,4007140,4007158,4007217,4007231", kCSI:{e:"17259,4000116,4001351,4001947,4003714,4003921,4004320,4004334,4004702,4004788,4004844,4004897,4004943,4004949,4004953,4004971,4005031,4005198,4005731,4005817,4005987,4006191,4006374,4006426,4006442,4006448,4006466,4006541,4006578,4006727,4006806,4006974,4007007,4007009,4007020,4007040,4007055,4007060,4007073,4007077,4007080,4007117,4007118,4007131,4007140,4007158,4007217,4007231", ei:"a62mUcucJYHQiwKgx4DwDw"},authuser:0,ml:function(){}, kHL:"en",time:function() {return(new Date).getTime()},log:function(a,b,c,h){var d=new Image,f=google.lc,e=google.li,g="";d.onerror=d.onload=d.onabort=function() {delete f[e]};f[e]=d;!c&&-1==b.search("&ei=")&&(g="&ei="+google.getEI(h));c=c||"/gen_204?atyp=i&ct="+a+"&cad="+b+g+"&zx="+google.time();a=/^http:/i; a.test(c)&&google.https()?(google.ml(Error("GLMM"),!1,{src:c}),delete f[e]):(d.src=c,google.li=e+1)},lc:[],li:0,j:{en:1,b:!!location.hash&&!!location.hash.match("[#&]((q|fp)=|tbs=simg|tbs=sbi)"),bv:21,cf:"",pm:"p",u:"c9c918f0"},Toolbelt:{},y:{},x:function(a,b){google.y[a.id]=[a,b];return!1},load:function(a,b){google.x({id:a+k++},function(){google.load(a,b)})}};var k=0;window.onpopstate=function(){google.j.psc=1}; window.chrome||(window.chrome={});window.chrome.sv=2.00;window.chrome.searchBox||(window.chrome.searchBox={});window.chrome.searchBox.onsubmit=function(){google.x({id:"psyapi"},function(){var a=encodeURIComponent(window.chrome.searchBox.value);google.nav.search({q:a,sourceid:"chrome-psyapi2"})})};})(); (function(){var d=!1;google.sn="webhp";google.timers={};google.startTick=function(a,b){google.timers[a]={t:{start:google.time()},bfr:!!b}};google.tick=function(a,b,h){google.timers[a]||google.startTick(a);google.timers[a].t[b]=h||google.time()};google.startTick("load",!0); try{google.pt=window.gtbExternal&&window.gtbExternal.pageT();}catch(e){}})();

    Google's home page was once just HTML with a form. It did about what it does now.

    1. Re:Stop obfusicated Javascript. by antifoidulus · · Score: 5, Insightful

      You are aware of what minification is, right? Having nicely formatted javascript also means that you waste a lot of bandwidth sending all that format information that 99.99999999% of users will never look at. There are reverse-minification tools out there if you really want to look at the code.

  11. Say what? by Tridus · · Score: 5, Insightful

    I'm sacrificing my freedom by loading a webpage that is going to run some code which I can look at with any text editor and see exactly what it's doing (though I may need to de-minify it first)?

    Honestly, if that is the biggest threat to my freedom these days, we're in much better shape than I thought!

    TFA in this case is surprisingly difficult to understand. It reads like it's aimed at the converted, and the rest of us who are more concerned with "does the site work?" and "are there security concerns?" aren't invited. Either that or I'm really missing something, because I can't fathom why in a million years I would ever care in the slightest about this.

    --
    -- "So they told me that using the download page to download something was not something they anticipated." - Bill Gates
  12. An Inaccuracy and A Conundrum by VernonNemitz · · Score: 4, Informative

    So I read Stallman's article and am not quite certain that it is completely accurate. I've written a decent amount of JavaScript code, and all of it was built into HTML pages, even if some of it used AJAX to interact with PHP code on the Web Server. It has always seemed to me that that the entirety of the JavaScript code was right there for the user to inspect with a browser's "View Source" option, regardless of whether or not the overall web page was copyrighted. Well, at least it is easy to view the code that doesn't get loaded in a separate ".js" file; you need to use a browser's Developer Tools to access the "include" stuff. I am of course aware that there exists Server-Side JavaScript, and when it is used that code does not get sent to the browser. However, since it runs on the Server, not even Stallman can complain that the user who connected to the Server is being asked/required to run that non-free JavaScript code (But obviously if the web page is copyrighted, it may qualify as including non-free JavaScript code.)

    Accuracy aside, there is a different issue that is personally bothersome. I'm a good programmer and have been writing code for a long time, working with a variety of languages --I have actually enjoyed Assembly Language; many can't say that! But I haven't been able to find a "best fit" type of job that lasted more than a few years, and so my income-situation is not the best (nor even remotely near to "the best"). I'm sure it is quite easy for someone who has a decent steady income to write and give away software. But when you need to sell it to put food on the table, copyright is supposed to be an author's friend. As an example, suppose I put a few years of effort into creating a nice unique web site, free for users and paid for by advertisers. Do I want that unique-ness to be copied immediately, all across the Internet, and my ad-revenue proportionately diluted, by giving away the source code? What do I deserve to earn, financially speaking, for those years of effort? Remember the children's tale of the Little Red Hen? The assumption behind Free Software is that what you offer will get improved and come back to you, thereby benefitting you. It ignores the fact that that process takes time that you might not be able to afford!

    So, what is the Answer to that conundrum, besides "Obtain the nice-income job that lets you afford to give away software"?

  13. Re:BIOS by fuzzyfuzzyfungus · · Score: 3, Insightful

    Ah yes, nothing says "freedom" like buying a product from the Chinese government.

    When your options are a Chinese-OEMed shitbox whose guts are guarded by American lawyers, or a Chinese-OEMed shitbox whose guts aren't guarded by American lawyers...

  14. Re:The end does not justify the means by game+kid · · Score: 4, Informative

    Stallman wants users to do exactly that, wrt regulations.gov and others, in the case "when the use of the nonfree software aims directly at putting an end to the use of that very same nonfree software". That's how he developed GNU: until it was more mature (and Linux came along), he used non-free Unix to test.

    --
    You can hold down the "B" button for continuous firing.