TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

BCHS Stack - BSD, C, Httpd, SQLite

138 pointsby fcambusalmost 9 years ago

28 comments

ohitsdomalmost 9 years ago
&gt; &quot;BCHS (pronounced &#x2F;biːtʃəz&#x2F;, beaches) is for real development. It&#x27;s a hipster-free, open source software stack for web applications.&quot;<p>Everything about how this is written is <i>so</i> hipster. Cool idea though.
评论 #11764477 未加载
评论 #11765131 未加载
评论 #11766668 未加载
评论 #11766791 未加载
tracker1almost 9 years ago
I&#x27;m not sure how this is significantly better than using say Rust or Go with sqlite embedded, which can be built statically and target any number of hosting platforms with less chance of memory bounds, leaks and the host of issues that tend to surround applications built in lower-level languages at any kind of scale.<p>It&#x27;s a nice advertizement for OpenBSD, and in general, I feel the BSDs don&#x27;t get enough recognition as an alternative to &quot;Linux Everywhere&quot;... that said, I&#x27;m not in favor of C as a core tech stack language for higher level line of business applications, which is a majority of software developed (in isolation from other, or more popular or more widely used software).
评论 #11768248 未加载
评论 #11764486 未加载
wwwestonalmost 9 years ago
Having actually written web applications with C as my very first web-dev job, my opinion of this is... not high.<p>I&#x27;m sure at this point there are better abstractions to use (nobody knew how to structure a web app way back when) and there&#x27;s less ad hoc templating and other string cobbling now, but I can&#x27;t imagine going back unless there were compelling performance gains I needed and couldn&#x27;t get any other way.<p>C also:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6402885" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6402885</a>
jitlalmost 9 years ago
Seems like a hilarious parody. The only problem is that it isn&#x27;t typeset in Comic Sans, the official font of the OpenBSD web presence.
nickpsecurityalmost 9 years ago
I like this little project. Nice combo. Let&#x27;s take it to another level:<p>BALS (pronounced &quot;Balls&quot;): What you have when you combine [Open]BSD, Ada, Lighttpd, and SQLite. Smokes BCHS in both safety (Ada) and probably speed (web server). Especially when you rewrite the web server in Ada&#x2F;SPARK with all checks on. :)
评论 #11765109 未加载
评论 #11765896 未加载
atmosxalmost 9 years ago
&quot;hipster-free&quot; really? :-) I think it&#x27;s the definition of <i>hipster</i>: Low value framework(compared to established web frameworks), will be used a bunch of devs for corner cases OR (mostly I guess) to brag about it (on hackernews, reddit, mailing-lists, forums, chats, etc.)<p>That said, I&#x27;m glad it exist, the more choice we have the better :D
评论 #11764638 未加载
koolbaalmost 9 years ago
&gt; BCHS (pronounced &#x2F;biːtʃəz&#x2F;, beaches) is for real development. It&#x27;s a hipster-free, open source software stack for web applications. To prepare a BCHS environment, install OpenBSD. Then get started.<p>Referring to something as &quot;hipster-free&quot; automatically classifies you as hipster. It&#x27;s similar to how asking &quot;<i>Am I cool</i>?&quot; automatically disqualifies you from being cool.
btraskalmost 9 years ago
With sufficient sandboxing, and depending on the needs of the site in question, this is actually possible to do securely.<p>When you use sandboxing properly, the security of your application doesn&#x27;t depend on how complex it is or how many features it has. This is a huge advantage over secure programming languages, where bugs are less likely but still some constant factor of KLOC.<p>That said, not every application can be sandboxed easily.
victorhugo31337almost 9 years ago
&quot;It&#x27;s a hipster-free, open source software stack for web applications.&quot; :-D
评论 #11764249 未加载
评论 #11764240 未加载
评论 #11764100 未加载
legulerealmost 9 years ago
There&#x27;s buffer overflows missing in the list of features.
评论 #11766151 未加载
Hydraulix989almost 9 years ago
Man, there&#x27;s so much irony with using OpenBSD (an OS designed with security in mind) with a web app written in C.<p>While half asleep the other night, I randomly found a very obscure but also dangerous remotely exploitable buffer overflow in C++11 code I had written a while ago -- it&#x27;s still very possible even with a modern C++ codebase.
评论 #11765731 未加载
geofftalmost 9 years ago
&gt; <a href="http:&#x2F;&#x2F;man.openbsd.org&#x2F;OpenBSD-current&#x2F;man1&#x2F;gcc-local.1" rel="nofollow">http:&#x2F;&#x2F;man.openbsd.org&#x2F;OpenBSD-current&#x2F;man1&#x2F;gcc-local.1</a><p>Wait, is it really true that OpenBSD&#x27;s gcc is from the 4.x series?<p>Apart from the general idea that you shouldn&#x27;t be writing network-facing software in C when good alternatives (Rust, Go, C++11, Haskell, just about anything else) exist, there&#x27;s a lot of good work happening in <i>upstream</i> GCC. How up-to-date is OpenBSD&#x27;s -fstack-protector compared to GCC 6&#x27;s?<p>&gt; <i>Write portable and secure C.</i><p>If you&#x27;re running on the BCHS stack, why? And how is it possible to reconcile this with the suggestions to use systrace(4), pledge(2), and capsicum(4), which aren&#x27;t even portable <i>among the vibrant BSDs</i>?
protomythalmost 9 years ago
On a non-joke tangent, I do like the new httpd for OpenBSD. It works quite nicely for our small websites.
Millenniumalmost 9 years ago
That acronym has some... unfortunate... plausible pronunciations.
评论 #11764221 未加载
mrweaselalmost 9 years ago
Should I be concerned that all the FastCGI links are to an now dead site and that fcgi seems to be unmaintained?
smitherfieldalmost 9 years ago
I&#x27;m 95% sure this is a joke; like it links to this site: <a href="http:&#x2F;&#x2F;www.fastcgi.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.fastcgi.com&#x2F;</a>
评论 #11765141 未加载
abimaelmartellalmost 9 years ago
I&#x27;ve worked with that exact same stack before, it&#x27;s pretty fun, there&#x27;s a lot of cool libraries and tools for C.
评论 #11764488 未加载
danieltillettalmost 9 years ago
I should write up my stack BSTD (pronounced b&#x27;stard) - BSD, SQLite, TUX, D.
k__almost 9 years ago
I used SQLite for development sometimes, how good does it scale in production?
评论 #11766086 未加载
评论 #11765986 未加载
Hydraulix989almost 9 years ago
Sqlite isn&#x27;t even sharded, good luck scaling your next unicorn startup!
评论 #11765611 未加载
oxplotalmost 9 years ago
Given that a C server is most likely multithreaded, wouldn&#x27;t it be more heavy weight than an equivalent green thread&#x2F;coroutine setup like golang?
akadienalmost 9 years ago
Almost as funny as <a href="https:&#x2F;&#x2F;threatbutt.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;threatbutt.com&#x2F;</a>
cpachalmost 9 years ago
I really like the design of this page!
aidenn0almost 9 years ago
I wonder why slowcgi over libfastcgi?
khattamalmost 9 years ago
It is kinda funny... but it would be funnier if this was not a joke.
zxcvcxzalmost 9 years ago
&gt;forget your LAMP instincts to desperately search Google and StackExchange for every parameter: man pages are your new best friend.<p>The amount of arrogance here is astounding. For one thing it&#x27;s a trope that Linux doesn&#x27;t have good documentation, RHEL has better docs than anything I&#x27;ve seen from BSD. C is a whole software language and AFAIK you can&#x27;t just &quot;man c&quot; and even if you could why would you want to read the whole manual&#x2F;handbook for the C programming language to figure out something trivial? You would google it anyway.<p>The only reason using man pages on BSD might be better than google is because 90% of the answers you&#x27;ll find on google will be from a Linux perspective and you&#x27;ll have to do a second search to figure out how to apply the answer to BSD. Yes, 90% of the time the Linux solution will work on BSD but the 10% of the time when it doesn&#x27;t is a huge pain.
评论 #11765050 未加载
评论 #11765118 未加载
评论 #11765297 未加载
评论 #11765078 未加载
ninjakeyboardalmost 9 years ago
Lol this is funny.
nothrowsalmost 9 years ago
this page is garbage. no useable information what so ever. just a fucking joke site