Christian Maeder wrote:
Simon Marlow wrote:
Right - Ptr isn't the right thing here, because GC will move objects
around. That's why we have StablePtr and StableName.
may it be that makeStableName is expensive? (or it is my additional Map?)
My old version is faster, because the version
Conal Elliott wrote:
When run ghcprof under Windows XP I get this message in uDraw: Error:
Cannot start application C:/TEMP/ghcprof30164.sh. That file does
exist as a shell script:
bash-3.00$ ls -l C:/TEMP/ghcprof30164.sh
-rwxr-xr-x 1 Conal None 109 Jan 7 12:12 C:/TEMP/ghcprof30164.sh
Defaulting to --make would make sense, as would a complete re-design of
the command-line syntax, but for the same reasons I don't think it's a
good idea. I don't want to break a lot of build systems for purely
aesthetical reasons.
Cheers,
Simon
Seth Kurtzberg wrote:
How about
Sven Panne [EMAIL PROTECTED] writes:
I've been looking at the cvs configuration file CVSROOT/modules.
I /think/ the procedure is something like changing this:
nhc98src-d nhc98 nhc98
nhc98libraries -d nhc98/src/libraries fptools/libraries
nhc98 -a
Hello Simon,
Monday, January 09, 2006, 1:45:45 PM, you wrote:
so i propose just to add words about --make to the error message
SM Defaulting to --make would make sense, as would a complete re-design of
SM the command-line syntax, but for the same reasons I don't think it's a
SM good idea. I
Hello Christian,
Friday, January 06, 2006, 9:43:39 PM, you wrote:
CM My old version is faster, because the version with makeStableName does
CM very much GC.
CMMUT time 27.28s ( 28.91s elapsed)
CMGCtime 133.98s (140.08s elapsed)
try to add infamous +RTS -A10m switch ;)
it's
Bulat Ziganshin wrote:
CM My old version is faster, because the version with makeStableName does
CM very much GC.
CMMUT time 27.28s ( 28.91s elapsed)
CMGCtime 133.98s (140.08s elapsed)
try to add infamous +RTS -A10m switch ;)
You saved my day, thank you Bulat!
Without
Bulat Ziganshin wrote:
try to add infamous +RTS -A10m switch ;)
Maybe -H300m is more famous?
MUT time 24.92s ( 29.79s elapsed)
GCtime6.32s ( 7.67s elapsed)
EXIT time0.00s ( 0.00s elapsed)
Total time 31.24s ( 37.46s elapsed)
Christian
Keean et al,
On Sun, 2006-01-08 at 14:51 +, Keean Schupke wrote:
My solution to this when developing a database library for my own use
was to define the API
in a bracket notation style, and only provide safe functions. The idea
is that the function obtains the resource, calls a function
On Monday 09 January 2006 10:03, Axel Simon wrote:
On Sun, 2006-01-08 at 14:51 +, Keean Schupke wrote:
My solution to this when developing a database library for my own
use was to define the API
in a bracket notation style, and only provide safe functions. The
idea is that the
Hello
i just published the following text at the
http://haskell.org/haskellwiki/Arrays
Haskell'98 supports just one array constructor type, namely Array (see
http://haskell.org/onlinereport/array.html). It creates immutable
boxed arrays. Immutable means that these arrays, like any other pure
On Mon, 2006-01-09 at 11:33 +0100, Benjamin Franksen wrote:
On Monday 09 January 2006 10:03, Axel Simon wrote:
On Sun, 2006-01-08 at 14:51 +, Keean Schupke wrote:
My solution to this when developing a database library for my own
use was to define the API
in a bracket notation
On 1/9/06, Anders Höckersten [EMAIL PROTECTED] wrote:
sön 2006-01-08 klockan 21:12 -0500 skrev John Peterson:
wiki is under the GNU FDL so the licenses are not necessarily
compatible.
As far as I understand, this means that if I see a sample of code on
the haskell wiki, and just want
On 1/9/06, John Peterson [EMAIL PROTECTED] wrote:
As everyone has noticed during the making Haskell more open
discussion, MediaWiki was suggested as a better wiki technology for
haskell.org. Ashley Yakeley has generously installed MediaWiki and we
would like to migrate the main pages of
On Sun, 2006-01-08 at 21:12 -0500, John Peterson wrote:
wiki is under the GNU FDL so the licenses are not necessarily
compatible.
As far as I understand, this means that if I see a sample of code on
the haskell wiki, and just want to steal it for my project, I'm not
allowed to, unless I
Simon Marlow [EMAIL PROTECTED] writes:
Thus defaulting the FDL for all wiki content, including code, is a
very bad idea.
I agree - can we please use BSD or public domain?
Another option is the Open Publication License, which requires
acknowledgement (but little else). Anyway, I think a
On Sun, 2006-01-08 at 19:52 -0500, John Peterson wrote:
This isn't a completely done deal - there is still time to object to
the whole thing or make suggestions. Nothing will be visible to the
outside world until we make the switch later. But I believe this will
result in a much better site
Ketil Malde wrote:
Another option is the Open Publication License, which requires
acknowledgement (but little else).
...which would mean that whenever you rearrange something inside the
wiki, you'd have to drag signatures around (and god forbid you
accidentally drop a single one). The only way
In article [EMAIL PROTECTED],
Udo Stenzel [EMAIL PROTECTED] wrote:
Sounds like a stupid idea? Thought so. A wiki should be public domain,
plain and simple. (Put contributions with a different license somewhere
else and link to them. No big deal.)
There seems to be a consensus for public
I was wondering, in the MonadPlus documentation it says that:
* mzero is the identity of mplus (and some extra conditions)
* mplus is an associative operation
While for Monoid we have:
* mempty is identity of mappend
* mappend is an associative operation
MonadPlus is of course a
Ashley Yakeley wrote:
Sounds like a stupid idea? Thought so. A wiki should be public domain,
plain and simple. (Put contributions with a different license somewhere
else and link to them. No big deal.)
There seems to be a consensus for public domain both here and on the
wiki page.
Cale Gibbard wrote:
As long as that's just the default and not required of course.
No, all contributions would be in the public domain.
It
might be nice to at least include some disclaimers of warranty.
Good idea.
--
Ashley Yakeley
___
Haskell
On Sun, Jan 08, 2006 at 10:16:45PM -0800, Ashley Yakeley wrote:
In article [EMAIL PROTECTED],
Ian Lynagh [EMAIL PROTECTED] wrote:
Why not use the GPL, then?
FWIW, the GFDL is considered non-free by Debian[1], so that would mean
any documentation or anything derived from the wiki
I am pleased to be able to announce the first version of hdbc-odbc,
the ODBC backend for HDBC.
With this driver, you can use HDBC to connect to any database for
which ODBC drivers exist, including such databases as MySQL, Oracle,
MS SQL Server, etc. I have tested it against PostgreSQL and would
Sebastian Sylvan wrote:
Is there a way to typeset Haskell syntax yet?
Not yet, but someone could write an extension to do that...
http://meta.wikimedia.org/wiki/Extending_wiki_markup
--
Ashley Yakeley
___
Haskell mailing list
Haskell@haskell.org
We could also use multi licensing. A possibility is to have, by
default, everything licensed at the same time under BSD, CC, FDL and
GPL.
(For those who wonder, this suggestion is serious /and/ sarcastic at
the same time)
Cheers,
JP.
On 1/9/06, Ian Lynagh [EMAIL PROTECTED] wrote:
On Sun, Jan
G'day all.
Quoting Simon Marlow [EMAIL PROTECTED]:
I agree - can we please use BSD or public domain?
Creative Commons by might be an appropriate alternative:
http://creativecommons.org/licenses/by/2.5/
Cheers,
Andrew Bromage
___
Haskell mailing
G'day all.
Quoting Ashley Yakeley [EMAIL PROTECTED]:
Does anyone have any objections to putting everything in the public
domain?
No, with the proviso that individual page authors can override that on
the page itself. There is a disincentive for authors to do this, because
their material may
Axel Simon wrote, in response to Keean Schupke
dbConnectWith :: DbName - (DbHandle - IO Result) - Result
dbConnectWith name workFn = do
handle - dbConnectTo name
workFn handle `finally` dbDisconnect handle
In this way you avoid finalizers... and everthing is safe providing
On 09.01 12:56, Donald Bruce Stewart wrote:
Entries that may currently be worth submitting:
takfp - http://www.haskell.org/hawiki/TakfpEntry
Committed.
pidigits (currently 2nd!) - http://www.haskell.org/hawiki/PidigitsEntry
Committed.
mandelbrot
ekarttun:
On 09.01 12:56, Donald Bruce Stewart wrote:
Entries that may currently be worth submitting:
takfp - http://www.haskell.org/hawiki/TakfpEntry
Committed.
pidigits (currently 2nd!) - http://www.haskell.org/hawiki/PidigitsEntry
Committed.
Thanks for all infos.
I'll apply that Ref-datatype from the observable sharing paper
to my problem and see where this brings me. I'm also looking
into the solution Paul Hudak presented in the
Detecting Cycles in Datastructures thread in october.
For the problem at hand (involving the STLC),
Donald Bruce Stewart wrote:
Entries that may currently be worth submitting:
takfp - http://www.haskell.org/hawiki/TakfpEntry
pidigits (currently 2nd!) - http://www.haskell.org/hawiki/PidigitsEntry
mandelbrot-
Donald Bruce Stewart wrote:
d:
Regarding the Fannkuch Shootout Entry:
If we are willing to specialize flop in the way shown on the wiki,
another 8% can be gained by similarly specializing rotate:
rotate 2 (x1:x2:xs) = x2:x1:xs
rotate 3 (x1:x2:x3:xs) = x2:x3:x1:xs
...
Cheers,
David F. Place wrote:
main' n = let p = permutations [1..n]
in do mapM_ (putStrLn . concatMap show) $ take 30 p
putStr $ Pfannkuchen( ++ show n ++ ) =
putStrLn . show $ foldl' (flip (max .
bertram.felgenhauer:
The flop machinery can still be made faster, stealing an idea from the
icc entry (namely, treating the first entry separately):
Great. This pushes the pure version up a notch.
I've updated the wiki, showing how the code has progressed:
Author Time in
Bulat Ziganshin wrote:
the same is for Int32 (and i think other fixed-width integrals). i just
noticed that one simple loop in my program allocates 2.5 times more
data and works 2 times slower when loop variable switched from Int
to Int32
There's no reason that Int32 should be slower than
Joel Reymont wrote:
I compiled a simple one-liner: main = print Blah.
This is the GC report:
5,620 bytes allocated in the heap
0 bytes copied during GC
0 collections in generation 0 ( 0.00s)
0 collections in generation 1 ( 0.00s)
1 Mb total
Sebastian Sylvan wrote:
It would be neat if the PackedString library contained functions such
as hGetLine etc. It does have a function for reading from a buffer,
but it won't stop at a newline...
But yeah, fast string manipulation is difficult when using a
linked-list representation...
My
I'm trying to use parsec for parsing a custom input stream. As far as I
understood the manual correctly I need to define the primitive parser:
type MyParser a = GenParser (SourcePos,Tok) () a
mytoken :: (Tok - Maybe a) - MyParser a
mytoken test
= token showToken posToken testToken
where
Am Sonntag, 8. Januar 2006 15:45 schrieben Sie:
Daniel Fischer wrote:
Cool. So let's see if I got it.
If I have
n - readIO
...
mapM_ (func n) list
...
in my programme, the runtime system will/might build object code for
func n that is then used instead of using the
Am Montag, 9. Januar 2006 12:52 schrieb Gerd M:
I'm trying to use parsec for parsing a custom input stream. As far as I
understood the manual correctly I need to define the primitive parser:
type MyParser a = GenParser (SourcePos,Tok) () a
mytoken :: (Tok - Maybe a) - MyParser a
mytoken
Hi Gerd,
despite SourcePos being abstract, it can be fully manipulated using newPos.
import Text.ParserCombinators.Parsec.Pos
If you can compute the positions from your Tok-stream then you may
consider using tokenPrim and work with GenParser Tok () a
HTH Christian
Gerd M wrote:
I'm trying
Daniel Fischer wrote:
So back to square one.
What then _is_ run-time compilation?
In the virtual machine community, run-time compilation refers to the
translation of program code at run-time, for example the compilation of
Java byte code to machine code in a JIT (just-in-time) compiler. Other
Hi all,A bit strange behaviour with hPutStrLn. Consider following program:main = do handle - openFile output.txt WriteMode hPutStrLn handle (unlines contLines2) -- hFlush houtput
where contLines2 = flip map [1..2000] $ \x - show x ++ been there done thatOutputs file which ends with following
On 1/9/06, Sebastian Sylvan [EMAIL PROTECTED] wrote:
On 1/9/06, Gracjan Polak [EMAIL PROTECTED] wrote:
Hi all,
A bit strange behaviour with hPutStrLn. Consider following program:
main = do
handle - openFile output.txt WriteMode
hPutStrLn handle (unlines contLines2)
On Mon, Jan 09, 2006 at 04:57:51PM +0100, Gracjan Polak wrote:
Hi all,
A bit strange behaviour with hPutStrLn. Consider following program:
main = do
handle - openFile output.txt WriteMode
hPutStrLn handle (unlines contLines2)
-- hFlush houtput
where
contLines2 =
On Mon, 9 Jan 2006, Stepan Golosunov wrote:
On Mon, Jan 09, 2006 at 04:57:51PM +0100, Gracjan Polak wrote:
...
So the output is truncated. When I uncomment hFlush, file is fully written.
Is this expected/documented behaviour?
This is the usual behavior when file is not closed. And example
It might be nice to at least include some disclaimers of warranty.
I'm not a lawyer. But those US copyright lawyers I've spoken with
have expressed doubts
about anybody's ability to put things into the public domain.
Certainly, if you put it in the
public domain, you can't also disclaim a
despite SourcePos being abstract, it can be fully manipulated using newPos.
Thanks for the tip, I thought it wasn't exported.
Gerd M wrote:
I'm trying to use parsec for parsing a custom input stream. As far as I
understood the manual correctly I need to define the primitive parser:
type
On Monday 09 January 2006 04:09 am, Tim Walkenhorst wrote:
Thanks for all infos.
I'll apply that Ref-datatype from the observable sharing paper
to my problem and see where this brings me. I'm also looking
into the solution Paul Hudak presented in the
Detecting Cycles in Datastructures thread
Yeah. this is a major bug in ghc IMHO. I believe it has been fixed, but
am unsure. Since we can't rely on finalizers to run in general, some
sort of 'atexit' routine is needed. (which would be a good addition to
the standard libraries anyway)
John
--
John Meacham - ⑆repetae.net⑆john⑈
On Sun, Jan 08, 2006 at 11:26:05AM +, Andreas Kägi wrote:
hello
i want to read a file encoded in utf8 and at a later time output portions of
it
on the console. Is there an easy way to do this in haskell? using the standard
i/o functions i can read the file but the output gives me \1071
Thanks for the answers. I can go with hFlush or hClose, no problem here. Anyway this is a bit surprising that default stdout behaves different than file opened with default options. -- Gracjan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
54 matches
Mail list logo