Better HN
topnewbestaskshowjobs
Log inSign up

haiihaii

0 karma · joined Feb 16, 2018 (8y ago) · 3 submissions

Submissions

comment 7y ago · link · parent

Web servers for embedded or otherwise constrained systems, bolt-on embedded api servers for your existing apps, or just any high perf app/gateway. All the reasons you would otherwise do it in cpp except nope.

comment 8y ago · link · parent

I've gotten quite used to doing just this. It started out as a habit from cpp where I relied on RVO, but for small structs the price of copying it vs copying a pointer to it seems extremely minimal apart from the temporary double allocation. Also, does anyone know if gcc or clang does something along the lines of RVO behind the scenes? I fail to see any side effects from it, so it should be entirely possible, no?