
12 Mar
2013
12 Mar
'13
12:52 a.m.
OK, I've posted a draft patch: http://hackage.haskell.org/trac/ghc/ticket/7763 Edward Excerpts from Edward Z. Yang's message of Fri Mar 08 00:52:37 -0800 2013:
Ever wanted to write this?
-- | Forks a thread, but kills it if it has more than 'limit' -- bytes resident on the heap. forkIOWithSpaceLimit :: IO () -> {- limit -} Int -> IO ThreadId
I have a proposal (and some unpublished experimental patches) which do just that. Check it out at: http://hackage.haskell.org/trac/ghc/wiki/Commentary/ResourceLimits
Comments, bikeshedding and critique appreciated.
Cheers, Edward