3 ms·
I've considered it, but like systemvoltage said, it's tough to get code to look good on ereaders. It's on my list of things to mess with after I get to version
by beej71 5y ago
I've considered it, but like systemvoltage said, it's tough to get code to look good on ereaders.
It's on my list of things to mess with after I get to version 1 of the C guide. :)
- glitchc 5y agoUnrelated: Beej, so nice to see you on this site, such a fan of your work. Used your guide a decade ago to implement socket select() on a system-critical app. Mad props for doing some awesome work!
- beej71 5y agoThanks! :)
- Icathian 5y agoI just got through my Graduate Intro to OS course at Georgia Tech last year, and your networking guide is still handed from student to student every single semester to survive the first project. I didn't think I'd get the chance, but since you're hanging out here, thank you very much for making it!
- kragen 5y agoIn Dercuano, Derctuo, and Dernocua, I was able to get what I thought was pretty reasonable formatting for 80-column code even on a cellphone screen in a PDF with the lmtlc font, which, despite the abbreviation, is called Latin Modern Mono Condensed Light; it's an extended version of Computer Modern Mono Condensed Light with some Unicode coverage. I wrote a little about this at https://news.ycombinator.com/item?id=21946327 https://news.ycombinator.com/item?id=21946327, and Dernocua is at http://canonical.org/~kragen/dernocua http://canonical.org/~kragen/dernocua among other places if you want to see how it worked out. I'm reasonably pleased with the Dercuano formatting, though some people hate it; it doesn't work very well on a laptop screen, but on a cellphone screen I think it's close to optimal, except where it's just broken. It's probably passable on a small ereader but would be painful on a large one, except maybe in landscape facing-pages mode. (I hacked together the HTML renderer to generate the PDF in a few days, and I didn't implement, for example, table layout; and when it has to fall back to a glyph that isn't in lmtlc, it screws up the column widths.) I think I've said this before, but I really appreciate Beej's Socket Guide! Thank you for writing it!
- kragen 5y ago*an extended version of Computer Modern Teletype Condensed Light