IRC channel logs

2026-08-29.log

back to list of logs

<xentrac>I wrote a simple compiler from (a call/cc-less subset of) Scheme to assembly: http://canonical.org/~kragen/sw/urscheme/
<xentrac>but you probably already knew that; oriansj used a bunch of the test suite
<xentrac>it took me a few weeks, but probably a better programmer could do it fsater
<xentrac>it's a pretty primitive compiler, using a runtime stack for expression evaluation, but it's still relatively fast as Scheme (or Scheme-subset) implementations go
<matrix_bridge><Jeremiah Orians> You are right; it was fun to play around with but I am not as good of a programmer as you in that regard
<matrix_bridge><Jeremiah Orians> So, I was never able to figure out how to adapt to to compile mescc or to get it to run on mes.c
<xentrac>I haven't tried, but I imagine it was missing a significant number of primitives?
<xentrac>the ones that would be tricky to add are `eval` and call/cc, but it would hardly be surprising if mescc didn't need those but did need, for example, > or *
<xentrac>but adding things like > and * would be relatively straightforward
<xentrac>not that this is necessarily a good idea... but it might be worth a try