4 ms·
Take it this is Rhino under the hood somewhere, or has someone written a new js engine?
by chrisfarms 13y ago
Take it this is Rhino under the hood somewhere, or has someone written a new js engine?
- mindcrime 13y agohttp://dynjs.org/ http://dynjs.org/ is, AFAIK, independent of Rhino.
- chrisfarms 13y agoThanks. I'd totally missed that.
- Edmond 13y agoThanks for that pointer, didn't know of this. Also for anyone interested in an easy way to use the JVM for other languages, check out crudzilla.com . It is primarily for web development but has basic editor for other development work.
- qmxtheros 13y agoyup, it's independent, you can get more context on why I created dynjs here: http://blog.qmx.me/the-release/ http://blog.qmx.me/the-release/
- sitkack 13y agoIs there any plan to implement asm.js and JIT to JVM bytecode directly from JS?
- lucian1900 13y agoAfter a cursory look through the source, it would appear that it already JITs to JVM bytecode. asm.js isn't relevant here at all.
- chrisseaton 13y agoIsn't the idea of asm.js that if a program is written according to the spec you can generate simpler and so hopefully faster code? That applies whether you're generating bytecode or machine code.
- lucian1900 13y agoSure, but you'd have to generate asm.js in the first place. It's compiler target that also happens to map to a small subset of JavaScript, you're unlikely to find writing asm.js by hand useful. DynJS could also support asm.js in addition to JavaScript, but that has almost nothing to do with JIT-ing JavaScript applications.
- sitkack 13y agoRight. I wasn't thinking of this as the _only_ JIT case, but one that could generate faster code by not having to do complex type tracing or inference. Seems like low hanging fruit to detect asm.js and read it directly into a typed AST.
- lucian1900 13y agoProbably, yes. Although with invokedynamic, the JVM's object system ends up being remarkably close to that of a dynamic language. This is best seen in JRuby.