Hacker News new | ask | show | jobs
by voxfrege 3751 days ago
Generally, >=
2 comments

Uh, care to explain why you think something like compiling Haskell to Java will yield better performance than writing an optimizing compiler such as GHC, with its native backend and optimizations that are tailored specifically for the types of programs written in Haskell (including things like the runtime system such as the garbage collector)?
Sorry, riscy, with >= I mean, Frege programs will take longer than native ones.
Ah, okay. :)
Can you explain why? I'm not an expert but I know that GHC relies on some sort of stack reduction machinery. Implement something like this on top of an existing VM, and you would lose some performance, I would say.