Better HN
topnewbestaskshowjobs
Log inSign up

cdmh

82 karma · joined Aug 20, 2012 (14y ago) · 32 submissions

technologist, software systems architect, C++ enthusiast. Creator of @smartafeed real-time social media and web data processing platform. http://smartafeed.com
Submissions

1.

Anna: A Crazy Fast, Super-Scalable, Flexibly Consistent KVS(rise.cs.berkeley.edu ↗)

2 points · by cdmh · 8y ago · discuss

2.

Boost 1.61 C++ library released(boost.org ↗)

1 points · by cdmh · 10y ago · discuss

3.

Symmetric Stability of Low Level Feature Detectors (Computer Vision) [pdf](cdmh.co.uk ↗)

3 points · by cdmh · 10y ago · discuss

4.

Boost version 1.59 C++ libraries is released(boost.org ↗)

1 points · by cdmh · 11y ago · discuss

5.

Social networks and consumer Internet products: unsustainable in the current form?(craig-henderson.blogspot.com ↗)

1 points · by cdmh · 11y ago · discuss

comment 13y ago · link · parent

Documentation is at http://www.boost.org/users/history/version_1_55_0.html

7.

Boost 1.55.0 beta 1 release candidates available for testing(boost.cowic.de ↗)

1 points · by cdmh · 13y ago · 1 comment

8.

Sorting Algorithms implemented in C++(blog.reliablecpp.com ↗)

3 points · by cdmh · 13y ago · discuss

9.

Lest, a tiny C++11 unit test helper(martin-moene.blogspot.co.uk ↗)

3 points · by cdmh · 13y ago · discuss

comment 13y ago · link · parent

21.4.1 p6 states invalidation of iterators/references is only allowed for — as an argument to any standard library function taking a reference to non-const basic_string as an argument. — Calling non-const member functions, except operator[], at, front, back, begin, rbegin, end, and rend.

The non-const operator[] in a COW string requires making a copy of the string if the ref count > 1 which invalidates references and violates this paragraph.

comment 13y ago · link · parent

The class is movable already. Reference counting will allow a copy constructor or copy assignment to avoid copying the string object, just increase the reference count.

comment 13y ago · link · parent

COW is prohibited in C++11 Standard implementations of std::basic_string

comment 13y ago · link · parent

That is accurate. The object reference by immutable msg is hello_world which is mutable. If the value of hello_world changes, then the value of msg changes too. In the simple example, it won't happen, but the point is that it could, especially when multi-threaded.

comment 13y ago · link · parent

Hi Alex, you say I "claim[s] that objects accessed via reference to const can modify themselves". Which paragraph are you referring to? It don't see that? I'm happy to update the article to make it clearer. Thanks, Craig

comment 13y ago · link · parent

I'm toying with implementing O(1) copies by using a reference counted pointer to basic_string instead of storing it by value within the class. It would mean a small memory overhead and another level of indirection, but probably worth doing. Thoughts?

comment 13y ago · link · parent

I had a problem with the traffic volumes! It's back now, and stable.

I don't mention Java ;)

17.

A C++ Immutable String class(blog.reliablecpp.com ↗)

25 points · by cdmh · 13y ago · 56 comments

18.

One app for each gadget? No way This is not the Internet of Things we want(blog.thethings.io ↗)

4 points · by cdmh · 13y ago · discuss

19.

Using C++ template parameters to create strong types(reliablecpp.com ↗)

2 points · by cdmh · 13y ago · discuss

20.

Using strong types to avoid common C++ programming errors(reliablecpp.com ↗)

3 points · by cdmh · 13y ago · discuss

21.

Software defect analysis and traceability(cdmh.co.uk ↗)

1 points · by cdmh · 13y ago · discuss

22.

MapReduce C++ Library for single-machine, multicore applications(cdmh.co.uk ↗)

3 points · by cdmh · 13y ago · discuss

23.

Update to "C++11 breaking changes in const-correctness guarantees"(reliablecpp.com ↗)

4 points · by cdmh · 13y ago · discuss

24.

Avoiding problems with matching signed and unsigned types in C++(cdmh.co.uk ↗)

2 points · by cdmh · 13y ago · discuss

comment 13y ago · link · parent

I've updated the text to emphasize that. Thanks for pointing it out

26.

C++11 breaking changes in const-correctness guarantees(cdmh.co ↗)

31 points · by cdmh · 13y ago · 35 comments

27.

Updated book table of contents: "Reliable C++" Please help refine the contents(cdmh.co ↗)

2 points · by cdmh · 13y ago · discuss

28.

Big Data Beyond MapReduce: Google's Big Data Papers(cdmh.co ↗)

2 points · by cdmh · 13y ago · discuss

12