Re: [Haskell-cafe] Re: [Haskell] ANN: ghci-haskeline 0.1

2009-01-13 Thread Manlio Perillo
ate a Console object: http://msdn.microsoft.com/en-us/library/ms682087.aspx Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: errno handling in concurrent haskell

2009-01-13 Thread Manlio Perillo
Simon Marlow ha scritto: Manlio Perillo wrote: I have some doubts about errno handling in a Concurrent Haskell program. Let's suppose that GHC non threaded runtime is used, so that each Haskell thread is bound to an OS thread. Let's suppose there are two threads running (

[Haskell-cafe] Re: Issues with posix-realtime package

2009-01-13 Thread Manlio Perillo
cible? I'm on Linux Debian Lenny. Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] errno handling in concurrent haskell

2009-01-13 Thread Manlio Perillo
do res <- f if pred res then do err <- getErrno if err == eINTR then throwErrnoIfRetry pred loc f else throwErrno loc else return res This function calls getErrno two times. Is this safe? Why the throwErrno function does not accept errn

[Haskell-cafe] git mirrors for GHC boot libraries

2009-01-11 Thread Manlio Perillo
Hi. Where can I find git mirrors for GHC boot libraries? From http://hackage.haskell.org/trac/ghc/wiki/Design/VersionControlSystem it is not clear if the mirrors are already available. Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell

[Haskell-cafe] Re: Issues with posix-realtime package

2009-01-10 Thread Manlio Perillo
Galchin, Vasili ha scritto: [...] I suspect that this is a problem with shared library loading in ghci, since the C code you use for your package, is also used by the base package (for the Posix subsystem). By the way: I don't see reasons to add all that code, since it is not

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-10 Thread Manlio Perillo
Mauricio ha scritto: POSIX realtime extensions have been developed to be high reliable. (...) However, they offer no guarantees on interval measurements, and the correction algorithms can cause the measurement of a time interval of an hour or so duration to be off by +/- 1 sec, especially withi

[Haskell-cafe] System.CPUTime and picoseconds

2009-01-10 Thread Manlio Perillo
Hi. Just out of curiosity, but why Haskell 98 System.CPUTime library module uses picoseconds instead of, say, nanoseconds? At least on POSIX systems, picoseconds precision is *never* specified. Thanks Manlio Perillo ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Issues with posix-realtime package

2009-01-10 Thread Manlio Perillo
ersion 6.8.2 for i386-unknown-linux): interactiveUI:setBuffering Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Yesterday there were no problems with ghci, and I don't remember having done something strange. P.S: the impossible can a

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-10 Thread Manlio Perillo
be useful: http://juliusdavies.ca/posix_clocks/clock_realtime_linux_faq.html Timing is, however, a complex issue. Steve Schafer Fenestra Technologies Corp. http://www.fenestra.com Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.hask

[Haskell-cafe] Re: Issues with posix-realtime package

2009-01-10 Thread Manlio Perillo
Galchin, Vasili ha scritto: Manlio, so compiling to native machine code works ok but if using ghci byte-code interpreter doesn't . can you supply your program please? Right. Can't you reproduce the problem? The program is very simple (I was just testing your package, since I suggested

[Haskell-cafe] Re: Issues with posix-realtime package

2009-01-09 Thread Manlio Perillo
Galchin, Vasili ha scritto: Hi Manlio, I am the author of this package. Let me think about what you have said. Regards, Vasili Thanks. Note that there are no problems if I compile my program, instead of running it using ghci. Manlio Perillo

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-09 Thread Manlio Perillo
nter, in detail. Unfortunately, documentation is really bad, and it is not really clear what "high-resolution performance counter" means. -- John Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] issues with posix-realtime package

2009-01-09 Thread Manlio Perillo
ject to be loaded twice. GHCi cannot safely continue in this situation. Exiting now. Sorry. If I comment the definition for __hsunix_wifexited, I get a duplicate definition for symbol pPrPr_disableITimers, and so on, for all the definitions in HsUnix.h and execvpe.h Thanks Manl

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-09 Thread Manlio Perillo
http://en.wikipedia.org/wiki/Rdtsc Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Computer time, independent of date

2009-01-09 Thread Manlio Perillo
linepubs/009695399/functions/clock_getres.html CLOCK_MONOTONIC is what you need. > [...] Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell not ready for Foo [was: Re: Hypothetical Haskell job in New York]

2009-01-09 Thread Manlio Perillo
Bryan O'Sullivan ha scritto: On Thu, Jan 8, 2009 at 1:07 PM, Manlio Perillo <mailto:manlio_peri...@libero.it>> wrote: Another example is the multipart parser: -- | Read a multi-part message from a 'Handle'. -- Fails on parse errors. hGetMultipartBody

Re: [Haskell-cafe] Re: Hypothetical Haskell job in New York

2009-01-09 Thread Manlio Perillo
John Goerzen ha scritto: On Thu, Jan 08, 2009 at 09:46:36PM +0100, Manlio Perillo wrote: I'm speaking about servers, not clients. How much of pure Haskell internet servers are used in a production environment, in the "open internet" (and not in restricted LANs)? Does that re

Re: [Haskell-cafe] Haskell not ready for Foo [was: Re: Hypothetical Haskell job in New York]

2009-01-08 Thread Manlio Perillo
concurrent requests, is not really what you really want. Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Hypothetical Haskell job in New York

2009-01-08 Thread Manlio Perillo
e.org/, based on Server: HAppS/0.8.4 And about HAppS, I'm not an Haskell expert, but reading the source I see that static files are server (in the HTTP server) using Data.ByteString.Lazy's hGetContents Is this ok? -- Don Manlio Perillo _

Re: [Haskell-cafe] Haskell not ready for Foo [was: Re: Hypothetical Haskell job in New York]

2009-01-08 Thread Manlio Perillo
Achim Schneider ha scritto: Manlio Perillo wrote: Unfortunately Haskell is not yet ready for this task. Could you -- or someone else -- please elaborate on this? Here is a list of things that I would like to see in GHC to start developing a server application (in order of importance

Re: [Haskell-cafe] Re: Hypothetical Haskell job in New York

2009-01-08 Thread Manlio Perillo
gs already implemented. Unfortunately Haskell is not yet ready for this task. http://eddie.sourceforge.net/what.html http://yaws.hyber.org/ > [...] Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskel

Re: [Haskell-cafe] how out of memory is handled in Haskell

2009-01-06 Thread Manlio Perillo
Manlio Perillo ha scritto: [...] How is this handled in GHC? - exit(1)? - abort()? - IO exception? Ok, found it by myself: http://hackage.haskell.org/trac/ghc/ticket/1791 It is also explicitly documented in: http://haskell.org/ghc/docs/latest/html/libraries/base/Control-Exception.html and

[Haskell-cafe] how out of memory is handled in Haskell

2009-01-06 Thread Manlio Perillo
Hi. Here: http://damienkatz.net/2008/03/what_sucks_abou.html I found how Erlang (or at least old versions of Erlang) handles out of memory failure: it just calls exit(1). How is this handled in GHC? - exit(1)? - abort()? - IO exception? Thanks Manlio Perillo

[Haskell-cafe] GHC libraries documentation and links to source files

2008-12-21 Thread Manlio Perillo
Hi. I have noted that recent versions of the GHC libraries documentation, no longer have links to the source code. What is the reason? I find it very useful. Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Manlio Perillo
pport precompiled packages? Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] monadic parser with Happy and Alex

2008-10-08 Thread Manlio Perillo
Timothy Goddard ha scritto: On Sun, 05 Oct 2008 04:05:51 Manlio Perillo wrote: Hi. I have completed a draft of a CSS lexer, using Alex. http://hg.mperillo.ath.cx/haskell/webtools/file/tip/src/CSS/Lexer.x The lexer use the posn wrapper. Now I'm starting to write the parser with Happy, ho

[Haskell-cafe] editing a Alex and Happy file

2008-10-06 Thread Manlio Perillo
Hi. There is support for editing an Alex or Happy file? I have seen some files that make use of tabs for layout (even Alex template files, and examples from both Alex and Happy), however tabs seems to be not recommended in Haskell. Thanks Manlio Perillo

Re: [Haskell-cafe] monadic parser with Happy and Alex

2008-10-05 Thread Manlio Perillo
Duncan Coutts ha scritto: [...] Now I'm starting to write the parser with Happy, however for the final product I would like to: 1) Be able to do I/O in the lexer, for stylesheets inclusion (@import rule) 2) be able to keep state in the parser (or lexer?), for character transcoding (@cha

[Haskell-cafe] monadic parser with Happy and Alex

2008-10-04 Thread Manlio Perillo
I write a lexer using only the Alex basic interface (without wrappers)? Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Manlio Perillo
Brandon S. Allbery KF8NH ha scritto: On Oct 3, 2008, at 09:24 , Manlio Perillo wrote: Manlio Perillo ha scritto: However I have noted that there are some difference in the syntax between Alex and Flex? What is the rationale? By the way, here is the list of differences between Alex and Flex

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Manlio Perillo
Manlio Perillo ha scritto: [...] Another problem. In this rule: @comment= \/\*[^\*]*\*+([^\/\*][^\*]*\*+)*\/ [^\*] means "all characters except '*'", but Alex seems to not include the new line character. Again sorry. The problem was not here. There was a miss

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Manlio Perillo
Manlio Perillo ha scritto: Manlio Perillo ha scritto: Hi. I'm starting to write a CSS parser with Alex and Happy. The grammar is defined here: http://www.w3.org/TR/CSS21/grammar.html However I have noted that there are some difference in the syntax between Alex and Flex? What i

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Manlio Perillo
Manlio Perillo ha scritto: Hi. I'm starting to write a CSS parser with Alex and Happy. The grammar is defined here: http://www.w3.org/TR/CSS21/grammar.html However I have noted that there are some difference in the syntax between Alex and Flex? What is the rationale? One more thing.

[Haskell-cafe] Alex and Flex

2008-10-02 Thread Manlio Perillo
/alex/doc/html/alex-files.html it seems that there is an error with macrodef := @smac '=' set | @rmac '=' regexp it should be macrodef := $smac '=' set | @rmac '=' regexp Thanks Manlio Perillo

[Haskell-cafe] Alex and Flex

2008-10-02 Thread Manlio Perillo
/alex/doc/html/alex-files.html it seems that there is an error with macrodef := @smac '=' set | @rmac '=' regexp it should be macrodef := $smac '=' set | @rmac '=' regexp Thanks Manlio Perillo

Re: [Haskell-cafe] Climbing up the shootout...

2008-10-02 Thread Manlio Perillo
king in 6.8.2. But the k-nucleotide application don't make use of concurrent or parallel features... -- Don Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Climbing up the shootout...

2008-10-02 Thread Manlio Perillo
amp;lang=all&sort=kb http://shootout.alioth.debian.org/u64q/benchmark.php?test=revcomp&lang=all&sort=kb For mandelbrot there is an alternate version with better memory and CPU usage. -- Don Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@hask

Re: [Haskell-cafe] pure Haskell database

2008-10-01 Thread Manlio Perillo
-ish N and with such a low overhead, it could perform very, very well. This seems an interesting idea, thanks. Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Doing something constructive. [Was: Climbing up the shootout...]

2008-10-01 Thread Manlio Perillo
be a lot faster, given there's compiled native code, and no global locks. With Twisted you usually don't use threads. > [...] Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] (A little humour)

2008-10-01 Thread Manlio Perillo
Miguel Mitrofanov ha scritto: I think you might be interested in http://www.research.att.com/~bs/whitespace98.pdf By the way, is it technically possible (and feasible), in Haskell, to define a space operator? Of cource not with the current grammar. > [...] Manlio Peri

Re: [Haskell-cafe] (A little humour)

2008-10-01 Thread Manlio Perillo
Miguel Mitrofanov ha scritto: I think you might be interested in http://www.research.att.com/~bs/whitespace98.pdf By the way, is it technically possible (and feasible), in Haskell, to define a space operator? Of cource not with the current grammar. > [...] Manlio Peri

Re: [Haskell-cafe] pure Haskell database

2008-09-30 Thread Manlio Perillo
Rich Neswold ha scritto: > [...] On Wed, Sep 24, 2008 at 4:17 PM, Manlio Perillo <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: I need a simple, concurrent safe, d

Re: [Haskell-cafe] pure Haskell database

2008-09-30 Thread Manlio Perillo
Graham Fawcett ha scritto: On Thu, Sep 25, 2008 at 5:09 PM, Manlio Perillo <[EMAIL PROTECTED]> wrote: Graham Fawcett ha scritto: If you're on Intel/Itanium, I believe there's a CMPXCHG instruction that will do atomic compare-and-set on a memory address, and I'm not su

Re: [Haskell-cafe] pure Haskell database

2008-09-30 Thread Manlio Perillo
Marc Weber ha scritto: On Wed, Sep 24, 2008 at 11:17:01PM +0200, Manlio Perillo wrote: Hi. I need a simple, concurrent safe, database, written in Haskell. A database with the interface of Data.Map would be great, since what I need to to is atomically increment some integer values, and I

Re: [Haskell-cafe] Haskell versus F#, OCaml, et. al. ...

2008-09-30 Thread Manlio Perillo
ang just works and you just use it. Haskell in this area is not as mature as Erlang, and it does not have support for master/slave architecture. Regards, Vasili Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.hask

[Haskell-cafe] Re: Climbing up the shootout...

2008-09-29 Thread Manlio Perillo
Simon Marlow ha scritto: Manlio Perillo wrote: Simon Marlow ha scritto: Manlio Perillo wrote: [...] We'd certainly support any efforts to add support for a more modern I/O multiplexing or asynchronous I/O back-end to the IO library. It's not too difficult, because the interface b

Re: [Haskell-cafe] Hmm, what license to use?

2008-09-26 Thread Manlio Perillo
t I suggest you a quick check here: http://www.opensource.org/licenses/category /M Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Hmm, what license to use?

2008-09-26 Thread Manlio Perillo
urce. What worse, is that it prevents me to use a GPL library in a MIT library, unless there is an explicit extra clause in the license, like done by the library shipped with MySQL, and some (not so many) others: http://www.mysql.com/about/legal/licensing/foss-exception.html B

Re: [Haskell-cafe] Hmm, what license to use?

2008-09-26 Thread Manlio Perillo
meet a badly injuried enemy. Should he help the enemy? Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] pure Haskell database

2008-09-25 Thread Manlio Perillo
Graham Fawcett ha scritto: On Wed, Sep 24, 2008 at 5:17 PM, Manlio Perillo <[EMAIL PROTECTED]> wrote: Hi. I need a simple, concurrent safe, database, written in Haskell. A database with the interface of Data.Map would be great, since what I need to to is atomically increment some i

Re: [Haskell-cafe] pure Haskell database

2008-09-25 Thread Manlio Perillo
Rich Neswold ha scritto: On Wed, Sep 24, 2008 at 4:17 PM, Manlio Perillo <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I need a simple, concurrent safe, database, written in Haskell. A database with the interface of Data.Map would be great, since what I n

[Haskell-cafe] pure Haskell database

2008-09-24 Thread Manlio Perillo
Hi. I need a simple, concurrent safe, database, written in Haskell. A database with the interface of Data.Map would be great, since what I need to to is atomically increment some integer values, and I would like to avoid to use SQLite. Thanks Manlio Perillo

[Haskell-cafe] Re: Climbing up the shootout...

2008-09-24 Thread Manlio Perillo
Simon Marlow ha scritto: Manlio Perillo wrote: [...] We'd certainly support any efforts to add support for a more modern I/O multiplexing or asynchronous I/O back-end to the IO library. It's not too difficult, because the interface between the low-level I/O supplier and the rest

Re: [Haskell-cafe] Climbing up the shootout...

2008-09-23 Thread Manlio Perillo
do it your self", unless there is *really* no other solution (and, in this case, the solution is to use Erlang). various people do that they find most exciting/important. actually, alt-network package is just about fast network i/o Where can I find alt-network? Thanks

Re: [Haskell-cafe] Climbing up the shootout...

2008-09-23 Thread Manlio Perillo
uitable to write high reliable internet servers is not of interest? Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Climbing up the shootout...

2008-09-23 Thread Manlio Perillo
apers about how this is implemented in GHC? Af far as I understand, select is used in two separate places. How much effort it takes to implement a pluggable "reactor" (select, poll, epoll, kqueue, /dev/poll, and so)? > [...] Than

Re: [Haskell-cafe] Climbing up the shootout...

2008-09-22 Thread Manlio Perillo
?func=detail&aid=311132&group_id=30402&atid=411646 It does require the regex-pcre library, which if it isn't in your package system on Ubuntu, you can certainly build, What performance gain do you obtain using regex-pcre-builtin against a native Haskell regex library? &g

Re: [Haskell-cafe] Climbing up the shootout...

2008-09-22 Thread Manlio Perillo
h, then Haskell goes sixth, after Java and OCaml. With parallel programs it is the same: other languages does not have a parallel version. > [...] Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/m

Re: [Haskell-cafe] broken link in documentation

2008-09-21 Thread Manlio Perillo
with Opera (I'm using version 9.52, on Linux). With all other browsers I have used, it works. But Opera have problems with the ':' character in the fragment. Sean Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt

[Haskell-cafe] broken link in documentation

2008-09-21 Thread Manlio Perillo
Hi. Sorry if I use the mailing list for this, but in the documentation of Control.Monad.RWS (and the other Control.Monad.* modules), the link http://www.cse.ogi.edu/~mpj/ is broken. Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] performance of map reduce

2008-09-19 Thread Manlio Perillo
Bryan O'Sullivan ha scritto: On Fri, Sep 19, 2008 at 2:31 PM, Manlio Perillo <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: By the way, this phrase: "We allow multiple threads to read different chunks at once by supplying each one with a distinct fi

Re: [Haskell-cafe] performance of map reduce

2008-09-19 Thread Manlio Perillo
Don Stewart ha scritto: manlio_perillo: [...] It is possible to implement a map reduce version that can handle gzipped log files? Using the zlib binding on hackage.haskell.org, you can stream multiple zlib decompression threads with lazy bytestrings, and combine the results. This is a bit h

Re: [Haskell-cafe] Re: Python's big challenges, Haskell's big advantages?

2008-09-19 Thread Manlio Perillo
Brandon S. Allbery KF8NH ha scritto: On Sep 18, 2008, at 15:10 , Manlio Perillo wrote: Allocation areas are per-CPU, not per-thread. A Concurrent Haskell thread consists of a TSO (thread state object, currently 11 machine words), and a stack, which we currently start with 1KB and grow on

Re: [Haskell-cafe] lazy strings and parallel read

2008-09-19 Thread Manlio Perillo
Duncan Coutts ha scritto: On Fri, 2008-09-19 at 18:46 +0200, Manlio Perillo wrote: Don Stewart ha scritto: manlio_perillo: Hi. After having read http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id676390 I have a doubt about Data.ByteString.Lazy. Why

Re: [Haskell-cafe] lazy strings and parallel read

2008-09-19 Thread Manlio Perillo
Manlio Perillo ha scritto: Hi. After having read http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id676390 I have a doubt about Data.ByteString.Lazy. Why getContents function don't use pread (or an emulation, if not available)? A correction. getCon

Re: [Haskell-cafe] lazy strings and parallel read

2008-09-19 Thread Manlio Perillo
ld it? So that you don't need to open the same file multiple time: http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id677193 -- Don Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskel

[Haskell-cafe] performance of map reduce

2008-09-19 Thread Manlio Perillo
cores real0m3.735s user0m6.328s sys 0m0.604s 2) my implementation real0m13.659s user0m7.712s sys 0m0.360s Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] lazy strings and parallel read

2008-09-19 Thread Manlio Perillo
Hi. After having read http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id676390 I have a doubt about Data.ByteString.Lazy. Why getContents function don't use pread (or an emulation, if not available)? Thanks Manlio Pe

Re: [Haskell-cafe] a question about concurrent haskell

2008-09-18 Thread Manlio Perillo
Andrew Coppin ha scritto: Manlio Perillo wrote: The GHC concurrent Haskell does not have a function to resume a given thread (as found, as an example, in Lua). It does, however, provide the MVar, which can be used to make a thread block until some data is inserted into the MVar by another

Re: [Haskell-cafe] Re: Python's big challenges, Haskell's big advantages?

2008-09-18 Thread Manlio Perillo
art with 1KB and grow on demand. How is this implemented? I have seen some coroutine implementations in C, using functions from ucontext.h (or direct asm code), but all have the problem that the allocated stack is fixed. Thanks Manlio Perillo ___ Haskell

[Haskell-cafe] a question about concurrent haskell

2008-09-18 Thread Manlio Perillo
get a different value? Prelude Control.Concurrent> myThreadId ThreadId 40 Prelude Control.Concurrent> myThreadId ThreadId 41 Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Python's big challenges, Haskell's big advantages?

2008-09-17 Thread Manlio Perillo
ocess switch. I know. But when using the term "thread" one usually assume kernel thread. Of course if we talk about user threads it's a whole new story. Tony. Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org ht

Re: [Haskell-cafe] Re: Python's big challenges, Haskell's big advantages?

2008-09-17 Thread Manlio Perillo
hreads for who know what reasons (and it also allocate about one half of available virtual memory). > [...] Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] about openTempFile

2008-09-17 Thread Manlio Perillo
ls or keyboard interrupts (i.e. posix or windows systems). Maybe a withSignalsMasked function, at least on Posix systems (it is not defined in System.Posix.Signals)? I have no idea how signals works under Windows. > [...] Manlio Perillo ___ Hask

Re: [Haskell-cafe] about openTempFile

2008-09-17 Thread Manlio Perillo
Dougal Stanton ha scritto: On Wed, Sep 17, 2008 at 1:17 PM, Manlio Perillo <[EMAIL PROTECTED]> wrote: The Python tempfile module, as an example, implements a wrapper around mkstemp function that does exactly this, and the code is portable; on Windows it uses O_TEMPORARY_FILE flag, on

Re: [Haskell-cafe] Python's big challenges, Haskell's big advantages?

2008-09-17 Thread Manlio Perillo
nkiness of the fork() model (which is HOW many years old now?). Old does not means bad, IMHO. > [...] Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Python's big challenges, Haskell's big advantages?

2008-09-17 Thread Manlio Perillo
Arnar Birgisson ha scritto: Hi Manlio and others, On Wed, Sep 17, 2008 at 14:58, Manlio Perillo <[EMAIL PROTECTED]> wrote: http://www.heise-online.co.uk/open/Shuttleworth-Python-needs-to-focus-on-future--/news/111534 "cloud computing, transactional memory and future multicore

Re: [Haskell-cafe] Python's big challenges, Haskell's big advantages?

2008-09-17 Thread Manlio Perillo
ocessing, instead of multithreading. And scalability is not a "real" problem, if you write RESTful web applications. Get writing that multicore, STM, web app code! Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://ww

[Haskell-cafe] about openTempFile

2008-09-17 Thread Manlio Perillo
easons why GHC library does not implement this? The Python version also set the FD_CLOEXEC, O_NOINHERIT and O_NOFOLLOW flags (where available). The GHC version, instead, set the O_NOCTTY flag. Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@h

Re: [Haskell-cafe] RFC: A standardized interface between web servers and applications or frameworks (ala WSGI)

2008-04-13 Thread Manlio Perillo
p://www.haskell.org/haskellwiki/WebApplicationInterface -- Johan Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [GSoC] Student applications deadline extended one week

2008-04-01 Thread Manlio Perillo
Adam Langley ha scritto: On Mon, Mar 31, 2008 at 12:00 PM, Manlio Perillo <[EMAIL PROTECTED]> wrote: Since Nginx is asynchronous, how can be solved the producer-consumer problem (that is, the Haskell program produces more data that Nginx can send to the client without blocking)? I

Re: [Haskell-cafe] [GSoC] Student applications deadline extended one week

2008-03-31 Thread Manlio Perillo
ostgres-async.py (but this is very experimental) Thanks and sorry for having used this thread for an unrelated topic (I have removed the Cc to haskell-soc-2008) Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskel

<    1   2   3