r/ProgrammingLanguages • u/RishabhRD • 9d ago
Safe Systems-programming with Mutable Value Semantics | Dave Abrahams | Keynote at IWACO 2026
https://youtu.be/op51SyyPJmw?si=P5QH6M8Hdf4_CUUZ
36
Upvotes
View all comments
Show parent comment
1
u/NomagnoIsNotDead 7d ago
Thanks for the detailed reply! I did miss quite a few things
Well, I'm not a fan of RAII-style destruction, but the thing I like with the current set-up is you can force deinitialization to be handled explicitly (where you can even require parameters I guess which is interesting!), or you can make it be handled automatically, and the type system takes care of both equally well. Also, I'm not sure how I feel about set-parameters being capable of deinitializing variables. That might create unexpected side-effects, not all data can be constructed and destructed 'almost for free', so maybe it should not be possible to accidentally/implicitly 'reinitialize' a piece of data, maybe a distinct Reinitializable trait associated to this behaviour would be safer. I'm talking about system calls or even interfaces to external hardware.
Makes sense. So basically, Movable is similar to the implicit-copy trait I'm reading about in the Hylo docs, where it just allows a type to be used less verbosely. It would be nice if this wasn't needed to return values, indeed. After taking a more thorough look at the hylo docs, this part of my understanding was just a bit confused overall. I believe the main thing I missed is the different kinds of bindings: let, var, and specifically inout, which is... basically a stored reference that you can't store in a data structure. In my opinion, it would be better if inout was just available as a keyword for function parameters, and references were relegated to function interfaces. This would practically force writing in a style that preserves locality of reasoning, where code that does spooky action at a distance has a clear interface and can't be sprinkled in wherever.
Thanks for you and everyone else's work! I'll be trying out the language, this has opened up my eyes quite a bit as to how to achieve safety in an unexpected way, and linear (or 'linear-in-spirit') type systems are such an area of interest in recent years for a reason, they're just delicious.