Interesting question. The reason we have things like Rescript that compiles to JS is because that’s the only thing browsers understand, but on the backend you don’t have that limitation. If Node is too slow, why not explore using something like Ocaml or F# instead?
@zeroexcuses since you are posting the same question in two related forums it would be good if you could link them so that people could track answers in both places.