News for hackers. Stuff that matters.
Re:Chess Written in GNU Sed by anthk on Monday October 16, 2023 @08:02PM (#37908366)
awk can do much more than sed. And, with patience, you could even write a Z-machine interpreter on it as some guy did with postscript. You might have to convert the binary input to hex first with xxd/od in order to parse the opcodes in a nice way, but everything else would be simulated from awk.
Re:Chess Written in GNU Sed by tyingq on Monday October 16, 2023 @08:59PM (#37908915)
> You might have to convert the binary input to hex first

If you're okay with gawk, most implementations ship with gawkextlib, which has readfile(), and then you have FIELDWIDTHS.