News for hackers. Stuff that matters.
Re:BCHS stack – BSD, C, httpd, SQLite by afghanPower on Sunday June 18, 2017 @11:08AM (#14580949)
This is such an obvious joke. Chill my friends.
Re:BCHS stack – BSD, C, httpd, SQLite by sgt on Sunday June 18, 2017 @11:29AM (#14581052)
It'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?

Re:BCHS stack – BSD, C, httpd, SQLite by nickpsecurity on Sunday June 18, 2017 @02:34PM (#14582095)
For 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.
Re:BCHS stack – BSD, C, httpd, SQLite by pjmlp on Sunday June 18, 2017 @12:24PM (#14581375)
The difference being that C++ offers the language features and standard libraries to write safer code, while C....
Re:BCHS stack – BSD, C, httpd, SQLite by PrimHelios on Monday June 19, 2017 @12:56AM (#14584706)
>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.

Re:BCHS stack – BSD, C, httpd, SQLite by pjmlp on Monday June 19, 2017 @01:06AM (#14584727)
It 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.

Re:BCHS stack – BSD, C, httpd, SQLite by minitech on Sunday June 18, 2017 @11:35AM (#14581079)
> 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.

Re:BCHS stack – BSD, C, httpd, SQLite by marvel_boy on Sunday June 18, 2017 @11:22AM (#14581019)
Of course it is.