Better HN
topnewbestaskshowjobs
Log inSign up

matthewinrw

5 karma · joined Oct 25, 2012 (14y ago) · 4 submissions

Submissions

comment 13y ago · link · parent

This is a really important development -- games have been one of the big things missing on the Linux front (excluding android).

Excited to see where this leads!

comment 13y ago · link · parent

Representative line:

"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

It's obvious the author doesn't work with market data. Those "mythical" applications are all running wall street. You won't find a single matching engine written in C# these days.

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

I'm not in favor of "business world" OO, but I do like abstract data types. The examples he uses of functional style still make use of abstract data types as their core building blocks.

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.