News for hackers. Stuff that matters.
Re:Show HN: Tofu -- (Yet another) C web framework by alexchamberlain on Tuesday January 03, 2012 @10:37AM (#3419936)
I've recently looked at extending Nginx for my own gains. This has several advantages over such frameworks. For example, you can serve both flat files and dynamic (C) content using the same server. I suspect, security is slightly better too, since Nginx manage process security etc.
Re:Show HN: Tofu -- (Yet another) C web framework by pjscott on Tuesday January 03, 2012 @02:00PM (#3420810)
Another possibility is to make your C program handle requests over ZeroMQ and stick it behind Mongrel2:

http://mongrel2.org/

Re:Show HN: Tofu -- (Yet another) C web framework by alexchamberlain on Wednesday January 04, 2012 @03:47AM (#3423330)
I'll look at this in the future, however, there are a few issues on GitHub that I would like to see solved first, including the abolition of all warnings on compilation.
Re:Show HN: Tofu -- (Yet another) C web framework by al3xbio on Tuesday January 03, 2012 @10:50AM (#3419986)
On the other hand it would make your applications nginx-specific, right? (which is a problem only if don't like to get stuck with a single web server).
Re:Show HN: Tofu -- (Yet another) C web framework by alexchamberlain on Tuesday January 03, 2012 @11:08AM (#3420070)
Yeah, I don't see that being a massive problem. I've just started to develop a RESTful interface for MongoDB, which, if done correctly, could utilise the same code for an Apache module and an Nginx module... Let's see how it goes.