News for hackers. Stuff that matters.
Re:Why Haskell Is Worth Learning by lmm on Thursday May 04, 2017 @03:21PM (#14267854)
> "All non-trivial abstractions, to some degree, are leaky." - Joel Spolsky

If you learn Haskell you will see this is total bollocks.

Re:Why Haskell Is Worth Learning by mrob on Thursday May 04, 2017 @04:16PM (#14268379)
What's the Haskell code for preventing me touching the power switch?
Re:Why Haskell Is Worth Learning by runT1ME on Friday May 05, 2017 @01:33PM (#14275212)
I think you fundamentally misunderstand what the word abstraction means and the point of it.
Re:Why Haskell Is Worth Learning by lmm on Thursday May 04, 2017 @04:50PM (#14268670)
Touching the power switch will not lead to an incorrect result being returned.
Re:Why Haskell Is Worth Learning by mrob on Thursday May 04, 2017 @04:57PM (#14268754)
A 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.

Re:Why Haskell Is Worth Learning by tathougies on Thursday May 04, 2017 @08:10PM (#14270075)
> 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.

Re:Why Haskell Is Worth Learning by lmm on Thursday May 04, 2017 @06:13PM (#14269335)
If 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.