Re:Why Elixir? A Rebuttal to Common Misconceptions
by 3eb7988a1663 on Thursday July 24, 2025 @12:06AM
(#44666808)
I am not sure I want the system to continue operating in that scenario. You have corrupted hardware that could be trashing other records. What if it is flipping bits on financial transactions?
Re:Why Elixir? A Rebuttal to Common Misconceptions
by spooky_deep on Thursday July 24, 2025 @09:57AM
(#44670738)
Depends how you use the statically typed system.
For example
match parseFoo json with
| Ok foo ->
process foo
| Error message ->
print message
This will skip bad messages and be statically typed in the valid case.
Re:Why Elixir? A Rebuttal to Common Misconceptions
by bccdee on Tuesday July 29, 2025 @01:13PM
(#44725914)
That only works for enum discriminants. What if it were modifying the data payload, producing valid but corrupt messages?
The only way to tolerate that kind of error is checksums on your data, and I don't think any language has that kind of redundancy built in.
Long story short, a particular machine that joined the cluster that morning had some kind of CPU or memory flaw that flipped a bit sometimes. Our Elixir server was fine because we were matching on valid values. Imagine a typed language compiler that makes assumptions about things that "can't" happen because the code says it can't... yet it does.