News for hackers. Stuff that matters.
Re:A Brief F# Exploration by aranchelk on Friday April 09, 2021 @02:38AM (#26747346)
> 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?

Re:A Brief F# Exploration by tremon on Friday April 09, 2021 @04:52AM (#26748186)
Yes, 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.

Re:A Brief F# Exploration by michaelcampbell on Friday April 09, 2021 @09:26AM (#26750258)
.class for java; .jar is just a zip file with some metadata.
Re:A Brief F# Exploration by pharmakom on Friday April 09, 2021 @03:34AM (#26747670)
F# can run in a few different places: .Net, node, browsers, .Net core, Mono and AOT compiled. Some targets have JIT, some do not.
Re:A Brief F# Exploration by Kipters on Friday April 09, 2021 @06:09AM (#26748637)
It 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.
Re:A Brief F# Exploration by skrebbel on Friday April 09, 2021 @06:19AM (#26748687)
I'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.