Jan Nieuwenhuizen writes: > The current interpeter I consider to be a prototype in C; I use gcc. > However, HACKING mentions two ways forward > > ** Move mes.c into hex? > One idea is to use OrianJ's amazing self-hosting > [[https://github.com/oriansj/stage0][stage0]] hex assembler and > minimal bootstrap binaries and rewrite the mes.c core to directly > bootstrap into Scheme. > > ** Rewrite mes.c and generate hex? > Another idea (thanks Rutger!) is to rewrite the mes.c core in a > C/Assembly variant and have mescc produce the simple, annotated > bootstrap binary. > > Possibly you have an even better idea? I am choosing to explore the > latter first: work on the compiler backend and write the interpreter in > its Assembly/C-like s-expressions.
First, I'm really excited you're making progress on Mes! Second, Scheme48 did something similar to this, called "Pre-Scheme", which is how they bootstrapped Scheme48 iirc. Have you heard of it or looked at it? https://en.wikipedia.org/wiki/PreScheme