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

I worked at a company that acquired expage.com, which was a late 90s/early 00s homepage builder.

The entire site was a single C source file littered with embedded HTML, a few separate HTML files for things like an FAQ, and a directory of compressed user page data in some proprietary format (including images) that was decompressed on-the-fly. Served over Apache with some CGI magic.

https://web.archive.org/web/20000302105807/http://www.expage...



Can you believe some of us crazy people still do this?

https://git.zx2c4.com/cgit/ cgit is the git repo frontend for projects like wireguard

https://undleadly.org has its source code in the sidebar for you to check out in C as well

https://learnbchs.org/ key is OpenBSD or other OS's (less easy to use) sandboxing if you're going to do this remotely safely - check this for more https://learnbchs.org/pledge.html


While not a single C file, Fossil SCM also uses C with HTML inside it (it uses a custom preprocessor[0] for it), e.g. check the chat.c file[1]. The entire program ends up in a single binary file too.

[0] https://fossil-scm.org/home/file?name=tools/translate.c&ci=t...

[1] https://fossil-scm.org/home/file?name=src/chat.c&ci=trunk


If your entire C app is in one file you must be really into pasta cause that's spaghetti


look at antirez' kilo repo sometime. single file stuff is pretty great, not necessarily bucatini


> The entire site was a single C source file littered with embedded HTML, a few separate HTML files for things like an FAQ, and a directory of compressed user page data in some proprietary format (including images) that was decompressed on-the-fly. Served over Apache with some CGI magic.

I know that it is a very slender hope but it would be cool to see the source of this.


> [...] a directory of compressed user page data in some proprietary format (including images) that was decompressed on-the-fly. Served over Apache with some CGI magic.

This is pretty neat. I believe that was done to save on server storage, and before client side gunzip was a thing?


Woah I used to use this site a lot! I always wondered how things worked out for them




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

Search: