Tech News
← Home  ·  All topics

Ghc

2 GoKawiil briefs on this topic

Developer builds THC, a JIT compiler for Haskell running on GraalVM/Truffle

A developer named Edward Kmett describes THC ('Turbo Haskell compiler'), a project begun a week ago that implements all of GHC 9.14.1's prim-ops and runs GHC Core via a Truffle/GraalVM-based JIT. GHC still handles parsing, typechecking and optimization, while THC executes the resulting Core, supports both JIT and ahead-of-time compilation via Native Image, and can already compile programs including pandoc, happy, alex and GHC itself.

Developer details GHCi limitations in live-reload Haskell workflow

A blogger describes a quirk of using GHCi (and ghcid) for live code reloading: GHCi can only track one set of source files at a time, so a properly separated project with distinct executable, library and test components can't have all parts reloaded simultaneously. To work around this while editing both tests and program code, the author merges everything into a single component, a compromise unsuitable for serious projects but workable for small experiments.