Ask HN: Immutable data structures for the back end?
Immutable data structures are being adopted on the frontend with frameworks like redux. Can this same concept be applied to the server? An express like framework that works with immutable state?
I'm working on a toy stock exchange app to learn haskell and of course it will be mostly immutable. It will use some shared global state. This will have mutable reference using mvars or transactional memory but the "objects" themselves will be immutable.
Communicating between threads makes total immutability hard (maybe impossible?) unless you have a very clever threading model.
There also exist libraries for some languages that introduce immutable data structures, like pysistance for Python.