3 ms·
Creating DSLs within C has a long tradition. Stephen Bourne wanted to write his shell in ALGOL so badly that he relentlessly beat C with its own preprocessor u
by sneed_chucker 2y ago
Creating DSLs within C has a long tradition.
Stephen Bourne wanted to write his shell in ALGOL so badly that he relentlessly beat C with its own preprocessor until it began to resemble his preferred language.
https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/mac.h https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh...
- sheepscreek 2y agoHere is an example of what we wrote using it: https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/expand.c https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh...
- Keyframe 2y agoThis is not even half as bad as I expected it to be.
- amy-petrik-214 2y agoexcellent lore. said to have been the inspiration for the obfuscated C code contest. https://www.ioccc.org/ https://www.ioccc.org/