Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread Don Stewart
allbery: > On 2009 Mar 3, at 12:31, mwin...@brocku.ca wrote: >> In both runs the same computations are done (sequentially resp. >> parallel), so the gc should be the same. But still using 2 cores is >> much slower than using 1 core (same program - no communication). > > The same GCs are done, but G

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread Don Stewart
mwinter: > Hi, > > I tried a get into concurrent Haskell using multiple cores. The program below > creates 2 task in different threads, executes them, synchronizes the threads > using MVar () and calculates the time needed. > > import System.CPUTime > import Control.Concurrent > import Control.C

Re: [Haskell-cafe] interaction between ghci and cudaBLAS library

2009-03-02 Thread Don Stewart
seb: > > > Don Stewart-2 wrote: > > > > > > Do you get the same problem in compiled code? (GHCi is generally for > > exploratory work only). > > > > if I create an executable run it non-interactively. It works fine: > > $ ghc -O2 --make

Re: [Haskell-cafe] interaction between ghci and cudaBLAS library

2009-03-02 Thread Don Stewart
seb: > > In my efforts to integrate this library into Haskell (I am working on OS X > 10.5.6 with ghc-6.10.1 and CUDA 2.0) I am getting a bad interaction between > the threads in ghci - when I call the library init function via the FFI, > ghci will block in __semwait_signal. Of course if I build a

Re: [Haskell-cafe] possible memory leak in uvector 0.1.0.3

2009-03-02 Thread Don Stewart
manlio_perillo: > Hi. > > In the "help optimizing memory usage for a program" I discovered some > interesting things: > > > 2) UArr from uvector leaks memory. >I'm rather sure about this. Note it was just allocating more than was required, it wasn't "leaking" it in any sense (i.e. losing tra

Re: [Haskell-cafe] missing support for NFData in uvector package

2009-02-28 Thread Don Stewart
manlio_perillo: > Today I noticed that there is no instance declaration for NFData, in the > uvector package. > > The definition is quite simple: > > instance NFData a => NFData (UArr a) where > -- NOTE: UArr is already strict > rnf array = array `seq` () > > but it is important. > > In a

Re: [Haskell-cafe] Re: Left fold enumerator - a real pearl overlooked?

2009-02-28 Thread Don Stewart
jwlato: > Hello Günther, > > I think the largest reason Haskellers don't use left-fold enumerators > is that there isn't a ready-to-use package on Hackage. Oleg's code is > extremely well commented and easy to follow, but it's not cabalized. > > In addition to Takusen, Johan Tibbe's hyena applic

Re: [Haskell-cafe] memory issues

2009-02-27 Thread Don Stewart
bulat.ziganshin: > Hello Rogan, > > Saturday, February 28, 2009, 1:18:47 AM, you wrote: > > > data Block = Block { > > offset::Integer > > , size::Integer > > } deriving (Eq) > > try >!offset::Integer > , !size::Integer > offset :: !Integer And possibly just usi

Re: [Haskell-cafe] memory issues

2009-02-27 Thread Don Stewart
creswick: > On Fri, Feb 27, 2009 at 2:20 PM, Don Stewart wrote: > > creswick: > >> \begin{code} > >> -- Compiled with: > >> -- $ ghc --make offsetSorter.hs > > > > YIKES!! Use the optimizer! > > > >    ghc -O2 --make > > Ah,

Re: [Haskell-cafe] memory issues

2009-02-27 Thread Don Stewart
creswick: > First off, my apologies for breaking etiquette, if/when I do -- I've > only just joined Haskell-cafe, and I'm quite new to Haskell. > > I have recently been trying to process a large data set (the 2.8tb > wikipedia data dump), and also replace my scripting needs with haskell > (needs t

Re: [Haskell-cafe] differences between Data.Array and Data.Vector

2009-02-27 Thread Don Stewart
manlio_perillo: > Hi. > > In Hackage there are some packages named "*array*", and others named > "*vector*". > > What are the differences? > > > Is available a guide to the various data structures available in Haskell? > The vector packages tend to be either easily growable, or easily fusible, o

Re: [Haskell-cafe] Trouble building ArrayRef 0.1.3

2009-02-27 Thread Don Stewart
bulat.ziganshin: > Hello Mads, > > Friday, February 27, 2009, 6:27:52 PM, you wrote: > > i made this lib back in the ghc 6.4 days, so it probably have a lot of > compatibility problems here and there :( i'm self still use ghc 6.6 :) > > > When I try to build ArrayRef 0.1.3 I get: > > > Control

Re: [Haskell-cafe] Sparse vector operations

2009-02-27 Thread Don Stewart
You might be duplicating the functionality of an existing library. There are existing libraries for vectors (though not sure if blas supports sparse vectors well?). http://hackage.haskell.org/cgi-bin/hackage-scripts/package/blas http://hackage.haskell.org/cgi-bin/hackage-scripts/package/h

Re: [Haskell-cafe] Performance Issue

2009-02-26 Thread Don Stewart
james.swaine: > i'm implementing a benchmark which includes a detailed specification for a > random number generator. for any of the kernels outlined in the benchmark, i > might have to generate a set of random numbers R, which has a length n, using > the following formulas: > > R[k] = ((2^-46)(X

Re: [Haskell-cafe] Performance question

2009-02-26 Thread Don Stewart
vandijk.roel: > I replaced the standard random number generated with the one from > mersenne-random. On my system this makes the resulting program about > 14 times faster than the original. I also made a change to > accumulateHit because it doesn't need to count to total. That is > already known. >

[Haskell-cafe] Re: seg-fault in mersenne-random with SSE2 (was Performance question)

2009-02-26 Thread Don Stewart
Alistair.Bayley: > > From: haskell-cafe-boun...@haskell.org > > [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Roel van Dijk > > > > I replaced the standard random number generated with the one from > > mersenne-random. On my system this makes the resulting program about > > 14 times fast

Re: [Haskell-cafe] Performance question

2009-02-26 Thread Don Stewart
Ben.Lippmeier: > > On 26/02/2009, at 9:27 PM, hask...@kudling.de wrote: >> >> Currently i can only imagine to define a data type in order to use >> unboxed Ints instead of the accumulator tuple. > > That would probably help a lot. It would also help to use two separate > Double# parameters inst

[Haskell-cafe] Re: package code duplication

2009-02-25 Thread Don Stewart
wasserman.louis: > There was a question recently about being allowed to get into package > internals, and I had a question. I want to use uvector's stream internals in > ways that the exposed methods don't permit, but I don't especially want to use > another package (e.g. vector, which does expose

Re: [Haskell-cafe] Data.Binary poor read performance

2009-02-24 Thread Don Stewart
jnf: > > > wren ng thornton wrote: > > > > If you have many identical strings then you will save lots by memoizing > > your strings into Integers, and then serializing that memo table and the > > integerized version of your data structure. The amount of savings > > decreases as the number of

Re: Pickling a finite map (Binary + zlib) [was: [Haskell-cafe] Data.Binary poor read performance]

2009-02-24 Thread Don Stewart
felipe.lessa: > On Tue, Feb 24, 2009 at 4:59 AM, Don Stewart wrote: > > Looks like the Map reading/showing via association lists could do with > > further work. > > > > Anyone want to dig around in the Map instance? (There's also some patches > > for > &g

Re: Pickling a finite map (Binary + zlib) [was: [Haskell-cafe] Data.Binary poor read performance]

2009-02-24 Thread Don Stewart
dons: > wren: > > Neil Mitchell wrote: > >> 2) The storage for String seems to be raw strings, which is nice. > >> Would I get a substantial speedup by moving to bytestrings instead of > >> strings? If I hashed the strings and stored common ones in a hash > >> table is it likely to be a big win? >

Pickling a finite map (Binary + zlib) [was: [Haskell-cafe] Data.Binary poor read performance]

2009-02-23 Thread Don Stewart
wren: > Neil Mitchell wrote: >> 2) The storage for String seems to be raw strings, which is nice. >> Would I get a substantial speedup by moving to bytestrings instead of >> strings? If I hashed the strings and stored common ones in a hash >> table is it likely to be a big win? > > Bytestrings shou

Re: [Haskell-cafe] memory-efficient data type for Netflix data - UArray Int Int vs UArray Int Word8

2009-02-23 Thread Don Stewart
bos: > 2009/2/23 Kenneth Hoste > > > Does anyone know why the Word8 version is not significantly better in > terms > of memory usage? > > > Yes, because there's a typo on line 413 of Data/Array/Vector/Prim/BUArr.hs. > > How's that for service? :-) UArray or UArr? __

[Haskell-cafe] Re: Data.Binary poor read performance

2009-02-23 Thread Don Stewart
ndmitchell: > Hi, > > In an application I'm writing with Data.Binary I'm seeing very fast > write performance (instant), but much slower read performance. Can you > advise where I might be going wrong? Can you try binary 0.5 , just released 20 mins ago? There was definitely some slow downs due t

[Haskell-cafe] Re: [Haskell] ANNOUNCE: X Haskell Bindings 0.2

2009-02-21 Thread Don Stewart
aslatter: > I'd like to announce the 0.2.* series release of the X Haskell > Bindings. This release, like the prior 0.1.* series focuses on making > the API prettier. This does mean that there's a good chance this is a > breaking release. Also, 0.2.* is based on the just-released version > 1.4 o

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-21 Thread Don Stewart
Bulat, you've some serious lessons to learn on how to interact with online communities. First, 1. Stop posting replies to every post on this thread 2. Read some of the fine literature on how to be a productive, contributing member of a mailing list community, http://

[Haskell-cafe] Re: Template Haskell compilation error on Windows (was Re: speed: ghc vs gcc)

2009-02-21 Thread Don Stewart
Missing --make bugfact: > I tried to compile the template Haskell loop unrolling trick from Claus Reinke > on my machine which is running Windows and GHC 6.10.1, and I got linker > errors. > > c:\temp>ghc -O2 -fvia-C -optc-O3 -fforce-recomp Apply.hs > Apply.o:ghc6140_0.hc:(.text+0x7d): undefined

[Haskell-cafe] The community is more important than the product

2009-02-21 Thread Don Stewart
http://haskell.org/haskellwiki/Protect_the_community Random notes on how to maintain tone, focus and productivity in an online community I took a few years ago. Might be some material there if anyone's seeking to help ensure we remain a constructive, effective community. -- Don P.S. release som

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Don Stewart
bertram.felgenhauer: > This is odd, but it doesn't hurt the inner loop, which only involves > $wsum01_XPd, and is identical to $wfold_s15t above. > > > Checking the asm: > > $ ghc -O2 -fasm > > > > sQ3_info: > > .LcRt: > > cmpq 8(%rbp),%rsi > > jg .LcRw > > leaq 1(%r

Re: [Haskell-cafe] speed: ghc vs gcc vs jhc

2009-02-20 Thread Don Stewart
bulat.ziganshin: > Hello John, > > Saturday, February 21, 2009, 3:42:24 AM, you wrote: > > >> this is true for *application* code, but for codec you may have lots of > >> code that just compute, compute, compute > > > Yes indeed. If there is code like this out there for haskell, I would > > love

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Don Stewart
bulat.ziganshin: > Hello Achim, > > Saturday, February 21, 2009, 1:17:08 AM, you wrote: > > >> nothing new: what you are not interested in real compilers comparison, > >> preferring to demonstrate artificial results > >> > > ...that we have a path to get better results than gcc -O3 > > -funroll-l

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Don Stewart
dons: > bulat.ziganshin: > > Hello Achim, > > > > Friday, February 20, 2009, 11:44:49 PM, you wrote: > > > > >> > Turning this into a ticket with associated test will: > > >> > > >> but why you think that this is untypical and needs a ticket? ;) > > >> > > > Bulat, you are right in every aspect

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Don Stewart
bulat.ziganshin: > Hello Achim, > > Friday, February 20, 2009, 11:44:49 PM, you wrote: > > >> > Turning this into a ticket with associated test will: > >> > >> but why you think that this is untypical and needs a ticket? ;) > >> > > Bulat, you are right in every aspect. You never did anything w

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Don Stewart
claus.reinke: > Concrete examples always help, thanks. > > In simple enough situations, one can roll one's own loop unrolling;), > somewhat like shown below (worker/wrapper split to bring the function > parameter representing the loop body into scope, then template haskell > to unroll its applica

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Don Stewart
barsoap: > Don Stewart wrote: > > > No! This is not how open source works! You *should submit bug > > reports* and *analysis*. It is so so much more useful than > > complaining and throwing stones. > > > Exactly. I don't know where, but I read that t

Re: [Haskell-cafe] speed: ghc vs gcc

2009-02-20 Thread Don Stewart
bulat.ziganshin: > Friday, February 20, 2009, 7:41:33 PM, you wrote: > > >> main = print $ sum[1..10^9::Int] > > > This won't be comparable to your loop below, as 'sum' is a left fold > > (which doesn't fuse under build/foldr). > > > You should use the list implementation from the stream-fusion

Re: [Haskell-cafe] speed: ghc vs gcc

2009-02-20 Thread Don Stewart
bulat.ziganshin: > Hello haskell-cafe, > > since there are no objective tests comparing ghc to gcc, i made my own > one. these are 3 programs, calculating sum in c++ and haskell: Wonderful. Thank you! > main = print $ sum[1..10^9::Int] This won't be comparable to your loop below, as 'sum' is

Re: [Haskell-cafe] Re: garbage collector woes

2009-02-19 Thread Don Stewart
waterson: > On Feb 17, 2009, at 12:22 PM, Chris Waterson wrote: > >> I'm at wits end with respect to GHC's garbage collector and would very >> much appreciate a code review of my MySQL driver for HDBC, which is >> here: >> >> >>

Re: [Haskell-cafe] How to create an online poll

2009-02-18 Thread Don Stewart
This looks very promising! Investigating... anton: > There's also the Condorcet Internet Voting Service: > > http://www.cs.cornell.edu/andru/civs.html > > > gregg reynolds wrote: >> See also www.surveymonkey.com >> >> Bulat Ziganshin wrote: >> >>> Hello haskell-cafe, >>> >>> http://zohopolls.co

Re: [Haskell-cafe] Polymorphism overhead

2009-02-17 Thread Don Stewart
wasserman.louis: > I have (roughly) the following code: > > data Foo e > type MFoo e = Maybe (Foo e) > > instance Ord e => Monoid (Foo e) where > f1 `mappend` f2 = > > I'd expect this to optimize to the same thing as if I had implemented: > meld :: Ord e => Foo e -> Foo e -> Foo e > f1 `meld` f

Re: [Haskell-cafe] Memory

2009-02-16 Thread Don Stewart
inbuninbu: > Hello All, > > The kind people at #haskell suggested I come to haskell-cafe for > questions about haskell performance issues. > I'm new to haskell, and I'm having a hard time understanding how to > deal with memory leaks. > > I've been playing with some network server examples and I

Re: [Haskell-cafe] ANN : Crypto 4.2.0 & Related News

2009-02-16 Thread Don Stewart
wchogg: > Hello Haskellers, > > I'm pleased to announce version 4.2.0 of Crypto has been uploaded to > Hackage & that I am taking over maintenance of the library from > Dominic Steinitz. As of this release it should be cabal install'able > on GHC 6.10.1. I'm also pleased to announce that the dar

[Haskell-cafe] Arch Haskell News: Feb 16 2009

2009-02-16 Thread Don Stewart
Arch now has 926 Haskell packages in AUR. That’s an increase of 27 new packages in the last 8 days, or 3.38 new Haskell apps a day. This weekly news includes: * Noteworthy updates: grapefruit, haskelldb, gtk2hs * A video on how to use Arch packages * Updated releases by category Re

Re: [Haskell-cafe] Epic failure

2009-02-15 Thread Don Stewart
> OK, what did I do wrong here? When making a request for help on a compiler issue, you failed to include key information to make it possible to reproduce your problem, and what you did include was broken or incorrect. The three programs that submitted don't do even do the same thing. Let's look

Re: [Haskell-cafe] ANNOUNCE: haha-0.1 - Animated ascii lambda

2009-02-14 Thread Don Stewart
sfvisser: > Always wanted to have an full-color rotating vector based ascii art > lambda on your terminal? This is your chance, installing `haha' will do > the trick! > > This is very minimal vector based ascii art library written just for > fun. There is a sample program called `rotating-lambda' w

Re: [Haskell-cafe] Graph library, was: Haskell.org GSoC

2009-02-14 Thread Don Stewart
g9ks157k: > Am Samstag, 14. Februar 2009 16:59 schrieb Brent Yorgey: > > On Thu, Feb 12, 2009 at 04:10:21PM +0100, Wolfgang Jeltsch wrote: > > > Am Donnerstag, 12. Februar 2009 15:34 schrieb Thomas DuBuisson: > > > > Get a community.haskell.org account once you are ready to start a > > > > repo, it

Re: [Haskell-cafe] HaskellDB is alive?

2009-02-14 Thread Don Stewart
felipe.lessa: > Hello! > > There was a new HaskellDB release, but I didn't see any announcement > here. Is it back alive? What happened to 0.11? > > Thanks =) http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskelldb-0.12 ___ Haskell-Cafe ma

Re: [Haskell-cafe] Race condition possible?

2009-02-12 Thread Don Stewart
bugfact: > Consider the following code > > stamp v x = do > t <- getCurrentTime > putMVar v (x,t) > > Is it possible - with GHC - that a thread switch happens after the t <- > getCurrentTime and the putMVar v (x,t)? Yes. if 't' is heap allocated, there could be a context switch. > If so

Re: [Haskell-cafe] Is using Data.Dynamic considered a no-go?

2009-02-12 Thread Don Stewart
Notably, extensible exceptions use dynamics, in conjunction with type classes and existentials. A number of solutions to the 'expression problem' involve dynamics. bugfact: > It would be interesting to see when you HAVE to use dynamics, e.g. when no > other solution is possible in Haskell... > >

Re: [Haskell-cafe] Is using Data.Dynamic considered a no-go?

2009-02-12 Thread Don Stewart
bugfact: > Haskell seems to have pretty strong support for dynamic casting using > Data.Typeable and Data.Dynamic. > > All kinds of funky dynamic programming seems to be possible with these > "hacks". > > Is this considered as being as bad as - say - unsafePerformIO? What kind of > evil is lurki

Re: [Haskell-cafe] Re: Google Summer of Code 2009

2009-02-12 Thread Don Stewart
gwern0: > On Thu, Feb 12, 2009 at 11:49 AM, John Lato wrote: > > Johan Tibell wrote: > >> On Thu, Feb 12, 2009 at 2:12 AM, Felipe Lessa > >> wrote: > >>> Do we already have enough information to turn > >>> http://okmij.org/ftp/Haskell/Iteratee/ into a nice, generic, cabalized > >>> package? I th

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-12 Thread Don Stewart
gtener: > On Thu, Feb 12, 2009 at 11:36, Malcolm Wallace > wrote: > > Gwern Branwen wrote: > > > >> * A GUI interface to Darcs > >> (http://hackage.haskell.org/trac/summer-of-code/ticket/17); > > > > I wonder whether darcs ought to apply to be a GSoC mentoring > > organisation in its own right th

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-12 Thread Don Stewart
Malcolm.Wallace: > Gwern Branwen wrote: > > > * A GUI interface to Darcs > > (http://hackage.haskell.org/trac/summer-of-code/ticket/17); > > I wonder whether darcs ought to apply to be a GSoC mentoring > organisation in its own right this year? It would be good to attempt to > get a couple of d

Re: [Haskell-cafe] Haskell.org GSoC

2009-02-12 Thread Don Stewart
g9ks157k: > Am Mittwoch, 11. Februar 2009 18:51 schrieb Don Stewart: > > For example, if all the haddocks on hackage.org were a wiki, and > > interlinked, every single package author would benefit, as would all > > users. > > You mean, everyone should be able to mess

Re: [Haskell-cafe] Re[4]: [Haskell] Google Summer of Code

2009-02-11 Thread Don Stewart
bulat.ziganshin: > Hello Don, > > Thursday, February 12, 2009, 12:23:16 AM, you wrote: > > > Check out what GHC is doing these days, and come back with an analysis > > of what still needs to be improved. We can't wait to hear! > > can you point me to any haskell code that is as fast as it's C >

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-11 Thread Don Stewart
Thanks for the analysis, this clarifies things greatly. Feasibility and scope is a big part of how we determine what projects to work on. gtener: > On Wed, Feb 11, 2009 at 21:00, Jamie wrote: > > Hi Gwern, > > > > On Wed, 11 Feb 2009, Gwern Branwen wrote: > > > >>> I just checked H.263 and it loo

Re: [Haskell-cafe] Re[4]: [Haskell] Google Summer of Code

2009-02-11 Thread Don Stewart
bulat.ziganshin: > Hello John, > > Wednesday, February 11, 2009, 11:55:47 PM, you wrote: > > >> it's exactly example of tight loop. and let's compare HP code written > >> for this task with analogous code written in C. i expect that haskell > >> code is much more complex > > > I think it's fair

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-11 Thread Don Stewart
bulat.ziganshin: > Hello Don, > > Wednesday, February 11, 2009, 8:28:33 PM, you wrote: > > >> anyway it's impossible due to slow code generated by ghc > > > Been a long time since you did high perf code -- we routinely now write > > code that previously was considered not feasible. > > which is

Re: [Haskell-cafe] GHC development

2009-02-11 Thread Don Stewart
andrewcoppin: > OK, so I have a small question. > > I was just wondering what the current state of development with GHC is. > So, I had a look at the developer wiki. Unfortunately, as best as I can > tell, most of the status pages haven't been updated in many months. > (Most of them still tal

Re: [Haskell-cafe] Haskell.org GSoC

2009-02-11 Thread Don Stewart
d: > Hi, > > I noticed last year Haskell.org was a mentoring organization for > Google's Summer of Code, and I barely noticed some discussion about it > applying again this year :) > > I participated for GCC in 2008 and would like to try again this year; > while I'm still active for GCC and w

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-11 Thread Don Stewart
bulat.ziganshin: > Hello Jamie, > > Wednesday, February 11, 2009, 5:54:09 AM, you wrote: > > > Seems like it is ok to write H.264 in Haskell and released via GPL > > license? > > anyway it's impossible due to slow code generated by ghc > Been a long time since you did high perf code -- we rout

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-11 Thread Don Stewart
gwern0: > (The following is a quasi essay/list of past Summer of Code projects; > my hope is to guide thinking about what Summer of Code projects would > be good to pick, and more specifically what should be avoided. > If you're in a hurry, my conclusions are at the bottom. > The whole thing is wri

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-10 Thread Don Stewart
Well done! Our flagship GUI bindings... Go team! -- Don pgavin: > Hi everyone, > > Oh, dear... it seems I've forgotten how to spell "cafe", and sent this > message to haskell-c...@haskell.org the first time around. I resent it > to all the lists again (just to make sure everyone interested

Re: [Haskell-cafe] GMP on Mac OS X linked statically by default

2009-02-10 Thread Don Stewart
leimy2k: > Was there a reason for this? If so, it'd be nice if the package that was > build > explained why... otherwise it feels kind of arbitrary, and would be nice if > there was documentation available to make it link dynamically in case someone > didn't want to LGPL their program. > > Anyon

Re: [Haskell-cafe] Asking the GHC garbage collector to run

2009-02-10 Thread Don Stewart
mads_lindstroem: > Hi all, > > Is it possible to ask the GHC garbage collector to run ? Something like > a collectAllGarbage :: IO() call. System.Mem.performGC iirc, Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/

[Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-10 Thread Don Stewart
Malcolm.Wallace: > Gentle Haskellers, > > The Google Summer of Code will be running again this year. Once again, > haskell.org has the opportunity to bid to become a mentoring > organisation. (Although, as always, there is no guarantee of > acceptance.) > > If you have ideas for student project

Re: [Haskell-cafe] Re: The Haskell re-branding exercise

2009-02-09 Thread Don Stewart
marlowsd: > Sterling Clover wrote: >> IP based limitations are a terrible idea. Multiple users can be and >> often are behind the same IP if they're in some sort of intranet, be it >> corporate, academic, or simply multiple home computers. Mail-based >> authentication can be screwed with, sure

Re: [Haskell-cafe] Efficient string output

2009-02-09 Thread Don Stewart
ketil: > > Hi, > > I'm currently working on a program that parses a large binary file and > produces various textual outputs extracted from it. Simple enough. > > But: since we're talking large amounts of data, I'd like to have > reasonable performance. > > Reading the binary file is very ef

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-08 Thread Don Stewart
> >> Furthermore, since I assume we'll only be presenting reasonable logos, > >> there's not even some room for pranksters to stage a "write-in" of some > >> gag slogan. > > > > Right, only a subset of previously submitted ones. > > > > -- Don > > So does this mean no 'haskell YEEHH!'? Is

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-08 Thread Don Stewart
s.clover: > IP based limitations are a terrible idea. Multiple users can be and > often are behind the same IP if they're in some sort of intranet, be it > corporate, academic, or simply multiple home computers. Mail-based > authentication can be screwed with, sure, but it's also very easy to

Re: [Haskell-cafe] ANNOUNCE: X Haskell Bindings 0.1

2009-02-08 Thread Don Stewart
aslatter: > I'd like to announce a version bump for the X Haskell Bindings (XHB) > library, to 0.1.* from 0.0.*. > > The goal of XHB is to provide a Haskell implementation of the X11 wire > protocol, similar in spirit to the X protocol C-language Binding > (XCB). > > On Hackage: http://hackage.ha

Re: [Haskell-cafe] how to link statically with a c lib ?

2009-02-08 Thread Don Stewart
noteed: > 2009/2/8 Don Stewart : > > noteed: > >> Hi, > >> > >> I'm writing bindings for the Tiny C Compiler. > >> It seems that tcc provide a libtcc.a but no libtcc.so. > >> > >> In my cabal file, I have > >> >

Re: [Haskell-cafe] how to link statically with a c lib ?

2009-02-08 Thread Don Stewart
noteed: > Hi, > > I'm writing bindings for the Tiny C Compiler. > It seems that tcc provide a libtcc.a but no libtcc.so. > > In my cabal file, I have > > extra-libraries: dl, tcc > > but when using the generated haskell module, > I have the following message : > > ⟨...@jones samples⟩ g

Re: [Haskell-cafe] any implementation of ACIO?

2009-02-08 Thread Don Stewart
jianzhou: > Hi, > > http://www.haskell.org/pipermail/haskell-cafe/2004-November/007715.html > mentioned an interesting (A)ffine and (C)entral IO. Are there any packages > or extensions to support ACIO in Haskell? Not that I know of. -- Don ___ Haskel

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-07 Thread Don Stewart
bulat.ziganshin: > Hello Don, > > Saturday, February 7, 2009, 8:20:23 PM, you wrote: > > > We need a voting site set up. There was some progress prior to the end > > of the year. Updates welcome! > > i think that there are a lot of free voting/survey services available. > the last one i went thr

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-07 Thread Don Stewart
gwern0: > 2009/2/7 Don Stewart : > > Quite so, biased by the fact that they dropped off the page. > > > > I'm not saying reddit is unsuitable for communal decision making -- I've > > thought hard about this -- just that isn't perfect, and this isn'

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-07 Thread Don Stewart
gwern0: > On Sat, Feb 7, 2009 at 3:04 PM, Don Stewart wrote: > > gwern0: > >> On Sat, Feb 7, 2009 at 1:34 PM, Don Stewart wrote: > >> >Oh, we had a long discussion about the need for condorcet voting, > >> >not a system like the reddit which is

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-07 Thread Don Stewart
gwern0: > On Sat, Feb 7, 2009 at 1:34 PM, Don Stewart wrote: > >Oh, we had a long discussion about the need for condorcet voting, > >not a system like the reddit which is prone to abuse. > > > >Also, it would be good to have the images inline. > > Pe

Re: [Haskell-cafe] Semantic web

2009-02-07 Thread Don Stewart
dev: > Anybody implementing rdf or owl stuff in haskell? Seems like a natural fit. http://www.ninebynine.org/RDFNotes/Swish/Intro.html Needs moving to Hackage. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listi

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-07 Thread Don Stewart
Oh, we had a long discussion about the need for condorcet voting, not a system like the reddit which is prone to abuse. Also, it would be good to have the images inline. wagner.andrew: > Um, ok. Glad we could "discuss" it > > On Sat, Feb 7, 2009 at 1:12 PM,

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-07 Thread Don Stewart
wagner.andrew: > > We need a voting site set up. There was some progress prior to the end > of the year. Updates welcome! > > -- Don > > Can't we just use the haskell proposal reddit for this? Hmm... not ideal. Would make a backup should all else fail. __

Re: [Haskell-cafe] The Haskell re-branding exercise

2009-02-07 Thread Don Stewart
paul: > Paul Johnson wrote: >> A call has gone out >> >> for a new logo for Haskell. Candidates (including a couple >> >> of mine >>

Re: [Haskell-cafe] Fastest regex package?

2009-02-06 Thread Don Stewart
allbery: > On 2009 Feb 5, at 10:26, Eugene Kirpichov wrote: >> My benchmark (parsing a huge logfile with a regex like "GET >> /foo.xml.*fooid=([0-9]++).*barid=([0-9]++)") shows that plain PCRE is >> the fastest one (I tried PCRE, PCRE-light and TDFA; DFA can't do >> capturing groups at all, TDFA wa

Re: [Haskell-cafe] Are you using Haskell on the job?

2009-02-06 Thread Don Stewart
kirk.martinez: > Hello, fellow Haskell hackers! I am writing a term paper on Haskell in > Business, and while I have gathered a lot of good information on the Internet, > I would really like direct feedback from software professionals who have used > Haskell in a business setting. I would really

Re: [Haskell-cafe] Happstack 0.1 Released!

2009-02-05 Thread Don Stewart
andrewcoppin: > Jochem Berndsen wrote: >> The HAppS project has been abandoned, see >> http://groups.google.com/group/HAppS/msg/d128331e213c1031 . >> >> The Happstack project is intended to continue development. For more >> details, see http://happstack.com/faq.html . >> >> > So we've got HAppS,

Re: [Haskell-cafe] Haskell tutorial for pseudo users?

2009-02-05 Thread Don Stewart
andrewcoppin: > Deniz Dogan wrote: >> Learn You a Haskell for Great Good (http://learnyouahaskell.com/) > > Mmm, interesting. > > Does anybody else think it would be neat if GHCi really did colourise > your input like that? (Or at least display the prompt in a different > colour to user input a

Re: [Haskell-cafe] Re: ANN: #haskell-in-depth IRC channel

2009-02-03 Thread Don Stewart
We explicitly want to avoid a newbie "trap" See the summary of the discussion that lead to the channel creation http://haskell.org/haskellwiki/IRC_channel/Phase_2 -- Don DekuDekuplex: > On Wed, 04 Feb 2009 00:15:48 +, Philippa Cowderoy > wrote: > > >[...] > > > >If you need to know

Re: [Haskell-cafe] Verifying Haskell Programs

2009-02-02 Thread Don Stewart
dbueno: > On Mon, Feb 2, 2009 at 15:04, Don Stewart wrote: > > pocmatos: > >> Hi all, > >> > >> Much is talked that Haskell, since it is purely functional is easier > > > to be verified. > However, most of the research I have seen in software >

Re: [Haskell-cafe] Re: 1,000 packages, so let's build a few!

2009-02-02 Thread Don Stewart
ganesh.sittampalam: > Don Stewart wrote: > > > GHC doesn't bundle with cabal-install on any system. > > > > What is needed is not for the GHC team to be doing Windows platform > > packages, but for the Windows Haskell devs to build their own syste

Re: [Haskell-cafe] Verifying Haskell Programs

2009-02-02 Thread Don Stewart
pocmatos: > Hi all, > > Much is talked that Haskell, since it is purely functional is easier > to be verified. > However, most of the research I have seen in software verification > (either through model checking or theorem proving) targets C/C++ or > subsets of these. What's the state of the art

Re: [Haskell-cafe] Re: 1,000 packages, so let's build a few!

2009-02-02 Thread Don Stewart
ndmitchell: > Hi > > > So actually just having more Windows users subscribed to cabal-devel and > > commenting on tickets would be very useful, even if you do not have much > > time for hacking. > > I believe that as soon as a Windows user starts doing that you'll > start asking them for patches

Re: [Haskell-cafe] Re: 1,000 packages, so let's build a few!

2009-02-02 Thread Don Stewart
jwlato: > Duncan Coutts wrote: > > > > Some are trivial and should be done away with. For example the ones that > > just check if a C header / lib is present are unnecessary (and typically > > do not work correctly). The next point release of Cabal can do these > > checks automatically, eg: > > > >

Re: [Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-01 Thread Don Stewart
briqueabraque: > >>Are there plans to include C99 'complex' type > >>in Foreign, maybe as CFloatComplex, CDoubleComplex > >>and CLongDoubleComplex? This seems an easy addition > >>to the standard and would allow binding of a few > >>interesting libraries, like GSL. > > > >A separate library for new

Re: [Haskell-cafe] Takusen 0.8.3 install problems

2009-02-01 Thread Don Stewart
alistair: > >> > You can probably just remove the Setup.lhs and build with defaults > >> > (we're doing that at galois, we use Takusen). > >> > > >> > -- Don > > I'm surprised this works, unless you also change the imports of > Control.Exception to Control.OldException. The new exception module is

Re: [Haskell-cafe] Complex C99 type in Foreign

2009-02-01 Thread Don Stewart
briqueabraque: > Hi, > > Are there plans to include C99 'complex' type > in Foreign, maybe as CFloatComplex, CDoubleComplex > and CLongDoubleComplex? This seems an easy addition > to the standard and would allow binding of a few > interesting libraries, like GSL. > A separate library for new typ

Re: [Haskell-cafe] 1,000 packages, so let's build a few!

2009-01-31 Thread Don Stewart
sebastian.sylvan: > > > -- > From: "Don Stewart" > Sent: Saturday, January 31, 2009 8:35 PM > To: "Andrew Coppin" > Cc: > Subject: Re: [Haskell-cafe] 1,000 packages, so let's build a few! > &g

Re: [Haskell-cafe] Takusen 0.8.3 install problems

2009-01-31 Thread Don Stewart
Praki > > On Sat, Jan 31, 2009 at 12:30 PM, Don Stewart wrote: > > praki.prakash: > >> I am trying to install Takusen 0.8.3 with ghc 6.10.1 on Ubuntu 8.04 > >> (same issue on Win XP as well). I get the following complaint from > >> cabal. > >>

Re: [Haskell-cafe] 1,000 packages, so let's build a few!

2009-01-31 Thread Don Stewart
bugfact: > the true way to install all of hackage is: > > cabal install $(all my packages) > > where cabal install solves it all. > >not really :) e.g. my output on a Windows Vista system with GHC 6.10.1 >cabal install sdl >Resolving dependencies... >Downloading

Re: [Haskell-cafe] 1,000 packages, so let's build a few!

2009-01-31 Thread Don Stewart
andrewcoppin: > In celebration of Hackage reachin over 1,000 unique packages, I decided > that I would re-visit the problem of attempting to build them on Windows. > > Ah yes, I already have the tarball for stream-fusion-0.1.1, but I see > that the latest release is 0.1.2.1. (Unfortunately, ther

Re: [Haskell-cafe] Takusen 0.8.3 install problems

2009-01-31 Thread Don Stewart
praki.prakash: > I am trying to install Takusen 0.8.3 with ghc 6.10.1 on Ubuntu 8.04 > (same issue on Win XP as well). I get the following complaint from > cabal. > >Module >`Distribution.PackageDescription' >does not export >`writeHookedBuildInfo' > cabal: Error: some packages fai

<    3   4   5   6   7   8   9   10   11   12   >