Proposal: Stop enforcing single-writer-multi-reader file access
ekmett at gmail.com
Thu Oct 27 17:00:54 CEST 2011
On Wed, Oct 26, 2011 at 6:59 PM, Ian Lynagh <igloo at earth.li> wrote:
> Hi all,
> Haskell currently requires that multiple-reader single-writer locking is
> used on files. I understand the motivation for this was to try to
> protect people from running into problems due to lazy IO, but in
> practice I think it just causes more problems than it solves.
> The decision may also have been influenced by the belief that this
> behaviour is enforced for all programs on Windows, but I am told that it
> is possible to get lock-free behaviour on Windows too.
> I propose that we remove all the automatic locking from the libraries,
> and let the user do any locking that they wish to do themselves.
> Attached are patches for ghc, base, process and unix. (not yet tested on
> Suggested discussion period: Until 9 Nov 2011
> Related GHC ticket: http://hackage.haskell.org/trac/ghc/ticket/4363
> Libraries mailing list
> Libraries at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries