Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



Here is an example of what we wrote using it:

https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh...


This is not even half as bad as I expected it to be.


excellent lore. said to have been the inspiration for the obfuscated C code contest.

https://www.ioccc.org/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: