THC (Turbo Haskell Compiler) JIT-compiles GHC Core on the JVM using Truffle/GraalVM, supporting advanced features like Template Haskell and Linear Haskell. It can ahead-of-time compile programs including pandoc and even GHC itself, and provides polyglot FFI to Python, Ruby, R, and JavaScript with zero-copy Data.Text conversion.
Background
GHC is the mainstream compiler for Haskell, but this project demonstrates an alternative runtime using GraalVM Truffle framework for JIT/AOT execution and seamless cross-language interop.
- Source
- Lobsters
- Published
- Sep 30, 2026 at 09:35 PM
- Score
- 7.0 / 10