Better HN
topnewbestaskshowjobs
Log inSign up

debt93

24 karma · joined Apr 14, 2021 (5y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

It is not a "hack". It is the behavior that I expect from a dynamically resizable array.

std::vector in C++ does it, so does Vec in Rust, and they are not dynamic languages with GC.

comment 5y ago · link · parent

Honestly, the fact that AssemblyScript's Array implementation does not double the internal capacity but instead adds just one more slot when reallocating makes me worry about the quality of the language as a whole.

I hope it is just an oversight, but come on...