News for hackers. Stuff that matters.
Re:C++: Is It Really a Cruel Joke? (2003) by jstimpfle on Thursday July 05, 2018 @12:06PM (#17464322)
> Most high performance projects use vector and little else.

Right. And then it is actually a lot simpler to simply use pointer + size pairs [1] instead of std::vector. Changing to explicit allocation was the best decision I've made. I now find myself not longing for any C++ features anymore at all. I haven't needed anything besides a little allocation wrapper [2] and maybe a string-to-hash map since.

[1] Or n pointers + 1 size for parallel arrays, indicating that it's a bad idea to glue pointer + size in the first place.

[2] https://gist.github.com/jstimpfle/562b2c3e9fe537e378351bb9d5...

Re:C++: Is It Really a Cruel Joke? (2003) by jstimpfle on Thursday July 05, 2018 @04:54PM (#17466752)
> string-to-hash map

string-to-int hash map