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

Indeed, I have used Stephen Diel's excellent tutorial as a starting point to get off the ground by taking snippets as they are, albeit with slight modifications. Stephen's wrapper of the LLVM bindings to create an LLVM DSL in Haskell is wonderful. Although the more interesting aspects (at least for me) such as lambdas/closures and data structures such as lists or arrays, are not covered in that tutorial, it's actually for the better as it gives you enough of a push in the beginning for working with LLVM, without overwhelming you.

Overall, it has been an enjoyable and educational (Haskell/compilers/dynamic languages/Scheme/LLVM - wise) experience. Quite noticably, my troubleshooting time was largely spent fixing compiling errors, with only a fraction of the time, relatively speaking, spent fixing runtime errors. Adding new features (barring those that necessitated making an overhaul to the design itself, as it emerged without much foreplanning) was a breeze.



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

Search: