Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jcelerier
on March 4, 2021
|
parent
|
context
|
favorite
| on:
Accidentally quadratic: When Python is faster than...
> In D, `immutable(int)* x` cannot be changed by any reference to the value.
even if I use a magnetic needle to change the bits in my RAM ? :)
petertodd
on March 4, 2021
[–]
There's an easy answer to that: using a magnetic needle to change the bits in your RAM violated the assumptions of the compiler, leading to undefined behaviour. What exactly will happen in that circumstance is just that: undefined.
MaxBarraclough
on March 4, 2021
|
parent
[–]
To put that another way: hardware failures are beyond the scope of the compiler.
wizzwizz4
on March 4, 2021
|
root
|
parent
[–]
Maybe
your
compiler.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
even if I use a magnetic needle to change the bits in my RAM ? :)