
It is a tricky subject, but not insurmountable. http://blog.ezyang.com/2010/08/interrupting-ghc/ http://www.haskell.org/ghc/docs/7.2.2/html/users_guide/ffi.html#ffi-interrup... http://blog.ezyang.com/2010/11/its-just-a-longjmp-to-the-left/ Cheers, Edward Excerpts from Mike Meyer's message of Wed May 02 13:00:41 -0400 2012:
I've just finished a QAD project in Python, and expect them to ask me to build the production version of the same project. I'd like to switch to Haskell, but (again, for those who noticed) have some questions I'd like answered.
One problem I ran into is that I use Unix signals to control the various processes. In CPython, this causes a problem with extension code because the python signal handler at the C level just note the signal, then wait to run the Python "signal handler" the next time the interpreter. Since my extensions are doing the heavy lifting, they often run for long periods (by which I mean 10s of minutes). Meaning the signal is ignored for long periods.
Since I expect to such extensions (the wrappers are available) and want to leave the control mechanisms in place, I'd like to know if I'm going to have similar problems in Haskell.
Thanks,