News for hackers. Stuff that matters.
Re:Implementing a LLVM Micro C compiler in Haskell by winter_blue on Friday June 04, 2021 @02:04PM (#27396729)
This is awesome. This essentially will serve as a more up-to-date tutorial on the LLVM bindings for Haskell. So programming language designers could use this tutorial to build a new language using Haskell. Currently, the state of LLVM documentations, and its tutorial leaves much wanting. This work remedies things on the Haskell side of things by quite a bit.

I especially love the fact that instead of implementing a novel language like Kaleidoscope (which the official LLVM does), it implements a subset of C (a language that's low-level enough and widely understood). C has all of the basic constructs, which if you understand how to write a compiler (to LLVM) for, would allow you to implement far more advanced languages.

Thank you Joseph Morag for this wok, and Théophile Choutri, Moritz Kiefer, et al for making it possible.

Re:Implementing a LLVM Micro C compiler in Haskell by pjmlp on Friday June 04, 2021 @03:23PM (#27397952)
Kaleidoscope seems to only focus on C++ nowadays, the OCaml version is no longer there.

https://llvm.org/docs/tutorial/