Finally, Bur -- my latest obsession, an attempt to create a concatenative language that compiles to #uxn roms -- can generate a tiny non-hello-world program.
Behold the beauty of printing numbers
Finally, Bur -- my latest obsession, an attempt to create a concatenative language that compiles to #uxn roms -- can generate a tiny non-hello-world program. Behold the beauty of printing numbers 5 comments
@neauoire Thanks :) Let's see how it evolves -- I'm still in the process of figuring out uxn's idioms, and learning not to treat it like a stack-based PDP-11 ;) @unlkfp do you have plans in writing the compiler in uxntal? or do you mean, you'd like to optimize the generated uxn code? The Chibicc compiler had to figure these things out as well, it might be worth looking at some of the optimizations they went through. In any case, I'm always around if you wanna bounce ideas :) @neauoire Optimizing the generated uxn code, to more closely resemble what's generated from handwritten uxntal. For example, making use of self-modifying code (I believe we discussed this one in the IRC some months back). And thank you, yes, I intend to make full use of the IRC channel when I can :) |
And I just realized there's a bug in that program -- 0x99 (the stop indicator) isn't dropped at the end