Live data from Hacker News

21st Century C++

cacm.acm.org

1–10 of 281 posts

Re: 21st Century C++

#5

Something about the formatting of the code blocks used is all messed up for me. Seems to be independent on browser, happens in both Firefox and Chrome.

Firefox reader view seems to be a slight improvement since it removes the random right alignments in the article.

Re: 21st Century C++

#6
Modules sound cool for compile time, but do they prevent duplicative template instantiations? Because that's the real performance killer in my experience.

Re: 21st Century C++

#7

Something about the formatting of the code blocks used is all messed up for me. Seems to be independent on browser, happens in both Firefox and Chrome.

This is a Bjarne issue. For personal reasons he uses proportional fonts in his code blocks (in his texts) instead of monospaced and the code snippets always look bad. I guess he is stuck in his ways, just have to work around this ugly look.

Re: 21st Century C++

#8

Something about the formatting of the code blocks used is all messed up for me. Seems to be independent on browser, happens in both Firefox and Chrome.

It's typical Stroustrup style to write code in a variable width font. I'd wager they didn't have an option to use a variable-width font in their code blocks in their CMS and normal paragraphs are trimmed automatically.

I didn't see the author at first. However, immediately after seeing the code I checked for the author, because I was sure it was Stroustrup.

Re: 21st Century C++

#9
post #6

Modules sound cool for compile time, but do they prevent duplicative template instantiations? Because that's the real performance killer in my experience.

Modules don't treat templates any differently than non-modules so no, they don't prevent duplicate template instantiations.

Re: 21st Century C++

#10
post #7

Something about the formatting of the code blocks used is all messed up for me. Seems to be independent on browser, happens in both Firefox and Chrome.

This is a Bjarne issue. For personal reasons he uses proportional fonts in his code blocks (in his texts) instead of monospaced and the code snippets always look bad. I guess he is stuck in his ways, just have to work around this ugly look.

[deleted]
Post reply on HN