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
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 (
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
_
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
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
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
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
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
pport precompiled packages?
Regards Manlio Perillo
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
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
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
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
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
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
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.
/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
/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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
?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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
201 - 283 of 283 matches
Mail list logo