5 ms·
> Recently I converted the C++ part to C, which halved the size of the wasm file. So you are saying that "costless" abstractions of C++ actually had some cost?
by mbel 8y ago
> Recently I converted the C++ part to C, which halved the size of the wasm file.
So you are saying that "costless" abstractions of C++ actually had some cost? Who would have thought.
- deleted 8y ago[deleted]
- wrs 8y agoI believe the philosophy of C++ is that features you don’t use should have zero runtime cost.
- coldtea 8y ago>So you are saying that "costless" abstractions of C++ actually had some cost? Who would have thought. Size obviously doesn't count. Obviously abstractions will produce more code.
- Skunkleton 8y agoSize doesn't count?
- thefounder 8y agoWith 5G it won't
- coldtea 8y agoFor web delivery it does. For server/desktop delivery, which is C++ original and major domain, for which those "costless abstractions" were developed, no. It's not like Stroustrup, Stepanov and co had web assembly and constrained mobile devices loading webpages in mind when designing C++. The idea of "costless abstractions" was about them not losing runtime speed -- not costless in code size. So the parent's comment doesn't really apply.