News for hackers. Stuff that matters.
Re:Web server for Linux written in amd64 assembly by diestl on Monday February 03, 2014 @07:29AM (#7170275)
Why would you do this, write it in C and let the compiler do the hard work.
Re:Web server for Linux written in amd64 assembly by exDM69 on Monday February 03, 2014 @09:08AM (#7170646)
Why 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.

Re:Web server for Linux written in amd64 assembly by xedarius on Monday February 03, 2014 @08:23AM (#7170465)
I 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++.

Re:Web server for Linux written in amd64 assembly by mhurron on Monday February 03, 2014 @10:57AM (#7171270)
> There's little justification for this other than 'I can'.

And why isn't that enough?

Re:Web server for Linux written in amd64 assembly by zeeed on Monday February 03, 2014 @11:21AM (#7171466)
Security through transparency and readability for a bigger audience.
Re:Web server for Linux written in amd64 assembly by dllthomas on Monday February 03, 2014 @11:45AM (#7171657)
That's a great reason not to use this. Doesn't seem a reason not to do it.
Re:Web server for Linux written in amd64 assembly by BlackDeath3 on Monday February 03, 2014 @04:35PM (#7173661)
That'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!