Fuck it.
After too many attempts at compensating for C’s lack of a usable goto turning into reinventions of trampolines or ucontext.h, I said fuck it. I wasn’t having *fun* anymore. C as a “portable assembly language” simply fails.
NekoVM however has been a fucking delight to work with. I don’t even need to bother with half of the conversion as it supports XML which matches damn near 1:1 with sexps to begin with. I can pretty much just go (display (xml-conv (cps-conv (simplify (parse (read)))))) and be done. Hot.
3 Comments »
Leave a Reply
-
Recent
-
Links
-
Archives
- October 2011 (1)
- January 2011 (2)
- August 2010 (5)
- July 2010 (5)
- May 2010 (3)
- March 2010 (10)
- February 2010 (7)
- November 2009 (1)
- October 2009 (1)
- August 2009 (1)
- July 2009 (3)
- April 2009 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS
Out of curiosity, why not using LLVM or C– backends?
I don’t grok C++ particularly well, LLVM’s API docs suck, and I wound up having better luck just spitting out LLVM IR and letting llvm-as deal with it. And doing it that way just seemed silly to me. Although hooking my half baked GC into it wasn’t nearly as painful as I had expected it to be. Probably, I just need to study up more on C++ or OCaml.
C– is like that cute chick who likes you, but didn’t say anything before you found someone else. I already had Neko installed and all I needed to do was write a couple trivial snips to go from sexps to xml and use Neko’s primitives rather than C’s. And its C FFI is easy enough that I really just don’t care at this point.
Pretty much, I’m lazy, Neko’s easy. =)
Hmm. After some dicking around it seems it’s not entirely maddening to just wrap LLVM’s C++ API in C. Slow and boring, but most issues havn’t been too hard to deal with. Just what I need, another project. Maybe in a few weeks when I get bored of playing with graph reduction =)