4 ms·
What's the Haskell code for preventing me touching the power switch?
by mrob 10y ago
What's the Haskell code for preventing me touching the power switch?
- lmm 10y agoTouching the power switch will not lead to an incorrect result being returned.
- mrob 10y agoA late result is an incorrect result in real-time systems. And if time isn't an issue, what's the Haskell code that stops me overclocking the CPU enough to make it unreliable? All software is leaky abstraction because it doesn't run on abstract mathematics, it runs on hardware. I can literally smash it with a hammer and then all the "guarantees" are worthless.
- lmm 10y agoIf the CPU violates its spec then the code will violate its spec, sure. That's not an abstraction leak though - if the CPU violates its spec then hand-crafted assembly would also go wrong.
- tathougies 10y ago> All software is leaky abstraction because it doesn't run on abstract mathematics, it runs on hardware. I can literally smash it with a hammer and then all the "guarantees" are worthless. Man, if that were the only thing that could make software go wrong, we would live in a much better world.
- runT1ME 10y agoI think you fundamentally misunderstand what the word abstraction means and the point of it.