>>21
Because the Java program actually is and behaves like a fully fledged stand-alone program. The javascript version is just a single function. If I may use an example to show the sparsity of real code when you are making a real world usable peice of software: I have a seven line python script that posts to 4chan when passed appropriate parameters. Compare that to the PHP version which provides a web-form interface, AJAX post queuing and retrieving system; and various options for TOR, proxies, image ordering algorithms (lol image21 comes before image3?) and other miscellaneous features that make it completely usable and intuitive (to the extent possible in a browser-environment) experience. This tops 2000 SLOC, of which the function to actually post to 4chan given parameters is actually SMALLER than the python one (because PHP facilitates multipart by itself). Perhaps the phenomenon you are describing is telling of the real world in this sense? Java is used to actually make programs people will use- and things like javascript and haskell are for making small toy functions only the programmer himself can call from a special command line.