Re:Ask HN: Good C++ code bases to read?
by hexane360 on Wednesday October 28, 2020 @10:34AM
(#24919148)
>Your idea of heavenly C++ sounds like my idea of hell.
I'm concerned this may be the definitive C++ experience...
True of pretty much all "big tent" languages, I suspect.
Re:Ask HN: Good C++ code bases to read?
by ajoseps on Wednesday October 28, 2020 @10:38AM
(#24919201)
You can use custom allocators to minimize dynamic allocation. STL now provides some of these allocators out of the box, but it still can be useful to define your own. Arena or memory pool allocators are the first that come to mind.
Re:Ask HN: Good C++ code bases to read?
by spacechild1 on Wednesday October 28, 2020 @10:50AM
(#24919358)
While I work in a field where such things are necessary (real-time audio programming), I doubt that such things are relevant for someone just starting out with C++...
Re:Ask HN: Good C++ code bases to read?
by ajoseps on Wednesday October 28, 2020 @10:59AM
(#24919494)
Oh yeah, I definitely agree. I don't think it's relevant for someone just starting out. Just wanted to put it out as an example
Re:Ask HN: Good C++ code bases to read?
by jcelerier on Wednesday October 28, 2020 @03:08PM
(#24922864)
> I doubt that such things are relevant for someone just starting out with C++...
you'd be amazed at the amount of people who start learning C++ because they want to write VSTs
Re:Ask HN: Good C++ code bases to read?
by spacechild1 on Wednesday October 28, 2020 @07:40PM
(#24925448)
True, but they would probably use a framework like JUCE which does a great job at hiding the complexity. Writing a VST3 plugin from scratch is not for the faint of heart.
Your idea of heavenly C++ sounds like my idea of hell.