Hacker News new | ask | show | jobs
by spacemanaki 4693 days ago
If writing compilers in C++ sounds like a pain, there's also an OCaml version of this tutorial: http://llvm.org/docs/tutorial/OCamlLangImpl1.html
1 comments

Or check out the world class really nice llvm bindings in Haskell that were recently released: haskell.org/package/llvm-general

They're already in use to provide an llvm backend for the idris compiler, and ill be using them myself soon too.

One of the notable novelties about llvm general Is that you can manipulate the llvm AST as a normal Haskell data type. It also has really nice hooks for using most of the well maintained llvm Apis.

The URL for the llvm-general bindings is http://hackage.haskell.org/package/llvm-general