The most valuable values

Speaker: Juan Pedro Bolívar Puente

Audience level: Beginner | Intermediate | Advanced

category

The modern C++ community puts a strong emphasis on value semantics. We have learnt to build types and algorithms thinking in terms of values, their properties, and relationships.  However, when it gets to the architecture of big software, we end up growing ad-hoc webs of mutable objects that perform poorly and are hard to understand, debug and maintain.

In this talk, we will learn how to use value semantics where it matters most: for the big components of our system!

We will present Immer, a very efficient library of persistent immutable data structures. These containers don't change their values, the are manipulated by producing new values. The old values remain there and can be read safely from multiple threads without locks. New and old values share common data---they are fast to compare and use little memory. As such, they are great for concurrent and interactive systems: they simplify the architecture of desktop software and allow servers to scale better. They are the secret sauce behind the success of Clojure or Scala and even the JavaScript crowd is loving it via Facebook's Immutable.js.

Then we will put these tools into practice to build a text-editor, discussing its design and digging into code.  We will show how striking simplicity that does not compromise performance.  Don't believe it? Come and see!

Links: