Hacker News new | past | comments | ask | show | jobs | submit login
Bones: A simple Scheme compiler for x86_64 systems (call-with-current-continuation.org)
105 points by kryptiskt on July 5, 2014 | hide | past | favorite | 10 comments



This is from Felix Winkelmann, who created Chicken Scheme (http://www.call-cc.org). Bones generates assembly instead of C like Chicken, but the choices of intermediate language (CPS) and GC (Cheney) look to be the same.


Is there a Scheme / Racket compiler for the LLVM yet?


The "suggestions for projects" section of the manual (section 15) mentions this as a possible future extension:

> Other backends, say, asm.js or LLVM. This can be quite a challenge, as these languages do not support jumps to arbitrary locations.


There will likely not be one, at least in the short term, as there are plenty of scheme-to-C compilers out there.


Interesting that this should appear just as I was looking for a way to generate ARM assembly (small Cortex-M chips) using a Lisp variant. This isn't quite it, but it looks very interesting and is a step in the right direction.


I'm actually planning to start an ARM port next. Considering that I'm rather inexperienced with that architecture, it may take a while, though. Any help would of course be appreciated...


I will take a very close look and help if I'm able to.


Same here. But I think this is not just a coincidence taking into count how popular ARM is today.


But why? Is the work on chicken scheme finished? Does it have dead-simple ffi? Does is run on android? Does spock actually work? What's the actual advantage of bones over chicken?





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

Search: