TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

BCHS stack – BSD, C, httpd, SQLite

92 点作者 cheezymoogle将近 4 年前

19 条评论

dangerface将近 4 年前
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++
评论 #28274446 未加载
评论 #28274238 未加载
adrianN将近 4 年前
Writing web-facing code in C in 2021 is seldomly a good idea, even if it runs on OpenBSD in a jail.
评论 #28277299 未加载
评论 #28274266 未加载
jvanderbot将近 4 年前
I&#x27;ve been ``statically&#x27;&#x27; compiling my php scripts to HTML. It&#x27;s marvelous.<p>My build system is a makefile, and it feels like I&#x27;m parodying myself and the entire industry.<p>Is this the same?
评论 #28281405 未加载
creshal将近 4 年前
Replace C&#x2F;httpd with golang and you get a stack that&#x27;s fairly decent.
评论 #28273828 未加载
评论 #28273968 未加载
评论 #28273618 未加载
HeckFeck将近 4 年前
&gt; Wasn&#x27;t this site once funnier?<p>&gt; Yes. But some folks confused humour with levity.<p>Time to fire up the Wayback machine ;)
secondcoming将近 4 年前
Our core business is served by an apache module written in C++. I don&#x27;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.
mistralefob将近 4 年前
We write backend in C++ with http server builtin, so there is 1 forever running thread for all the requests and zero initialization time: <a href="http:&#x2F;&#x2F;fintank.ru:8080&#x2F;s&#x2F;test" rel="nofollow">http:&#x2F;&#x2F;fintank.ru:8080&#x2F;s&#x2F;test</a>
kristapsdz将近 4 年前
To answer questions so far (I&#x27;m the author of learnbhcs): yes, folks use BSD to host servers (if you want HTTP&#x2F;2, there&#x27;s nginx, etc.); kcgi interfaces with either CGI or FastCGI depending upon what the caller wants; yes, folks use this.
tyingq将近 4 年前
I guess forking a cgi-bin program for every request keeps memory leaks down.
评论 #28273472 未加载
LAC-Tech将近 4 年前
Any one use open BSD to host servers?<p>Last time I checked httpd didn&#x27;t support http&#x2F;2.
评论 #28281462 未加载
评论 #28274814 未加载
评论 #28273916 未加载
评论 #28274307 未加载
评论 #28274038 未加载
avmich将近 4 年前
Enjoyed doing FastCGI with this framework, but simple examples don&#x27;t present realistic complexity. Struggled with ways to create a small web app while maintaining simplicity similar to the examples provided (such as here - <a href="https:&#x2F;&#x2F;learnbchs.org&#x2F;easy.html" rel="nofollow">https:&#x2F;&#x2F;learnbchs.org&#x2F;easy.html</a> ) even though semantics wasn&#x27;t that different (present a form, after accepting data make a request, present a transformed result).
Cthulhu_将近 4 年前
Makes me wonder what my stack would be abbreviated to. LAGS? (linux, apache, go, sqlite? Apache is optional. As is Linux.)
评论 #28274786 未加载
评论 #28274529 未加载
p4bl0将近 4 年前
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.
Asdrubalini将近 4 年前
Using a ARNP stack here (ArchLinux, Rust, nginx, PostgreSQL). It works great.
评论 #28274143 未加载
floor_将近 4 年前
Check out the markup generation of this custom http server: <a href="https:&#x2F;&#x2F;caseymuratori.com&#x2F;blog_0034" rel="nofollow">https:&#x2F;&#x2F;caseymuratori.com&#x2F;blog_0034</a>
palerdot将近 4 年前
Just insert an `A` (maybe Assembly) after B, so that this becomes BACHS.<p>Has a nice ring to it. Maybe advertised as BACHS - a truly baroque stack
pyuser583将近 4 年前
Does anyone actually use this?
评论 #28274082 未加载
rambambram将近 4 年前
Still very happy with my CHAMP-stack (CSS, HTML, Apache, MySQL and PHP).
imwillofficial将近 4 年前
Trying to make the term BCHS a thing just isn’t going to happen.
评论 #28274138 未加载