How does the IO manager handle reading regular files?

2018-05-13 Thread Niklas Hambüchen
I just got reminded that epoll() has no effect on regular files on Linux by reading an nginx article [1] [2] and why that is [3] [4]. By what means does the IO manager make reads (wraps around the read() syscall on Linux) non-blocking? Does it always use read() in `foreign import safe` (or

Re: Potential improvements for CSE, strictness analyzer, let-floating

2018-05-13 Thread Peter Podlovics
Thanks for the trac tickets about CSE. However, I would like to get some advice on how these features can be improved on *generally*. Are there any known limitations or areas where they are lacking in some aspect, or feature requests associated with them? Something worthy of a couple month long

Re: Potential improvements for CSE, strictness analyzer, let-floating

2018-05-13 Thread Simon Jakobi via ghc-devs
Hi Peter, as a start, here are few tickets concerning CSE: https://ghc.haskell.org/trac/ghc/query?status=!closed=~CSE I'm not sure if there are keywords for strictness analysis or let-floating on Trac. Here's the full list of keywords: https://ghc.haskell.org/trac/ghc/report/25?max=500. Hope