6 ms·
Why would you do this, write it in C and let the compiler do the hard work.
by diestl 13y ago
Why would you do this, write it in C and let the compiler do the hard work.
- xedarius 13y agoI agree. There's little justification for this other than 'I can'. If you need to hit the metal you can inline assembly in both c and c++.
- mhurron 13y ago> There's little justification for this other than 'I can'. And why isn't that enough?
- zeeed 13y agoSecurity through transparency and readability for a bigger audience.
- dllthomas 13y agoThat's a great reason not to use this. Doesn't seem a reason not to do it.
- BlackDeath3 13y agoThat's exactly right. I wrote a web server in C. I'm not really a web guy, it was a lot of new stuff to me, I'm a pretty amateurish programmer, and it probably doesn't even deserve to be called a "web server". But it was fun, and really cool to know that something that I wrote (with the help/jump-off point of a tutorial or two) can be used to serve web pages to a client. I can run the program, pop open Firefox, and use the browser to click through a set of test pages as though it was being served by a real web server. That's fucking cool, and that was all the reason that I needed to do it. Don't Reinvent The Wheel - unless you want to!
- exDM69 13y agoWhy not? There are several http servers written in C already. I am pretty sure that this was an exercise in practical user space assembly programing rather than an attempt to write yet another http server.