News for hackers. Stuff that matters.
Re:Safe dead code removal in a pure functional language by choeger on Thursday January 28, 2021 @03:46PM (#25948934)
They didn't say dead code analysis was decidable, but purity analysis.

Purity analysis is indeed trivially decidable, if you limit yourself to "probably always pure", not "pure when executed on a Tuesday". It boils down to "is this function calling only pure functions and not using any of the impure operators?". The trouble comes with dynamic languages where you usually don't know shit about a function's arguments, though. In that case you need a control flow Analysis of the whole program.

Re:Safe dead code removal in a pure functional language by millstone on Thursday January 28, 2021 @10:50PM (#25953634)
I think this was meant to have read as "provably always pure", not "probably always pure."
Re:Safe dead code removal in a pure functional language by choeger on Friday January 29, 2021 @04:49AM (#25955699)
effing spell checkers ...