Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I know several implementations</p> <ul> <li>Ironjs <a href="https://github.com/fholm/IronJS" rel="nofollow noreferrer">https://github.com/fholm/IronJS</a></li> <li>Jurrasic <a href="http://jurassic.codeplex.com/" rel="nofollow noreferrer">http://jurassic.codeplex.com/</a></li> <li>Jint <a href="http://jint.codeplex.com/" rel="nofollow noreferrer">http://jint.codeplex.com/</a></li> <li>Javascript.net <a href="https://github.com/JavascriptNet/Javascript.Net" rel="nofollow noreferrer">https://github.com/JavascriptNet/Javascript.Net</a></li> </ul> <p>Ironjs. Firstly this is pure F#!. Its the first real word large scale thing I have seen done in F# and as such is a real eye-opener. Even if you are not interested in javascript its a great learning tool for F#. How does it score:</p> <ul> <li>complete: Yes</li> <li>stable: Yes</li> <li>Fast: claims to be very fast, I have not measured. Its an interpreter</li> <li>SL : No (an open work itme for it on github)</li> <li>Embed: Hard work to pass thigns back and forth. No access to .net libs from JS code</li> </ul> <p>Jurassic. This says that it compiles to IL, ie no interpretation</p> <ul> <li>complete: Seems so</li> <li>stable. Cant say, not tested enough</li> <li>Fast. Claims to be because its not an interpreter. However the fact that it compiles to IL strongly suggests that it will leak code space. Ie a server running different scripts will eventually fill up. <ul> <li>SL: Yes</li> </ul></li> <li>Embed: Looks about the same as IronJS.</li> </ul> <p>Jint. This is an Antlr front ended interpreter (interesting to note that ironjs used to use antlr but gave up and did its own parsing for perf reasons and seemed to get a <em>huge</em> boost)</p> <ul> <li>Complete: I found a few things missing, they got fixed but it was a little worrying</li> <li>Stable: A few wobbly places</li> <li>Fast: Acceptable</li> <li>SL: No</li> <li>Embed: Really nice. It Just Works. I can instantiate .net classes right in the JS. I can freely pass data back and forth.</li> </ul> <p>Javascript.Net. This is a managed wrap of google's V8 engine. I have not tried it at all so can only say whats on the web site</p> <ul> <li>Complete: ?</li> <li>Stable: ?</li> <li>Fast: I expect it to be fast given how fast V8 is</li> <li>SL: no</li> <li>Embed: ?</li> </ul> <p>I ended-up using Jint because it had such nice embedding capabilities, but I really need SL support (I have two projects that need embedded JS, the second one is a SL project) and I don't want to use 2 different engines, so something will have to change change</p> <p>Anybody any experiences or other implementations?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload