logoalt Hacker News

Immer – A library of persistent and immutable data structures written in C++

109 pointsby smartmic12/21/202512 commentsview on HN

Comments

Waterluviantoday at 1:43 AM

Any sense how, if at all, C++ Immer and JS Immer relate as projects? They’re basically meant to be the same thing but I haven’t found either acknowledging the other.

show 2 replies
gnabgib12/21/2025

Popular in:

2019 (102 points, 56 comments) https://news.ycombinator.com/item?id=20947222

2016 (144 points, 46 comments) https://news.ycombinator.com/item?id=13049843

naruhodotoday at 1:42 AM

For the curious, yes they provide a garbage-collected heap [1] as well as reference counting.

[1] https://sinusoid.es/immer/memory.html#classimmer_1_1gc__heap

gignicotoday at 7:33 AM

I used this library extensively in a prototype of a project and it was awesome!

Besides performance, the API is very well thought.

alexpadulatoday at 4:08 PM

Really cool!

asatoday at 1:24 AM

Good stuff. Very good stuff.

nurettintoday at 5:13 AM

Anyone else religiously went through 490 packages in cppget to make sure they aren't missing out?