News for hackers. Stuff that matters.
Re:OpenBSD base now free of C++ by mhd on Monday March 14, 2011 @02:02PM (#2323614)
So they replaced a generic roff system with a specialized man page viewer? Why? I mean, if you're rewriting everything and 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.

(Or I'm just the only one who still occasionally uses ms/tbl/pic…)

Re:OpenBSD base now free of C++ by henryprecheur on Monday March 14, 2011 @02:12PM (#2323661)
The main reasons for replacing groff were:

1. Groff is buggy

2. Groff is slow to compile & execute

3. Groff is not BSD licensed

mandoc has none of these problems. If you want a "generic" roff system, groff is available as a package.

According to http://mdocml.bsd.lv/

> groff amounts to over 5 MB of source code, most of which is C++ and all of which is GPL. It runs slowly, produces uncertain output, and varies in operation from system to system. mdocml strives to fix this (respectively small, C, ISC-licensed, fast and regular).

Re:OpenBSD base now free of C++ by mhd on Monday March 14, 2011 @04:45PM (#2324365)
Those are reason why you wouldn't use groff, it still doesn't explain why – if you're taking the effort – you're not building a proper roff replacement, but some subset bastard program. And then hack stuff like tbl into the main executable. (Never mind that there's Plan 9 roff or the heirloom version)

I get it, nobody really seems to use non-man roff anymore. Still, subsetting and reinventing the wheel (partially) seems a odd solution for this.

Re:OpenBSD base now free of C++ by protomyth on Monday March 14, 2011 @05:06PM (#2324470)
Resources, need, and code audits are the reason to build a simple tool that does the job you want.
Re:OpenBSD base now free of C++ by tedunangst on Monday March 14, 2011 @10:14PM (#2325517)
Why is reducing the scope of the problem in order to simplify the solution so odd?
Re:OpenBSD base now free of C++ by dexen on Monday March 14, 2011 @02:20PM (#2323702)
This isn't the program you are looking for [[ http://man.cat-v.org/plan_9/1/troff ]]
Re:OpenBSD base now free of C++ by __david__ on Monday March 14, 2011 @04:12PM (#2324201)
> So they replaced a generic roff system with a specialized man page viewer? Why?

Because no one uses roff format for anything other than man pages any more. And even then, it's extremely common to use it only as "object code", output from some higher level/cleaner input format (perldoc, pydoc, docbook/asciidoc). I like that they have high level output formats (pdf, html, ascii) and hope that the package becomes an option in Debian at some point.