+1!<br><br><div class="gmail_quote">On Wed, Oct 26, 2011 at 6:59 PM, Ian Lynagh <span dir="ltr">&lt;<a href="mailto:igloo@earth.li">igloo@earth.li</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi all,<br>
<br>
Haskell currently requires that multiple-reader single-writer locking is<br>
used on files. I understand the motivation for this was to try to<br>
protect people from running into problems due to lazy IO, but in<br>
practice I think it just causes more problems than it solves.<br>
<br>
The decision may also have been influenced by the belief that this<br>
behaviour is enforced for all programs on Windows, but I am told that it<br>
is possible to get lock-free behaviour on Windows too.<br>
<br>
I propose that we remove all the automatic locking from the libraries,<br>
and let the user do any locking that they wish to do themselves.<br>
<br>
Attached are patches for ghc, base, process and unix. (not yet tested on<br>
Windows).<br>
<br>
<br>
Suggested discussion period: Until 9 Nov 2011<br>
<br>
Related GHC ticket: <a href="http://hackage.haskell.org/trac/ghc/ticket/4363" target="_blank">http://hackage.haskell.org/trac/ghc/ticket/4363</a><br>
<br>
<br>
Thanks<br>
<font color="#888888">Ian<br>
<br>
</font><br>_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br>