3 ms·
Here's where my ignorance shines through once again...but does the javascript that runs on the JVM have proper threading? Coz, I'm really not sure how anything
by mynameishere 19y ago
Here's where my ignorance shines through once again...but does the javascript that runs on the JVM have proper threading?
Coz, I'm really not sure how anything server-side could work properly with setInterval() or whatever the favored workaround is.
Why did he not use Python?
- motoko 19y agohttp://steve-yegge.blogspot.com/2007/02/next-big-language.html http://steve-yegge.blogspot.com/2007/02/next-big-language.html He didn't use Python because Javascript is the native scripting language for the "next platform," that is, the browser. Also, he doesn't think that Python is superficially close enough to C and Java to be widely adopted.
- inklesspen 19y agoPlus, if you want Rails in Python, well, Pylons is pretty close. Only better.
- paul 19y agoRhino JS is well integrated with the JVM, so it's easy to call back and forth between Java and JS. You basically have access to everything Java has. JS doesn't have an equivalent to "synchronized", but it could easily be added as a function call (since JS has real functions). However, I wouldn't do that way since sticking synchronized blocks all over the place is the wrong solution anyway. Just write your code so that separate threads aren't stepping on eachother's data (and do cross-thread stuff in a carefully controlled manner). I'm doing my development in Java+JS and it's a pretty nice combination.