Re: storing highly shared data structures

2006-01-11 Thread Simon Marlow
Bulat Ziganshin wrote: Hello Simon, Tuesday, January 10, 2006, 12:26:30 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

Re: storing highly shared data structures

2006-01-11 Thread Christian Maeder
Simon Marlow wrote: You can change the allocation area size from within a program quite easily. Write a little C function to assign to RtsFlags.GcFlags.minAllocAreaSize (#include RtsFlags.h first), and call it from Haskell; the next time GC runs it will allocate the larger nursery. Please

Re: storing highly shared data structures

2006-01-11 Thread Esa Ilari Vuokko
On 1/11/06, Christian Maeder [EMAIL PROTECTED] wrote: Simon Marlow wrote: You can change the allocation area size from within a program quite easily. Write a little C function to assign to RtsFlags.GcFlags.minAllocAreaSize (#include RtsFlags.h first), and call it from Haskell; the next

Re: storing highly shared data structures

2006-01-11 Thread Simon Marlow
Esa Ilari Vuokko wrote: On 1/11/06, Christian Maeder [EMAIL PROTECTED] wrote: Simon Marlow wrote: You can change the allocation area size from within a program quite easily. Write a little C function to assign to RtsFlags.GcFlags.minAllocAreaSize (#include RtsFlags.h first), and call it

summary of storing highly shared data structures

2006-01-11 Thread Christian Maeder
I wrote: However, shared ATerms are always different for different types, because the corresponding data constructors are different. This isn't quite true. The shared ATerm for the empty list is the same for all instances. Finally, _reading in_ shared ATerms is fast, since ghc seems to

Re: darcs switchover

2006-01-11 Thread John Goerzen
On 2006-01-10, Simon Marlow [EMAIL PROTECTED] wrote: Having both repos is starting to hurt now, it's a fiddle to move patches from darcs to CVS to commit them. So I want to throw the switch ASAP; I'm pretty certain we've dealt with any blocking problems now. So once we've got the

Re: summary of storing highly shared data structures

2006-01-11 Thread Christian Maeder
Hi Bulat, The difference between IntMap and HashTable is not large despite -A10m (without this option HashTable is unusable). HashTable: ghc: 2754665792 bytes, 287 GCs, 26495315/147911940 avg/max bytes residency (12 samples), 299M in use, 0.00 INIT (0.00 elapsed), 31.72 MUT (33.78 elapsed),

Re: [Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Ketil Malde
Wolfgang Jeltsch [EMAIL PROTECTED] writes: Thinking about the subject matter is hard enough, thinking about creating licensing pitfalls is best left to lawyers and other parasi^W specialists. The problem is that lawyers are thinking about pitfalls for you to fall into. Discussing licensing

Re: [Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Glynn Clements
Ashley Yakeley wrote: I think we're going for public domain, assuming we can also add text to satisfy German law, etc. AIUI, the main problem with the notion of public domain under typical European copyright law is that authors have moral rights (e.g. the right of attribution and to

Re: [Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Wolfgang Jeltsch
Am Mittwoch, 11. Januar 2006 05:38 schrieben Sie: [...] My suggestion would be * One license for the Wiki. If a contributor wants to put up material with a different license, then link to it as Udo suggested. (This also makes it clear that the link is to material that is not to be edited

Re: [Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Wolfgang Jeltsch
Am Mittwoch, 11. Januar 2006 07:17 schrieb Ashley Yakeley: In article [EMAIL PROTECTED] ft.com, Simon Peyton-Jones [EMAIL PROTECTED] wrote: My suggestion would be * One license for the Wiki. If a contributor wants to put up material with a different license, then link to it as Udo

Re: [Haskell] Re: New look for haskell.org: MediaWiki

2006-01-11 Thread Malcolm Wallace
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 Looks like it would be easy to call out to hscolour: http://www.cs.york.ac.uk/fp/darcs/hscolour provided only that there is some

[Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Ashley Yakeley
In article [EMAIL PROTECTED], Wolfgang Jeltsch [EMAIL PROTECTED] wrote: Where can I get an account for the wiki? Click on Log in at the bottom-right hand corner of the page. I don't want my IP address to appear in some history. Or isn't the wiki configured to store IP addresses like

Re: [Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Wolfgang Jeltsch
Am Mittwoch, 11. Januar 2006 19:19 schrieb Ashley Yakeley: [...] AFAIK IP addresses are not stored at all, but I haven't examined the code for this. Hello Ashley, Wikipedia stores and displays IP addresses if the user which did the edit wasn't logged in. [...] Best wishes, Wolfgang

[Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Ashley Yakeley
Wolfgang Jeltsch wrote: Wikipedia stores and displays IP addresses if the user which did the edit wasn't logged in. This is disabled in HaskellWiki; you have to log in to edit. I did this because hawiki apparently had had some problems with vandalism and had done the same thing. -- Ashley

[Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Ashley Yakeley
I wrote: Wolfgang Jeltsch wrote: Yes, BSD might be too restrictive. So let's put every wiki content under a very permissive license like the one Udo proposed. Opinions? Presumably a very permissive license might include the phrase public domain in any case? Does anyone want to draw one

[Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Ashley Yakeley
Simon Peyton-Jones wrote: * One license for the Wiki. If a contributor wants to put up material with a different license, then link to it as Udo suggested. (This also makes it clear that the link is to material that is not to be edited by others, whereas by definition the entire Wiki actively

[Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Ashley Yakeley
Neil Mitchell wrote: We won't be able to include the Haskell 98 Report on the wiki (which is intended to replace the entire haskell.org site) because it has a more restrictive license. At the same time, we probably don't want people editing the haskell report! As such, a link from the wiki is

Re: [Haskell] Re: haskell.org Public Domain

2006-01-11 Thread ajb
G'day all. Quoting Wolfgang Jeltsch [EMAIL PROTECTED]: Yes, BSD might be too restrictive. So let's put every wiki content under a very permissive license like the one Udo proposed. Opinions? I agree. Does such a licence already exist? If not, I'd suggest taking the Creative Commons by

[Haskell] Re: haskell.org Public Domain

2006-01-11 Thread Ashley Yakeley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: G'day all. Quoting Wolfgang Jeltsch [EMAIL PROTECTED]: Yes, BSD might be too restrictive. So let's put every wiki content under a very permissive license like the one Udo proposed. Opinions? I agree. Does such a licence

Re: [Haskell] Re: haskell.org Public Domain

2006-01-11 Thread ajb
G'day all. Quoting Ashley Yakeley [EMAIL PROTECTED]: What about this one? http://commons.wikimedia.org/wiki/Commons:Donate_to_the_public_domain I, the creator of this work, hereby release it into the public domain. This applies worldwide. In case this is not legally possible: I grant

[Haskell-cafe] FunctionalJ - a library for Functional Programming in Java

2006-01-11 Thread Graham Klyne
A colleague alerted me to this, which I thought might be of interest here: http://www.theserverside.com/news/thread.tss?thread_id=38430 (I have already found that my Haskell experiences have influenced my Python programming; maybe there's also hope for my Java?) #g -- Graham Klyne For

Re: [Haskell-cafe] FunctionalJ - a library for Functional Programming in Java

2006-01-11 Thread Bjorn Bringert
Graham Klyne wrote: A colleague alerted me to this, which I thought might be of interest here: http://www.theserverside.com/news/thread.tss?thread_id=38430 (I have already found that my Haskell experiences have influenced my Python programming; maybe there's also hope for my Java?) I've

Re: [Haskell-cafe] Re: Space usage problems

2006-01-11 Thread Ian Lynagh
On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote: My suggestion: don't use the lazy state monad if you can help it. But a strict state monad would force everything to be loaded into memory at once, right? What would you suggest I use instead? Or do I just have to tread carefully

[Haskell-cafe] Re: Space usage problems

2006-01-11 Thread Simon Marlow
Ian Lynagh wrote: On Wed, Jan 11, 2006 at 10:36:47AM +, Simon Marlow wrote: My suggestion: don't use the lazy state monad if you can help it. But a strict state monad would force everything to be loaded into memory at once, right? What would you suggest I use instead? I'm not sure -

[Haskell-cafe] Re: Shootout favoring imperative code

2006-01-11 Thread Einar Karttunen
On 09.01 11:32, Simon Marlow wrote: 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

Re: [Haskell-cafe] I/O and utf8

2006-01-11 Thread Einar Karttunen
On 10.01 10:25, Bulat Ziganshin wrote: i have the question about this issue - i also want to provide autodetection mechanism, which relies on first bytes of text files to set proper encoding. what is the standard rules to encode utf8/utf16 encoding used for text in file in these first bytes?

Re: [Haskell-cafe] Re: Chameneos

2006-01-11 Thread Chris Kuklewicz
Aaron Denney wrote: On 2006-01-06, Chris Kuklewicz [EMAIL PROTECTED] wrote: One could make an MVar version which did not use a meeting thread, and I welcome someone to do that. I have no proof that the current solution is really the fastest architecture. I've done so -- on my machine it's

[Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Rakesh Malik
I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc, but that doesn't seem to be relevant to this). The first bit of puzzlement comes from the error messages I'm getting: ffihugs +G +LX_stub_ffi.c X.hs Warning: unknown toggle `G';

Re: [Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Jared Updike
Someone else had this problem, I think. http://www.mail-archive.com/haskell-cafe@haskell.org/msg11358.html Jared. On 1/11/06, Rakesh Malik [EMAIL PROTECTED] wrote: I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc, but that

Re: [Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Ross Paterson
On Wed, Jan 11, 2006 at 11:25:42AM -0500, Rakesh Malik wrote: I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc, but that doesn't seem to be relevant to this). The graphics library should be included with Hugs: the module is

Re: [Haskell-cafe] Help compiling School of Expression graphics library?

2006-01-11 Thread Rakesh Malik
Indeed it is! Thanks, both of you, for the quick responses. On 1/11/06, Ross Paterson [EMAIL PROTECTED] wrote: On Wed, Jan 11, 2006 at 11:25:42AM -0500, Rakesh Malik wrote: I'm trying to build the GraphicsLib code in Linux, Fedora. I have the March '05 version of Hugs installed (and ghc,

[Haskell-cafe] Re: Chameneos

2006-01-11 Thread Aaron Denney
On 2006-01-11, Chris Kuklewicz [EMAIL PROTECTED] wrote: Aaron Denney wrote: The old version with the meeting place thread has been disqualified (along with Erlang submissions). Is this reasoning explained and clarified anywhere, or did they just move both to the interesting alternatives? The

Re: [Haskell-cafe] Re: Chameneos

2006-01-11 Thread Isaac Gouy
--- Aaron Denney [EMAIL PROTECTED] wrote: On 2006-01-11, Chris Kuklewicz [EMAIL PROTECTED] wrote: Aaron Denney wrote: The old version with the meeting place thread has been disqualified (along with Erlang submissions). Is this reasoning explained and clarified anywhere, or did they

[Haskell-cafe] Re: Chameneos

2006-01-11 Thread Aaron Denney
On 2006-01-11, Isaac Gouy [EMAIL PROTECTED] wrote: --- Aaron Denney [EMAIL PROTECTED] wrote: On 2006-01-11, Chris Kuklewicz [EMAIL PROTECTED] wrote: Aaron Denney wrote: The old version with the meeting place thread has been disqualified (along with Erlang submissions). Is this

Re: [Haskell-cafe] Re: Chameneos

2006-01-11 Thread Isaac Gouy
--- Aaron Denney [EMAIL PROTECTED] wrote: The forums there seem to be useless because...? Because I can't find anything relevant (and I did look). I can't even tell where such an announcement would have been made. Ah! Useful for finding an announcement - maybe not. otoh the forums do

[Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web pages and having multi-line strings would be very useful. Mike ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Yes, just like that ;-) Thanks! Now if somebody has a string interpolation library, I'd be a pretty happy camper ;-) Mike mvanier: Is there any support for multi-line string literals in Haskell? I've done a web search and come up empty. I'm thinking of using Haskell to generate web

[Haskell-cafe] Re: Chameneos

2006-01-11 Thread Aaron Denney
On 2006-01-11, Isaac Gouy [EMAIL PROTECTED] wrote: Ah! Useful for finding an announcement - maybe not. otoh the forums do allow QA without subscription. And requiring subscriptions is necessary to avoid spam. Being able to hash things out without checking yet another bulletin board regularly

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Donald Bruce Stewart
Oh, like this (by Stefan Wehr): http://www.cse.unsw.edu.au/~dons/code/icfp05/tests/unit-tests/VariableExpansion.hs $ ghci -fth VariableExpansion.hs *VariableExpansion let x = 7 in $( expand ${x} ) 7 *VariableExpansion let url = http://www.google.com; *VariableExpansion $( expand Here is

Re: [Haskell-cafe] multiline strings in haskell?

2006-01-11 Thread Michael Vanier
Excellent! Thanks. Mike Donald Bruce Stewart wrote: Oh, like this (by Stefan Wehr): http://www.cse.unsw.edu.au/~dons/code/icfp05/tests/unit-tests/VariableExpansion.hs $ ghci -fth VariableExpansion.hs *VariableExpansion let x = 7 in $( expand ${x} ) 7 *VariableExpansion let url =

[Haskell-cafe] Haskell DB bindings

2006-01-11 Thread oleg
Krasimir Angelov wrote: There are three active database libraries: HDBC, HSQL and Takusen. It is quite disappointing from my point of view. Recently there was the same situation with the GUI libraires. I think the dichotomy between lower-level Haskell libraries (whose API is closer/faithful