Hacker News new | ask | show | jobs
by steveklabnik 1186 days ago
It’s a term borrowed from C++, a “zero cost abstraction.”

Some folks use “zero overhead abstraction” to try and make the concept a bit more clear, since everything has some cost somewhere. “Zero cost” can feel incorrect.

1 comments

That makes more sense. Thanks!

Creating and adding DOM nodes is definitely not free, but I can see how this is very low overhead compared to VDOM diffing.

No problem. Here's the primary source, by the way: https://isocpp.org/wiki/faq/big-picture#zero-overhead-princi...

> What you don’t use, you don’t pay for (in time or space) and further: What you do use, you couldn’t hand code any better.