I built a jitted rpython version of the VM, it nicely boots linux and runs doom! need to blog about it to get it out of my system
they/them
| website | https://www.cfbolz.de |
| website | https://www.cfbolz.de |
I see, you might have found it from the IOCCC winners this year. But the author seems to have been working on it for a long time.
This is in the part of the idea space where the build toolchain is complex but the runtime is simple. Though I still have questions: is the binary including all of SDL? Do the terminal programs include an emulator, or simply emit escape codes, and therefore require terminals to be eternal as well 😄
My interest runs more in the direction of making software eternal by making it simple to understand rather than simple to run. Here I think future civilizations don't really have a leg up understanding the programs compared to the emulation based approach.
Still, this seems worth investing in. It improves on the status quo. Somebody build a complete EternalOS distro out of this!
just used memray to find out where my python program was allocating memory and was super impressed by how easy it was to use https://github.com/bloomberg/memray
the steps were just:
1. `memray run python3 my_program.py`
2. copy and paste the snippet it prints out ("memray flamegraph memray-manage.py.37954.bin") to generate a flamegraph
3. open the html flamegraph in my browser
Also forgot to mention some small fun with Z3
Short post today. New ZJIT contributor dak2 submitted a PR to fix an overflow bug in fixnum division in ZJIT. We did the division fine, but lied about the type of the result in the case of dividing FIXNUM_MIN by -1. You can see how this is special-cased in CRuby: