← Thursday, October 1, 2026Performance & OSTool

Turbo Haskell JITs GHC Core on Truffle and can compile GHC itself

comonad.com 4 min read Editor score 8/10

THC takes over after GHC parsing, typechecking and Core optimization, then JIT- or AOT-compiles programs through Truffle and GraalVM; it can compile GHC itself. The project is a substantial example of reusing a mature compiler front end with a different runtime.

What
THC is a Haskell JIT and AOT compiler that runs GHC Core on the JVM.
How
GHC handles parsing through Core optimization; THC then compiles and executes Core using a Truffle/GraalVM runtime.
Why it matters
Its JIT, AOT, and polyglot FFI support let engineers run Haskell programs, produce executables, and call libraries from other languages.
Core compile and r… GHC THC Truffle/GraalVM
GHC produces Core that THC compiles and runs on Truffle/GraalVM. Sketched from the article's own text.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.