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

2008-03-31 Thread Manlio Perillo
(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.haskell.org/mailman/listinfo/haskell

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 assume

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

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

[Haskell-cafe] Lexical Syntax and Unicode

2009-11-14 Thread Manlio Perillo
- PARAGRAPH SEPARATOR Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] attoparsec and parsec

2009-11-14 Thread Manlio Perillo
://hackage.haskell.org/package/bytestringparser what is the status of this package? It has the same API of attoparsec, but its older. However there is no indication that this package is deprecated in favor of attoparsec. Thanks Manlio Perillo ___ Haskell

Re: [Haskell-cafe] attoparsec and parsec

2009-11-15 Thread Manlio Perillo
Jason Dusek ha scritto: To add to the confusion, I forked `bytestringparser` when I wrote the `json-b` package. The fork is here: http://hackage.haskell.org/package/bytestringparser-temporary/ I have added a number of things to original as well as fixing some problems with it.

[Haskell-cafe] surrogate code points in a Char

2009-11-18 Thread Manlio Perillo
Hi. The Unicode Standard (version 4.0, section 3.9, D31 - pag 76) says: Because surrogate code points are not included in the set of Unicode scalar values, UTF-32 code units in the range D800 .. DFFF are ill-formed However GHC does not reject this code units: Prelude print '\xD800'

[Haskell-cafe] back doors into the IO monad

2010-10-23 Thread Manlio Perillo
Hi. What are the available methods to execute IO actions from pure code? I know only unsafePerformIO and foreign import (to call a non pure foreign function). Assuming I want to execute external untrusted code using plugins (via the `plugins` package), is it possible to completely forbid

Re: [Haskell-cafe] Re: dynamic loading of code on windows

2010-11-12 Thread Manlio Perillo
Il 12/11/2010 19:01, Kevin Jardine ha scritto: This isn't about the plugin functionality, it's about compiling code. As the message says : This requires a Unix compatibility toolchain such as MinGW+MSYS or Cygwin. Is it really necessary to use autoconf? I have read the autoconf.ac file

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 06:49, Bruno Damour ha scritto: Hello, I have a very strange (for me) problem that I manage to reduce to this : I have a small program that reads a file with 1 only character (è = e8) The program is ftest2.hs : [...] The only difference I can see is the codepage used. The

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 19:06, Bruno Damour ha scritto: Le 21/11/10 17:21, Manlio Perillo a écrit : Il 21/11/2010 06:49, Bruno Damour ha scritto: Hello, I have a very strange (for me) problem that I manage to reduce to this : I have a small program that reads a file with 1 only character (è = e8

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 19:28, Bruno Damour ha scritto: [...] Of course you're right but that was a surprise to me... G:\CODE\rlibchcp 1252 Page de codes active: 1252 G:\CODE\rlibftest3.exe è Just '1' G:\CODE\rlibchcp 850 Page de codes active : 850 G:\CODE\rlibftest3.exe è Just '2'

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 21:51, Manlio Perillo ha scritto: [...] There are 3 solutions: 1) open the file in binary mode 2) set the console codepage to 1252. I do this by changing the Command Prompt shortcut destination to: `%SystemRoot%\system32\cmd.exe /k chcp 1252` 3) explicitly set

Re: [Haskell-cafe] Converting IO [XmlTree] to [XmlTree]

2009-04-19 Thread Manlio Perillo
from pure computation. And you can not use lazy IO, if you want your server to support HTTP 1.1 pipelining. Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Converting IO [XmlTree] to [XmlTree]

2009-04-21 Thread Manlio Perillo
Luke Palmer ha scritto: [...] Note that it is not always possible to separate IO from pure code. As an example, consider an HTTP 1.1 server that read a request body containing a number for each line, and return a response body containing the sum of the numbers. What?

[Haskell-cafe] about openTempFile

2008-09-17 Thread Manlio Perillo
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@haskell.org

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

2008-09-17 Thread Manlio Perillo
. 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://www.haskell.org/mailman/listinfo/haskell

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 processors

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

2008-09-17 Thread Manlio Perillo
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] 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 POSIX

Re: [Haskell-cafe] about openTempFile

2008-09-17 Thread Manlio Perillo
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 ___ Haskell-Cafe

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

2008-09-17 Thread Manlio Perillo
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] Python's big challenges, Haskell's big advantages?

2008-09-17 Thread Manlio Perillo
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 http://www.haskell.org

[Haskell-cafe] a question about concurrent haskell

2008-09-18 Thread Manlio Perillo
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] Re: Python's big challenges, Haskell's big advantages?

2008-09-18 Thread Manlio Perillo
? 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-Cafe mailing list Haskell-Cafe@haskell.org http

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

[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 Perillo

[Haskell-cafe] performance of map reduce

2008-09-19 Thread Manlio Perillo
0m3.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

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

2008-09-19 Thread Manlio Perillo
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@haskell.org http

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. getContents

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] 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

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

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 file handle, all reading

[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] broken link in documentation

2008-09-21 Thread Manlio Perillo
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 http://www.haskell.org/mailman/listinfo

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

2008-09-22 Thread Manlio Perillo
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/mailman/listinfo/haskell-cafe

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

2008-09-22 Thread Manlio Perillo
=detailaid=311132group_id=30402atid=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? [...] Thanks Manlio Perillo

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

2008-09-23 Thread Manlio Perillo
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)? [...] Thanks Manlio Perillo

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

2008-09-23 Thread Manlio Perillo
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
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 Manlio Perillo

[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

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 need to to is atomically

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 integer values

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

2008-09-26 Thread Manlio Perillo
? 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
, 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 Bob Manlio Perillo

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

2008-09-26 Thread Manlio Perillo
://www.opensource.org/licenses/category /M Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[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 between

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

2008-09-30 Thread Manlio Perillo
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.haskell.org/mailman

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] 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 sure you could get much faster

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, database, written in Haskell

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 Perillo

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 Perillo

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

2008-10-01 Thread Manlio Perillo
, 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] pure Haskell database

2008-10-01 Thread Manlio Perillo
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

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

2008-10-02 Thread Manlio Perillo
/u64q/benchmark.php?test=revcomplang=allsort=kb For mandelbrot there is an alternate version with better memory and CPU usage. -- Don Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

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

2008-10-02 Thread Manlio Perillo
. 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

[Haskell-cafe] Alex and Flex

2008-10-02 Thread Manlio Perillo
/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 mailing list

[Haskell-cafe] Alex and Flex

2008-10-02 Thread Manlio Perillo
/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 mailing list

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

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 missing rule

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

[Haskell-cafe] monadic parser with Happy and Alex

2008-10-04 Thread Manlio Perillo
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] 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

[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-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, however

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

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

[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

[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

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

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

2009-01-08 Thread Manlio Perillo
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.haskell.org/mailman/listinfo

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 manlio_peri...@libero.it 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

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

2009-01-08 Thread Manlio Perillo
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 ___ Haskell-Cafe mailing list Haskell-Cafe

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

2009-01-08 Thread Manlio Perillo
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-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 really matter? I

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 manlio_peri...@libero.it 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: Computer time, independent of date

2009-01-09 Thread Manlio Perillo
/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] Re: Computer time, independent of date

2009-01-09 Thread Manlio Perillo
://en.wikipedia.org/wiki/Rdtsc Regards 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
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 Manlio Perillo

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

2009-01-09 Thread Manlio Perillo
, 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] 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

[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

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

2009-01-10 Thread Manlio Perillo
://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.haskell.org/mailman

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

2009-01-10 Thread Manlio Perillo
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 always happen! Thanks Manlio Perillo

[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

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

[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

[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] errno handling in concurrent haskell

2009-01-13 Thread Manlio Perillo
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 errno as parameter? Thanks Manlio Perillo

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

2009-01-13 Thread Manlio Perillo
? 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] 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 (`A` and `B

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

2009-01-13 Thread Manlio Perillo
: 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] walking a directory tree efficiently

2009-01-13 Thread Manlio Perillo
Manlio perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2009-01-14 Thread Manlio Perillo
Galchin, Vasili ha scritto: Hi Manlio, Are you now talking about code in Code from HsUnix.h and execvpe.h? Yes. Manlio ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] about System.Posix.Files.fileAccess

2009-01-14 Thread Manlio Perillo
? Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] walking a directory tree efficiently

2009-01-14 Thread Manlio Perillo
available in some package? Can you suggest better names? 3) I find (,) node `liftM` walkTree' path not very readable. Is it possible to express it in a more (not too much) verbose way? Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell

[Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Manlio Perillo
it is possible to import modules inside a function. In Haskell something like: joinPath' root name = joinPath [root, name] importing System.FilePath (joinPath) Thanks Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Manlio Perillo
://unicode.org/cldr/ Thanks Neil Regards Manlio Perillo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] real haskell difficulties (at least for me)

2009-01-14 Thread Manlio Perillo
to discover automatically which packages do and do not build on various platforms. The basics work but we need more help in polishing it up. Do you know buildbot? http://buildbot.net/trac Duncan Manlio Perillo ___ Haskell-Cafe mailing list

  1   2   3   >