
I've come up with what might be a fix for a major thread safety bug in lazy ST. Fixing it involved making multiple non-trivial changes to a number of basic functions. Unfortunately, the GHC test suite barely touches lazy ST. Does anyone out there have some code that uses lazy ST in interesting ways but that only relies on the libraries that ship with GHC?

On 2017-01-29 02:22 AM, David Feuer wrote:
I've come up with what might be a fix for a major thread safety bug in lazy ST. Fixing it involved making multiple non-trivial changes to a number of basic functions. Unfortunately, the GHC test suite barely touches lazy ST. Does anyone out there have some code that uses lazy ST in interesting ways but that only relies on the libraries that ship with GHC?
I don't normally use lazy ST, but I have some toy examples at http://lpaste.net/63925 . You may like the fact that I got strictToLazyST involved.

Thanks! I'll include these in my proposed additions to the GHC test suite,
with your permission (releasing them under GHC's license terms).
On Jan 30, 2017 2:28 PM, "Albert Y. C. Lai"
On 2017-01-29 02:22 AM, David Feuer wrote:
I've come up with what might be a fix for a major thread safety bug in lazy ST. Fixing it involved making multiple non-trivial changes to a number of basic functions. Unfortunately, the GHC test suite barely touches lazy ST. Does anyone out there have some code that uses lazy ST in interesting ways but that only relies on the libraries that ship with GHC?
I don't normally use lazy ST, but I have some toy examples at http://lpaste.net/63925 . You may like the fact that I got strictToLazyST involved. _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

OK yes, this is my message of explicit consent (in case it is needed). On 2017-01-31 12:48 AM, David Feuer wrote:
Thanks! I'll include these in my proposed additions to the GHC test suite, with your permission (releasing them under GHC's license terms).
On Jan 30, 2017 2:28 PM, "Albert Y. C. Lai"
mailto:trebla@vex.net> wrote: On 2017-01-29 02:22 AM, David Feuer wrote:
I've come up with what might be a fix for a major thread safety bug in lazy ST. Fixing it involved making multiple non-trivial changes to a number of basic functions. Unfortunately, the GHC test suite barely touches lazy ST. Does anyone out there have some code that uses lazy ST in interesting ways but that only relies on the libraries that ship with GHC?
I don't normally use lazy ST, but I have some toy examples at http://lpaste.net/63925 . You may like the fact that I got strictToLazyST involved. _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (2)
-
Albert Y. C. Lai
-
David Feuer