Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Web dev in C

Name: Anonymous 2014-10-13 2:44

Who needs a huge server and scripting environment to run a simple site? Just open a socket, read until the second space, dump the requested file and close the socket.

Just think about all the electricity and time wasted because of wastefully starting Apache, parsing a complex config file each time, sending the script to PHP where it is parsed for the millionth time, generate the output, apply transformations to the headers, sending it out, keeping the socket open just in case there is another request, all for the convenience of not having to compile a script.

Name: Anonymous 2014-10-14 23:03

I recently started working on something like this;
http://str8c.me/talk/

it is very basic and incomplete, but the HTTP server itself is around 400 lines and the BBS 400 lines too (including HTML), the code is on github
https://github.com/str8c/nhttp
https://github.com/str8c/nbbs

for more serious use you can do server side scripting in C with FCGI+nginx

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List