Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wrote a compiler with .NET last year. Used F# for the Lexing/Parsing to an AST and C# for LLVM IR code gen. Interop was so easy, but the docs for the C# LLVM bindings were not so great, so it's a little incomplete. I only got it to effectively interpret, never actually executed a whole outputted object file.


When I've been messing with this stuff, then I decided to manually write LLVM IR instead of using C#'s LLVM Bindings


With .NET you could also emit IL.


How was F# for the task?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: