akkartik / mu

Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
http://akkartik.name/akkartik-convivial-20200607.pdf
Other
1.35k stars 47 forks source link

SubX in SubX: Transforming uses of string literals #23

Closed akkartik closed 5 years ago

akkartik commented 5 years ago

This branch is work in progress on implementing SubX in SubX. The big-picture plan is to divide up the work into the following phases:

$ cat file1.subx file2.subx ... |dquotes |assort |pack |survey |hex > a.elf

Each phase is an ELF binary constructed out of a corresponding .subx file.

This branch is where the final phase is being built.

To run its tests (and so see how far along things are):

$ ./subx translate 0*.subx apps/subx-common.subx apps/dquotes.subx -o apps/dquotes  &&  \
      ./subx run apps/dquotes test

Contact me if you'd like to contribute. Commit access freely given.

akkartik commented 5 years ago

I've gotten dquotes.subx to some sort of milestone and am going to merge this PR. We have a design problem, and this PR now seems like a hindrance. Let's get to a clean working state on master and confirm that the old segfaults are all gone. Then we need to come up with a new design.

The design problem is outlined in this commit message: https://github.com/akkartik/mu/pull/26/commits/438e5a0db04d7a6e1a7199771cca16720c0b4b8d