Re:What every systems programmer should know about concurren...
by adrianN on Friday December 13, 2024 @10:44AM
(#42409554)
Of course you can have only immutable data, you just need suitable monads.
Re:What every systems programmer should know about concurren...
by hyperpape on Friday December 13, 2024 @12:04PM
(#42410273)
There's disagreement about what exactly makes you a systems programmer, but dealing with the reality that memory is finite is definitely a requirement.
You need mutation or garbage collection (and systems programming is the kind of environment where that's not just "someone else's problem").
Re:What every systems programmer should know about concurren...
by kccqzy on Friday December 13, 2024 @12:34PM
(#42410534)
Plenty of languages have immutable data without monads or even being statically typed. Clojure is a fine example. And there is also the somewhat popular https://immutable-js.com/ that brings the benefits of immutable data to JavaScript.
Re:What every systems programmer should know about concurren...
by SideQuark on Saturday December 14, 2024 @10:07AM
(#42417556)
By that argument, all programming is immutable, with monads only used to update the mutable parts.
The point of this article is to detail needs for those monads to interact in a concurrent manner.
Re:What every systems programmer should know about concurren...
by rileymat2 on Sunday December 15, 2024 @12:09PM
(#42424530)
> Immutable is kind of irrelevant in a discussion of multi-threading because immutable data has no problems in this regard.
To push back on this, no data is completely immutable, it is mutable on initialization, treating it as immutable between threads is ok after this stage, but if you disregard issues with timing and mutation you will run into problems between threads on initialization.
Immutable is kind of irrelevant in a discussion of multi-threading because immutable data has no problems in this regard. Which, of course, in a way also makes it relevant because one prevents issues. Ultimately one cannot have just immutable data because the computer would not be allowed to do anything. This document would be about data that cannot be immutable.
But the complaint sounds a bit like an article about assembly language getting the complaint that it does not explain how to implement a word processor.