News for hackers. Stuff that matters.
Re:Show HN: Pascal to LLVM Compiler in Haskell by wespiser_2018 on Tuesday March 17, 2020 @10:59AM (#22605463)
One of the things I love Haskell for, and there are many reasons, is that it's great at building compilers and interpreters. Monadic transformers for effects, pattern matching in functions, strong types, polymorphic typeclasses, the list goes on and on.

Finally, if anyone is interested in building something like this, there is a great tutorial that, which I believe the author used but am not sure: http://www.stephendiehl.com/llvm/

Re:Show HN: Pascal to LLVM Compiler in Haskell by networked on Monday March 16, 2020 @02:34PM (#22595827)
This project may interest you: https://github.com/int-index/kalium. It is a limited Pascal-to-idiomatic-Haskell compiler written in Haskell.
Re:Show HN: Pascal to LLVM Compiler in Haskell by ncmncm on Monday March 16, 2020 @03:29PM (#22596580)
An LLVM-IR to idiomatic Haskell compiler in Pascal would complete the journey.
Re:Show HN: Pascal to LLVM Compiler in Haskell by thesz on Tuesday March 17, 2020 @07:06AM (#22603701)
Most amazing "a compiler from Haskell to Pascal in idiomatic LLVM-IR" station is missing in that journey.