3 ms·
n=1 but I did bring Rust to my C++ job. I needed a web server, and I didn't want to put in an order with the web server team, and writing a web server in C++ lo
by 01HNNWZ0MV43FF 3y ago
n=1 but I did bring Rust to my C++ job. I needed a web server, and I didn't want to put in an order with the web server team, and writing a web server in C++ looked like a recipe for pain.
- zaphirplane 3y agoReally people write a web server from scratch? What industry? Don’t tell me it’s some CRUD
- 01HNNWZ0MV43FF 3y agoI learned a lot from it
- EVa5I7bHFq9mnYK 3y agoWhat pain? Just include mongoose.h and .c in your project. It's in C, but C is C++.
- 01HNNWZ0MV43FF 3y agoI did try both Civet and Mongoose. We didn't have a good build / dependency system for C++ at the time, just CMake, so when I considered all the little libraries I'd have to learn and pull in like HTML templating, SQL, etc., while making sure my code was thread-safe, it looked like too much work.
- quickthrower2 3y agodocker run --name docker-nginx -p 80:80 nginx
- 01HNNWZ0MV43FF 3y agoYes I suppose I could have written it as a Lua plugin for Nginx. Or CGI.
- quickthrower2 3y agoA bit of greenfield NIH is damn fun through sometimes :-)