Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Computer hardware has no concept of immutability or local state on the hardware level. You only have memory regions. If you want to get a feeling for this, I suggest to start learning assembly language.

Even if computers had immutable memory, then you still need to initialize memory regions with constant values and that would be a mutation.

It is possible to protect memory regions from writing, but these regions are still writable by the operating system kernel. And this is purely for safety and not for performance.

(And don't get me started on CPU caches and registers)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: