by dangerface on 8/23/21, 10:08 AM
Doing web development in c and getting that sweet performance boost is very tempting but the time it takes to develop even a simple website is just not worth it. I would rather spend a few pound extra on servers and goto the cinema than the hours of developer time it would take to build PHP sites in C++
by adrianN on 8/23/21, 8:56 AM
Writing web-facing code in C in 2021 is seldomly a good idea, even if it runs on OpenBSD in a jail.
by jvanderbot on 8/23/21, 4:09 AM
I've been ``statically'' compiling my php scripts to HTML. It's marvelous.
My build system is a makefile, and it feels like I'm parodying myself and the entire industry.
Is this the same?
by creshal on 8/23/21, 8:47 AM
Replace C/httpd with golang and you get a stack that's fairly decent.
by HeckFeck on 8/22/21, 10:39 PM
> Wasn't this site once funnier?
> Yes. But some folks confused humour with levity.
Time to fire up the Wayback machine ;)
by secondcoming on 8/23/21, 11:35 AM
Our core business is served by an apache module written in C++. I don't particularly like apache but writing an HTTP server from scratch is deceptively hard, especially in C. We took a quick look at nginx but found it hard to figure out. We also use microhttpd to give us an entrypoint where we can pull stats from small programs.
by mistralefob on 8/22/21, 11:19 PM
We write backend in C++ with http server builtin, so there is 1 forever running thread for all the requests and zero initialization time:
http://fintank.ru:8080/s/testby kristapsdz on 8/23/21, 9:22 AM
To answer questions so far (I'm the author of learnbhcs): yes, folks use BSD to host servers (if you want HTTP/2, there's nginx, etc.); kcgi interfaces with either CGI or FastCGI depending upon what the caller wants; yes, folks use this.
by tyingq on 8/22/21, 11:10 PM
I guess forking a cgi-bin program for every request keeps memory leaks down.
by LAC-Tech on 8/23/21, 8:29 AM
Any one use open BSD to host servers?
Last time I checked httpd didn't support http/2.
by avmich on 8/23/21, 1:43 AM
Enjoyed doing FastCGI with this framework, but simple examples don't present realistic complexity. Struggled with ways to create a small web app while maintaining simplicity similar to the examples provided (such as here -
https://learnbchs.org/easy.html ) even though semantics wasn't that different (present a form, after accepting data make a request, present a transformed result).
by Cthulhu_ on 8/23/21, 11:50 AM
Makes me wonder what my stack would be abbreviated to. LAGS? (linux, apache, go, sqlite? Apache is optional. As is Linux.)
by p4bl0 on 8/23/21, 11:43 AM
I totally get the geeky appeal of such a web development stack (a few years ago I could have chosen that for my personal web page, for fun). But in practice I doubt that it ends up a win in terms of security, maintainability, and development time.
by Asdrubalini on 8/23/21, 10:23 AM
Using a ARNP stack here (ArchLinux, Rust, nginx, PostgreSQL). It works great.
by floor_ on 8/23/21, 12:01 PM
by palerdot on 8/23/21, 4:14 PM
Just insert an `A` (maybe Assembly) after B, so that this becomes BACHS.
Has a nice ring to it. Maybe advertised as BACHS - a truly baroque stack
by pyuser583 on 8/23/21, 8:23 AM
Does anyone actually use this?
by rambambram on 8/23/21, 9:10 AM
Still very happy with my CHAMP-stack (CSS, HTML, Apache, MySQL and PHP).
by imwillofficial on 8/23/21, 10:48 AM
Trying to make the term BCHS a thing just isn’t going to happen.