Sure, we might go look at framework code sometimes. But it just looks like, well, code. There's usually nothing particularly famous-looking or even glamorous about it. Go look at the source code for Emacs or Rails or Python or Firefox, and it's just a big ball of code. In fact, often as not it's a big hairy ball, and the original author is focused on refactoring or even rewriting big sections of it.
Rhino 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.
There's a really sweet web application framework called Helma that lets you write entire web apps in javascript, and gives you the JDK through Rhino. The documentation is a little slim, but it's my framework of choice. I don't know why it isn't more popular.
18 comments
[ 2.7 ms ] story [ 68.7 ms ] threadhttp://steve-yegge.blogspot.com/2006/07/get-famous-by-not-programming.html
I wonder if he wrote that while worrying about this sort of thing.
http://code.google.com/p/trimpath/wiki/TrimJunction
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?
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.
I'm doing my development in Java+JS and it's a pretty nice combination.
Okay, that sounds great, but what a bureaucratic-sounding backstory. Seriously, that sounds like what happens in Soviet Russia: languages program you!
http://farm2.static.flickr.com/1188/612490975_5b2f804df2.jpg
http://dev.helma.org/
http://code.google.com/p/trimpath/wiki/TrimJunction