4 ms·
Well, JS is used because it's the only way to run code on a client system. If there were a byte-code available you can bet people would be using other language
by spitfire 12y ago
Well, JS is used because it's the only way to run code on a client system.
If there were a byte-code available you can bet people would be using other languages. ASM.js exists, and many languages compile to js at the moment.
As for PHP, lots of people still eat at McDonalds. I can't explain why.
- ephemeralgomi 12y agoPartially because McDonalds/PHP lets you eat/deploy by cramming/uploading the food/file directly into your mouth/server. No utensils/tools required.
- virtualwhys 12y ago> No utensils/tools required I think a more apt analogy would be: no furnace to forge your own cooking utensils (hour long build from source to get latest and greatest [7.8] installed) which you use to prepare the meals (wait for your application to compile) that you then stuff into your mouth (deploy to server).
- dllthomas 12y agoThe 7.6 packaged in Debian is perfectly usable and compatible with everything I've wanted to grab from Hackage. There's a few new bells and whistles in 7.8 (like TypedHoles and -fdefer-type-errors) that I'm looking forward to, but their lack doesn't mean I can't build existing code and when developing new code it just means I lack some new tools. Since these tools are lacking everywhere else, their temporary lack is obviously not keeping people away from Haskell. Basically, you can get yourself access to a furnace to forge your own melon baller, but you've already got a spoon, and someone else will be shipping you a melon baller next month.
- cgh 12y ago> Well, JS is used because it's the only way to run code on a client system. Not sure what you mean by this - I guess you're assuming the "client system" is always a web browser? Currently, I'm writing code for a piece of middleware that is a client to a server that models networking equipment. This client then pushes hundreds of thousands of responses into a fast message queue. None of this is written in JS.