http://qs321.pair.com?node_id=621509


in reply to Re^10: Is it worth using Monads in Perl ? and what the Monads are ?
in thread Is it worth using Monads in Perl ? and what the Monads are ?

An interesting aside arises from working my way through your links on STM. From section 4.4 of STM.pdf:

Like high-level languages, transactional memory does not banish bugs altogether; for example, two threads can easily deadlock if each awaits some communication from the other.

The oft-quoted problem with lock-based shared state is the deadlock problem. I was under the impression that STM was the cure for this. I'm disappointed to discover that's not the case.

See, you gotta look under the covers :)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^11: Is it worth using Monads in Perl ? and what the Monads are ?

Replies are listed 'Best First'.
Re^12: Is it worth using Monads in Perl ? and what the Monads are ?
by gaal (Parson) on Jun 15, 2007 at 21:56 UTC
    There is no silver bullet. But sometimes you can pick up a better stick.