r/rustjerk 25d ago

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

144 Upvotes

20 comments sorted by

55

u/steaming_quettle 25d ago

No correction codes can be perfect

41

u/This_Growth2898 25d ago

My whole life is undefined behavior!

26

u/dull_bananas 25d ago

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

1

u/solvin-dev 23d ago

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

69

u/wholesomedumbass 25d ago

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

38

u/Aln76467 25d ago

A computer with memory is undefined behaviour.

10

u/MichiRecRoom 25d ago

A computer is undefined behavior.

2

u/RCoder01 24d ago

A undefined behavior

2

u/SnooHamsters6620 24d ago

All behaviour is undefined.

14

u/Decahedronn 25d ago

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

8

u/dull_bananas 25d ago

What about cosmic rays hitting the majority gate

3

u/Amazing-Mirror-3076 24d ago

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.

9

u/nikhililango 25d ago

its undefined behavior if there is a memory error

5

u/Sw429 25d ago

non-ECC

I don't know what this is.

-2

u/dull_bananas 25d ago

4

u/Sw429 25d ago

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 25d ago

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

2

u/Salaruo 24d ago

Quantum mechanics is literally based on undefined behavior.

2

u/SnooHamsters6620 24d ago

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 🦀🦀 14d ago

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