Better HN
topnewbestaskshowjobs
Log inSign up

zl4000

9 karma · joined Nov 26, 2014 (12y ago) · 6 submissions

Submissions

comment 11y ago · link · parent

> Beats the heck out of taking an unexpected GC call somewhere later when you weren't expeccting it.

How is that an issue with c++ `std::string`

comment 11y ago · link · parent

Definitely, and where `std::string`'s interface is not enough, use thrid party libs which work on std::strings, like boost string algoriths, std regex, or uftcpp.

comment 11y ago · link · parent

No that's BS. `std::string` should be used where ever it is applicable.

The whole issue that this post about chrome was talking about was dealing with a poor usage of `std::string`, such as passing c_str() to then go and construct another string instead of passing by const ref.

Or building a set of `std::string` to simply check if a value exists.

That's just shit code, not an issue with `std::string`.

comment 11y ago · link · parent

Copy on write is not at all helpful in a language like C++ where concurrency can be concerned.

comment 11y ago · link · parent

Yeah, I can't believe this crap has become de-facto web design.

comment 12y ago · link · parent

I used it for testing Spare Matrix kernels I wrote for my Uni thesis.

However, god knows why this site is considered news worthy. I mean it's the same as it was yesterday, and the day before...