I'm curious about the design and trade offs in IO manager, I can point out
two changes that should boost performance:
1. Run an IO manager thread on each capability.
2. Use ONESHOT flag to save a system call.
I wonder is there anything else? It must be interesting.
--
I' m curious about the design and trade offs behind the new IO manager. I
see two changes from the code:
1. Run IO manager thread on each capability.
2. Use ONESHOT flag to save a system call.
Is there other interesting things to know?
Is it possible to use epoll's ET mode to save even more
Sorry for the duplicate post, please ignore this one.
On Sunday, February 17, 2013, yi huang wrote:
I'm curious about the design and trade offs in IO manager, I can point out
two changes that should boost performance:
1. Run an IO manager thread on each capability.
2. Use ONESHOT flag
. restoreM . unStMGeoServer
Thank you all, i've adapted Chris's code which is similar to yours, and it
works now.
Erik
On Wed, Aug 22, 2012 at 9:16 AM, yi huang yi.codepla...@gmail.com wrote:
I have a `newtype Yun a = Yun { unYun :: ReaderT YunEnv (ResourceT IO) a
}`
, and i need to define
I have a `newtype Yun a = Yun { unYun :: ReaderT YunEnv (ResourceT IO) a }`
, and i need to define an instance of `MonadBaseControl IO` for it.
Newtype instance deriving don't work here. I guess the answer is simple, i
just can't figure it out, hope anybody can lightening me.
Best regards.
On Wed, Aug 22, 2012 at 8:30 AM, Felipe Almeida Lessa
felipe.le...@gmail.com wrote:
On Tue, Aug 21, 2012 at 9:01 PM, Thiago Negri evoh...@gmail.com wrote:
My view of Cloud Haskell usage would be something similar to this: a
master node sending work to slaves; slave instances getting up or
On Wed, Apr 4, 2012 at 4:48 AM, Paul Liu nine...@gmail.com wrote:
Is there any follow up on this?
I was wondering what is the best way to sequence a number of sources
together. Anybody gave a further thought on this?
I believe sequence sources together can already be done by `Monoid`
2012/2/3 Michael Snoyman mich...@snoyman.com
2012/2/3 Ertugrul Söylemez e...@ertes.de:
Hello there,
I'm trying to build a server for testing the conduit and network-conduit
packages. As a contrived example the goal is to pick the first three
lines from the client and send them back
You can use trace from Debug.Trace, change the code like this:
mergesort l = case trace l l of
[] - ...
[x] - ...
(x:xs) - ...
On Sun, Feb 5, 2012 at 2:23 AM, Qi Qi qiqi...@gmail.com wrote:
Hello,
I have a question;how can I print out the intermediate number lists in a
mergesort
If i understand correctly, what we called generics is what so called
reflection. It allow you to introspect type structure.
http://haskell.org/ghc/docs/latest/html/libraries/ghc-prim-0.2.0.0/GHC-Generics.html#g:4
On Wed, Oct 19, 2011 at 12:03 AM, yrazes yra...@gmail.com wrote:
Hi,
Maybe you
Cabal compains about Unknown build tool hasktags.
It seems not necessary to set Build-tools: hasktags in cabal file?
On Wed, Sep 14, 2011 at 4:39 AM, Sergey Mironov ier...@gmail.com wrote:
Hi! I am pleased to announce haskdogs - project-level ctag file generator.
haskdogs is a small
On Tue, Jul 26, 2011 at 12:19 PM, yi huang yi.codepla...@gmail.com wrote:
Actually, i'm wondering how to do exception handling and resource cleanup
in iteratee, e.g. your `writer` iteratee, i found it difficult, because
iteratee is designed to let enumerator manage resources.
I've found
Actually, i'm wondering how to do exception handling and resource cleanup in
iteratee, e.g. your `writer` iteratee, i found it difficult, because
iteratee is designed to let enumerator manage resources.
On Sat, Jul 23, 2011 at 2:41 AM, Eric Rasmussen ericrasmus...@gmail.comwrote:
Hi everyone,
2011/7/20 Eugene Kirpichov ekirpic...@gmail.com
reallyUnsafePointerEq#, and it really is as unsafe as it sounds :)
Why is it so unsafe? i can't find any documentation on it.
I think always compare pointer first is a good optimization.
20.07.2011, в 7:51, Nikhil A. Patil
I'm writing my first haskell package, how do i determine the minimal
dependency of it, for example, it use Data.Data, how do i know which version
of base package first introduce Data.Data module, i can't find the answer
with google.
--
http://www.yi-programmer.com/blog/
I just read several tutorials on iteratee, i find that iteratee is similar
to python's generator, both allow streamlined data processing. For example,
i can implement enumFile and printChunks in python like this:
EOF = None
def enum_file(bufsize, filename):
with open(filename) as
Say i want to compose Enumerator ByteString m b and Iteratee Builder
m b, so I try to transform the enum to Enumerator Builder m b,
providing function ByteString - Builder. It's like implement a
Functor instance for Enumerator. But i failed, there are no way to
make type system happy.
Am I right
17 matches
Mail list logo