4 ms·
This is such an obvious joke. Chill my friends.
by afghanPower 9y ago
This is such an obvious joke. Chill my friends.
- marvel_boy 9y agoOf course it is.
- sgt 9y agoIt's not obvious - because I bet most of HN is wondering right now. It's not necessarily all wrong to be coding microservices in C - it has been done, and has been done in C++ as well. I like the pledge approach. I would like to see nginx support here instead of just OpenBSD's web server. Perhaps this is because nginx won't work with pledge?
- pjmlp 9y agoThe difference being that C++ offers the language features and standard libraries to write safer code, while C....
- PrimHelios 9y ago>C++ >Safer code Not really. I mean, using vectors and strings is nice, but that's about it for safety. You'll still get a shit-ton of memory leaks which isn't great for long-running web apps.
- pjmlp 9y agoIt seems you haven't updated yourself on C++11, C++14, C++17 best practices. If the code has any explicit new/delete or malloc/free, then something is wrong with the design.
- nickpsecurity 9y agoFor a specific example, iMatix had DSL's that outputted C which they used for high-performance server apps. If doing that for web apps, one would need a web framework for C that the code could call. I believe I've also seen both a C and C++ framework in the past. Both bragged about efficiency with the servers cheap.
- minitech 9y ago> Anybody can write crappy, bug-ridden and insecure code. In any language. Good news: with C, it's even easier! So familiarise yourself with common (and common-sense) pitfalls noted in the SEI CERT C coding standard and comp.lang.c FAQ. This part has a joke, which makes the overall website not read like a joke. I’m pretty sure it isn’t, even.