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.

OpenBSD base now free of C++

121 pointsby cannedprimatesabout 14 years ago

9 comments

16sabout 14 years ago
You can still add g++, boost and other high-quality C++ libraries to OpenBSD via ports/packages. They just prefer plain C in the base install. Plain C is inline with their "keep it simple" philosophy.
评论 #2323687 未加载
goaliecaabout 14 years ago
What an interesting development. The year is 2011 and we are proudly announcing removal of C++ due to bloat.
评论 #2323464 未加载
评论 #2323571 未加载
rchabout 14 years ago
I write more C++ than C, but this still makes me happy.<p>Some people set an objective, for whatever reason, and accomplished it. Other people seem happy with the result.<p>I'd call that a positive outcome for OpenBSD and all the developers involved. Cheers!
ChuckMcMabout 14 years ago
Wow, another reason to check back in with OpenBSD. Regardless of the meta debate on C++'s virtues or issues, having the core system build with just C would seem to help in simplifying things.<p>I am perhaps in the minority but I would really like a straight forward to build and maintain UNIX derivative and perhaps this can be it.
评论 #2326061 未加载
danieldkabout 14 years ago
Language purity for a project is never bad, it makes it easier to contribute to a project. However, this is barely a feature, given that C is weakly typed and common C functions do not use boundary checks<i>.<p>For an operating system that aims to be secure, one would expect a more progressive stance, and heavy (intellectual) investment in a language that makes safety easier.<p></i> Yes, I know that OpenBSD prefers more secure variants of common functions.
评论 #2323889 未加载
alexeizabout 14 years ago
It's funny, they are so proud of it. Groff is so ancient, you can't seriously claim it's written in C++. It's written in C++ circa 1988. Pre-template collections, no Standard library, no namespaces, no exceptions, practically plain C code. Well, not plain exactly, C with classes and virtual functions. I guess, OpenBSD folks didn't like virtual functions...
sliverstormabout 14 years ago
It'd probably be too much to hope that this catches on and becomes a trend.
mhdabout 14 years ago
So they replaced a generic roff system with a specialized man page viewer? Why? I mean, if you're rewriting everything <i>and</i> include a bevvy of output formats, why not make it a proper replacement? Would be quite a bit more unix-y. Yes, maybe a bit more work in the end, but you could always have "oroff 0.1" which only supports a -man subset evolve into a full-fledged implementation. Going from mandoc to "oroff" seems less likely.<p>(Or I'm just the only one who still occasionally uses ms/tbl/pic…)
评论 #2323661 未加载
评论 #2323702 未加载
评论 #2324201 未加载
j_bakerabout 14 years ago
I'm curious if someone can elaborate more on this. Is C++ in general <i>that</i> much more time-consuming to compile than C code? Or is it just an issue with gcc vs g++? Or is this issue unique to Groff?
评论 #2326152 未加载