4 ms·
> Must run natively on backend without nodeJS (rules out the likes of PureScript) PureScript does have an Erlang backend as well. My understanding is F# relie
by aranchelk 6y ago
> Must run natively on backend without nodeJS (rules out the likes of PureScript)
PureScript does have an Erlang backend as well.
My understanding is F# relies on a JIT just as Node (V8) does. Are either really native? Are both?
- pharmakom 6y agoF# can run in a few different places: .Net, node, browsers, .Net core, Mono and AOT compiled. Some targets have JIT, some do not.
- tremon 6y agoYes, F# relies on a JIT, but not just as Node does. F# compiles to CIL, the .Net runtime bytecode format. It is much more like Python bytecode (pyc) or JVM bytecode (jar) than like Javascript. FAFAIK Node doesn't compile to an intermediate language, it either compiles to minimzed (lets-just-remove-all-whitespace) Javascript, or it generates a native binary.
- michaelcampbell 6y ago.class for java; .jar is just a zip file with some metadata.
- Kipters 6y agoIt does, but you can produce self-contained applications that don't need the runtime to be installed (it's included in a native binary shipped with the application). Full AOT compilation is also being worked on.
- skrebbel 6y agoI'm assuming that they primarily mean "I prefer not to depend on NodeJS for $REASONS". That's pretty fair, Node is amazing but there's definitely also plenty to dislike.