|DietLISP||Sanjoy Das||10/12/12 8:04 AM|
I just forked a pet project of mine, DietLISP, into the klug
organization on github . DietLISP is my vehicle for exploring
programming language design.
If any of you are interested in programming language theory and / or
Haskell do consider contributing. While I'm slightly busy right now
with other, more segfaulty languages my nearest targets for DietLISP
1. Exploring what else is possible with semi-operatives (see the README).
2. Add builtins for conversion between ASTs and lists, so that we can
have non-trivial macros.
3. Adding some kind of continuations.
4. Compile to C? Maybe after a CPS transform?
|Re: DietLISP||diffoperator||10/16/12 12:46 PM|
For various reasons, I am interested in compiling to some IR representation. LLVM is one possible target although I am more interested in PTX. Can you give me an entry point?
|Re: DietLISP||Sanjoy Das||10/16/12 5:09 PM|
Conceptually LLVM and C of them should be very similar. I don't know about PTX.
Compiling DietLISP is difficult because operatives allow you to
arbitrary modify the execution environment and change the AST (this is
different from a traditional lisp, where macros hook only into the
parser). AFAIK, the only other project that comes close is wat-js ,
and it maintains a representation of the AST at compile time.