5 karma · joined Oct 25, 2012 (14y ago) · 4 submissions
comment 13y ago · link · parent
"Windows RT runs only on WinRT"
So abbreviating a word now changes its meaning? Abuses like this go a long way to explaining the confusion.
I'm getting flashes of the French word "ho^te" which helpfully means either host or guest, and so distinguishes neither.
comment 14y ago · link · parent
The short answer is that SRAM is faster than DRAM, and you can be a lot stingier with memory in C++ and hence fit more into the fast type of RAM.
Stack-based allocation is not by any means an "advanced" technique, and is the absolute fastest form of memory management, full stop. It can deallocate an arbitrary number of objects in a single assembly instruction. Good C++ makes extensive use of the stack for this reason.
Stack allocated objects are densely packed into the L1 cache, making them faster than objects from an allocator which might spray them over the address space in suboptimal scenarios.
This absolute control over how memory is being used, (_when_ done well) is the difference between "gee that's pretty fast" and "wow".
comment 14y ago · link · parent
Modern OO thinking requires that only functions that preserve the integrity of the invariant should be member functions. If you're talking about an arbitrary 3 dimension point in space, that invariant is hugely generous and you'll have no member functions at all. They're three numbers, do with them what you will. The insert method, on the other hand, of a red black tree is so absolutely connected with its data structure that it would be an error to try to factor it out.
The problem, as always, are golden-hammerists. Everything has its use, in moderation and with a light hand, a conclusion I think this article still arrives at ever so subtly.