I think the Zig community/BDFL might appreciate adding an APE target "os" to their buildchain (LLVM-based); that could be a match made in heaven!
I had a quick look into doing this on your original thread[1], but got stuck pretty early on and just didn't have the time to get back into it.
If that's something you'd be willing to pursue I'd love to help any way I can. Feel free to DM me on Twitter[2] any time.
Also hats off to you @jart!
Is this a one time thing or are you thinking of something bigger going with this project?