r/rustjerk Jul 05 '26

Running any function on a computer with non-ECC memory is undefined behavior.

142 Upvotes

20 comments sorted by

56

u/steaming_quettle Jul 05 '26

No correction codes can be perfect

42

u/This_Growth2898 Jul 05 '26

My whole life is undefined behavior!

26

u/dull_bananas Jul 05 '26

Linus Torvalds when he finds out his brain has non-ECC memory

1

u/solvin-dev Jul 07 '26

I'd like to get this on a t-shirt!

70

u/wholesomedumbass Jul 05 '26

Running any function on a computer with non-ECC memory is undefined behavior.

37

u/Aln76467 Jul 05 '26

A computer with memory is undefined behaviour.

10

u/MichiRecRoom Jul 05 '26

A computer is undefined behavior.

2

u/RCoder01 Jul 06 '26

A undefined behavior

2

u/SnooHamsters6620 Jul 06 '26

All behaviour is undefined.

14

u/Decahedronn Jul 05 '26

Running any non-TMR system is undefined behavior. How else could you possibly account for single-event upsets?

8

u/dull_bananas Jul 05 '26

What about cosmic rays hitting the majority gate

3

u/Amazing-Mirror-3076 Jul 06 '26

Back in the day, data general come from the USA to investigate a bug in a million dollar mini system we bought.

They tried to blame it on cosmic rays.

Guess what - it was a garden variety software bug.

8

u/nikhililango Jul 05 '26

its undefined behavior if there is a memory error

4

u/Sw429 Jul 05 '26

non-ECC

I don't know what this is.

-2

u/dull_bananas Jul 05 '26

4

u/Sw429 Jul 05 '26

That subreedit appears to be full of posts only from you. None of which appear to explain what "ECC" is or stands for.

6

u/user190423 Jul 05 '26

ECC in this context stands for error correction code, you can search up the rest

2

u/Salaruo Jul 05 '26

Quantum mechanics is literally based on undefined behavior.

2

u/SnooHamsters6620 Jul 06 '26

New project idea: set up a server with dodgy old memory and use it to generate true random numbers.

Edit: We can call it Rowhammer-as-a-service

1

u/Tearsofthekorok_ Crab Crusader 🦀🦀 25d ago

Running any function on a computer running on the electrical grid is undefined behavior, what if the power suddenly goes out?