Re: [Haskell-cafe] minimal interface

2010-03-02 Thread Don Stewart
seanmcl: > Hello, > > I have a midsize program, and would like to simplify the module interfaces > for my own sanity. I know there are tools to check for extraneous imports, > but > is there something similar for exports? For instance, if module A exports f, > but A.f is never used in my comp

Re: [Haskell-cafe] references for compiler optimizations for functional languages

2010-03-01 Thread Don Stewart
mvanier42: > Hi everyone, > > I'm interested in collecting good references for compiler optimizations > for functional languages (lazy, strict, statically-typed or not). Any > suggestions? > There's lots for what GHC implements on SimonPJ's site: http://www.research.microsoft.com/~simonp

[Haskell-cafe] Evolving Faster Haskell Programs (now with LLVM!)

2010-03-01 Thread Don Stewart
http://donsbot.wordpress.com/2010/03/01/evolving-faster-haskell-programs-now-with-llvm/ … In which I use genetic algorithms to search for optimal LLVM optimizer passes to make Haskell programs faster … LLVM + GHC is a lot of fun. -- Don ___ Haskell-Ca

Re: [Haskell-cafe] Is the Summer of Code TRAC relevant for this years SoC?

2010-02-28 Thread Don Stewart
enferris: > Hello. > > I was looking into the possibility of doing Summer of Code as a student, when > I > found Haskell.org's TRAC. I was particularly interested in Efficient Maps > using > Generalised Trees and the New Purely Functional Data Structures/Containers > Library. I'd love to work on

Re: [Haskell-cafe] Has "Try Haskell! An interactive tutorial in your browser" been announced yet?

2010-02-28 Thread Don Stewart
DekuDekuplex: > There is a link to "Try Haskell! -- an interactive, online Haskell > interpreter" (see http://tryhaskell.org/) under "February 2010" under "1 > Headlines" on the "Haskell - HaskellWIki" Web page (see > http://www.haskell.org/). > > While I could be mistaken, there do not seem to be

Re: [Haskell-cafe] Hackage statistics

2010-02-26 Thread Don Stewart
andrewcoppin: > Is there a simple way to discover the answer to questions like "how many > packages are on Hackage?" or "how many downloads per day does Hackage > serve?" Or is this information not posted anywhere? > > (I know there was a blog article a while back with some stats in it, but >

Re: [Haskell-cafe] Testing and module export lists

2010-02-24 Thread Don Stewart
ivan.miljenovic: > On 24 February 2010 20:17, Magnus Therning wrote: > > I often find that I do want an export list to reduce clutter in the > > finished code, but for testing I'd like to expose everything in a > > module.  Is there a nice way to deal with this (using the C > > pre-processor would

Re: [Haskell-cafe] Optimizing hash array mapped tries

2010-02-24 Thread Don Stewart
ezyang: > Excerpts from Bulat Ziganshin's message of Wed Feb 24 14:48:53 -0500 2010: > > > I'd be really curious about techniques that permit mutation during > > > the construction of functional datastructures; this seems like a cool > > > way to get fast performance w/o giving up any of the benefi

Re: [Haskell-cafe] Optimizing hash array mapped tries

2010-02-24 Thread Don Stewart
ezyang: > Hey guys, an update! > > It turns out, Clojure is using mutation under the hood during its > initial data structure generation to make populating the hash-map > blazingly fast. When I force it to use the purely functional > interface, the performance is much closer to Haskell's. > >

[Haskell-cafe] Some great results on fused code with the LLVM backend

2010-02-21 Thread Don Stewart
I tried out some of the vector and uvector fusion benchmarks with the new LLVM backend http://donsbot.wordpress.com/2010/02/21/smoking-fast-haskell-code-using-ghcs-new-llvm-codegen/ and got some great results for the tight loops generated through fusion. Up to 2x faster than gcc -O3 in some

Re: [Haskell-cafe] What happened in Ohloh?

2010-02-19 Thread Don Stewart
paul: > I'd like to use this kind of graph at work as evidence that Haskell is > on a growth trajectory. You might be more interested in data from Hackage: http://www.galois.com/blog/2009/03/23/one-million-haskell-downloads/ runched when we passed the 1M downloads mark a year ago (closer t

Re: [Haskell-cafe] What happened in Ohloh?

2010-02-19 Thread Don Stewart
paul: > If you go to > http://www.ohloh.net/languages/compare?l0=haskell&measure=projects and > look at the number (not percentage) of Haskell projects you see it rise > exponentially until the start of 2008 and then suddenly drop away. Does > anyone know what happened? Assuming this is j

Re: [Haskell-cafe] Notes on migrating from uvector to vector

2010-02-15 Thread Don Stewart
ivan.miljenovic: > On 16 February 2010 08:35, Don Stewart wrote: > > Enjoy the new decade of flexible, fusible, fast arrays for Haskell! > > /me points out that 2010 is actually the last year of the decade, and > not the first year of a new decade... Computer scientis

Re: [Haskell-cafe] IDL - compilers

2010-02-15 Thread Don Stewart
gue.schmidt: > Hi Don, > > Am 15.01.10 02:00, schrieb Don Stewart: >> gue.schmidt: >> >>> Hi, >>> >>> are there any IDL compilers that can create Haskelk modules from header >>> files or type-libs? >>> >>> &g

Re: [Haskell-cafe] vector to uvector and back again

2010-02-15 Thread Don Stewart
dan.doel: > On Thursday 11 February 2010 8:54:15 pm Dan Doel wrote: > > On Thursday 11 February 2010 12:43:10 pm stefan kersten wrote: > > > On 10.02.10 19:03, Bryan O'Sullivan wrote: > > > > I'm thinking of switching the statistics library over to using vector. > > > > > > that would be even bett

Re: [Haskell-cafe] Notes on migrating from uvector to vector

2010-02-15 Thread Don Stewart
creswick: > On Mon, Feb 15, 2010 at 1:35 PM, Don Stewart wrote: > > And I'll take this opportunity to declare that uvector is now in > > official maintainance-only mode. > > Would it make sense to add a note to that effect to the package > description / cabal fi

[Haskell-cafe] Notes on migrating from uvector to vector

2010-02-15 Thread Don Stewart
I've summarised my notes on how to migrate array code from the uvector package to Roman's vector package: http://donsbot.wordpress.com/2010/02/15/migrating-from-uvector-to-vector/ And I'll take this opportunity to declare that uvector is now in official maintainance-only mode. Enjoy the new

[Haskell-cafe] Re: MissingH dropped QuickCheck dep

2010-02-12 Thread Don Stewart
jgoerzen: > On Fri, Feb 12, 2010 at 08:45:09AM -0800, John MacFarlane wrote: > > +++ thomas hartman [Feb 11 10 21:07 ]: > > > gitit on hackage is still blocked because of dependency on missingh, > > > which depends on qc1. Not an easy fix -- I couldn't figure out how to > > > migrate testpack to qc

Re: [Haskell-cafe] Time for a San Francisco Hackathon?

2010-02-11 Thread Don Stewart
bos: > I'm thinking it might be a good idea to organise a Haskell Hackathon for > people > in (and who'd like to visit) the Bay Area. The tentative date I have in mind > is > the first weekend in May (conveniently May 1). If you'd be interested in > attending or helping to organise, please let me

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
rl: > On 12/02/2010, at 12:39, Don Stewart wrote: > > > bos: > >> I'm thinking of switching the statistics library over to using vector. > >> uvector > >> is pretty bit-rotted in comparison to vector at this point, and it's really > >&g

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
rl: > On 12/02/2010, at 12:39, Don Stewart wrote: > > > bos: > >> I'm thinking of switching the statistics library over to using vector. > >> uvector > >> is pretty bit-rotted in comparison to vector at this point, and it's really > >&g

Re: [Haskell-cafe] Hackage download statistis

2010-02-11 Thread Don Stewart
mauricio.antunes: > Hi, all, > > Some time ago a download statistic of hackage was made available, > and analysed in a few ways. Googling for it still find that at a > Galois web page. > > I though that, since the tools to get that were there, this would > be output once in a while, but it seems it

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
rl: > On 11/02/2010, at 05:03, Bryan O'Sullivan wrote: > > > I'm thinking of switching the statistics library over to using vector. > > uvector is pretty bit-rotted in comparison to vector at this point, and > > it's really seeing no development, while vector is The Shiny Future. Roman, > > wou

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
bos: > I'm thinking of switching the statistics library over to using vector. uvector > is pretty bit-rotted in comparison to vector at this point, and it's really > seeing no development, while vector is The Shiny Future. Roman, would you call > the vector library good enough to use in production

Re: [Haskell-cafe] How many "Haskell Engineer I/II/III"s are there?

2010-02-10 Thread Don Stewart
v.dijk.bas: > On Wed, Feb 10, 2010 at 4:59 PM, Jason Dusek wrote: > >  I wonder how many people actually write Haskell, > >  principally or exclusively, at work? > > Roel and I use Haskell at work. > > We develop embedded software in Haskell (not real-time) that controls > a scientific instrumen

Re: [Haskell-cafe] How many "Haskell Engineer I/II/III"s are there?

2010-02-10 Thread Don Stewart
jason.dusek: > Although I'm fond of Haskell, in practice I am not a > Haskell programmer -- I'm paid for Ruby and Bourne shell > programming. > > Many of the jobs posted on this list end up being jobs > for people who appreciate Haskell but will work in C# or > O'Caml or some-such. >

Re: [Haskell-cafe] Game of life in haskell.

2010-02-02 Thread Don Stewart
leimy2k: > > > On Tue, Feb 2, 2010 at 11:54 AM, Jon Harrop wrote: > > On Tuesday 02 February 2010 18:23:59 Serguey Zefirov wrote: > > 2010/2/2 Jon Harrop : > > > On Tuesday 02 February 2010 16:10:05 Serguey Zefirov wrote: > > >> Actually, your solution with arrays is the most of

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-01-31 Thread Don Stewart
malcolm.wallace: > Google has announced that the Summer of Code programme will be running > again this year. If haskell.org people would like to take part again > this year, then we need volunteers: > > First, > * suggestions for suitable projects > (in the past this was organise

Re: [Haskell-cafe] Could not find module `Text.Regex'

2010-01-28 Thread Don Stewart
z_axis: > > import Text.Regex > > date_by_ntday dateStr ntday = do > let [y,m,d] = map (\x -> read x::Int) $ splitRegex (mkRegex "-") dateStr > > > %ghc --version > The Glorious Glasgow Haskell Compilation System, version 6.12.1 > > Which package(s) do i need to use Text.Regex ?

Re: [Haskell-cafe] ghc-core 0.5 build fails

2010-01-27 Thread Don Stewart
briand: > Hi all, > > ghc-core.hs:263:13: > Not in scope: data constructor `C.ExitException' > > Looks like this comes from the base control.exception ? > > When I go to the web page for control.exception, there is no > exitexception. > > My reading of the hackage entry for ghc-core makes m

Re: [Haskell-cafe] Supporting GHC 6.10 and 6.12 in HDBC-postgresql Setup.hs

2010-01-26 Thread Don Stewart
jgoerzen: > Hi folks, > > I've gotten some reports (see below) of issues with building > HDBC-postgresql on GHC 6.12. Its Setup.hs file [1] is the culprit. The > problem is that AnyVersion needs to be removed to work with Cabal in GHC > 6.12. > The other HDBC problem I have is various dependen

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread Don Stewart
haskell: > > That looks like an error relating to the versoin of tagsoup used? > > You're right, thanks. > "optLookupEntity" is defined in tagsoup-0.6, but not in tagsoup-0.8. > But hxt-8.3.2 broadly requires tagsoup (>=0.6 && <1). > > I am no cabal expert. What is the best solution here? I thin

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread Don Stewart
haskell: > > Looks like the author of hxt has decided to support 6.12 only, at the > > moment. > > > > base (>=4.2 && <5) > > > > Ensures this will only work on the 6.12 series of compilers. > > Thanks. I know. > > My point is, i don't understand why hxt-8.3.2 (base >= 4 && <5) fails to > ins

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread Don Stewart
haskell: > Hi guys, > > i have some troubles to install hxt. > > My first naive attempt "cabal install hxt" fails with > "cabal: cannot configure hxt-8.5.0. It requires base >=4.2 && <5". > > I guess that's because i use ghc 6.10.4, since > "base-4.2.0.0" depends on "integer-simple" which seems

Re: [Haskell-cafe] http://trac.haskell.org down?

2010-01-22 Thread Don Stewart
We've contacted the hosting company, who had an upgrade last night. Hopefully back up in the next hour. ndmitchell: > Hi > > community.haskell.org is down as well :-( > > Thanks, Neil > > On Fri, Jan 22, 2010 at 8:41 PM, James Britt wrote: > > Been trying to reach http://trac.haskell.org for

Re: [Haskell-cafe] Is Haskell capable of matching C in string processing performance?

2010-01-22 Thread Don Stewart
jmillikin: > There's no such thing as "cheating", though that particular code won't > work for my purposes because it assumes the output is merely a stream > of "null". Fine for the benchmark, but not extractable to the full > problem. > > I wonder: is Handle known to be particularly slow? This co

Re: [Haskell-cafe] Is Haskell capable of matching C in string processing performance?

2010-01-21 Thread Don Stewart
jmillikin: > Here's the fastest Haskell version I could come up with. It discards > all error handling, validation, and correctness in the name of > performance, but still can't get anywhere near C: > http://hpaste.org/fastcgi/hpaste.fcgi/view?id=16423 Thanks for posting the code. You're not usin

Re: [Haskell-cafe] Haskell Platform

2010-01-21 Thread Don Stewart
RafaelGCPP.Linux: > Hi folks, > > How are the efforts on Haskell Platform for GHC 6.12.1 going? > > I'm considering joining those brave heroes. Where can I apply? > There'll be a time table update in the next few days, but you can certainly help by attempting to build things. -- Don __

Re: [Haskell-cafe] Having a look at XMonad window manager

2010-01-18 Thread Don Stewart
nowgate: > I'd already found a lot of these links and tried some of their suggestions, > without any success. Does anyone who posts here actually use it (what > platform)? What's the problem exactly? -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@has

Re: [Haskell-cafe] xmonad cannot find its library after upgrading GHC

2010-01-17 Thread Don Stewart
z_axis: > > After `pacman -Syu`, the ghc is upgraded to 6.12.1 > %ghc --version > The Glorious Glasgow Haskell Compilation System, version 6.12.1 > > However, the xmonad still stay as it is: > %pacman -Q|grep -i xmonad > xmonad 0.9-2.1 > xmonad-contrib 0.9-1.2 > > %pacman -Ql xmonad|more >

Re: [Haskell-cafe] IDL - compilers

2010-01-14 Thread Don Stewart
gue.schmidt: > Hi, > > are there any IDL compilers that can create Haskelk modules from header > files or type-libs? > The venerable hdirect. http://www.haskell.org/hdirect/ I've recently cabalized the package, which is still in fine condition. Let me know if you need a copy. -- Don __

Re: [Haskell-cafe] Quick, somebody do something!

2010-01-14 Thread Don Stewart
While the month-old Go language makes the top 15? Methods considered unsound. hjgtuyl: > > Haskell has dropped out of the top 50 at Tiobe [1]; how could this hapen? > Let's start selling mobile phones that can only be programmed in Haskell > :-) > > > [1] http://www.tiobe.com/content/paperinf

Re: [Haskell-cafe] short licensing question

2010-01-11 Thread Don Stewart
sebf: > Hello Café, > > when writing a Haskell library that uses two other Haskell libraries -- > one licensed under BSD3 and one under LGPL -- what are allowed > possibilities for licensing the written package? PublicDomain? BSD3? > LGPL? > Libraries don't link in other things as such -- the

[Haskell-cafe] Re: [arch-haskell] Upgrading Arch Linux Haskell Packages

2010-01-08 Thread Don Stewart
cetin.sert: > Hi, > > Is there a way to manually upgrade Haskell packages in the aur repository of > Arch Linux which were previously contributed automatically by arch-haskell? > Or is there a batch upgrade planned for the near future? > What is the mailing list for arch There's a batch upgrade,

[Haskell-cafe] Haskell Web News: Looking back on 2009

2009-12-21 Thread Don Stewart
The Haskell Web News is a monthly summary of the hottest news about the Haskell programming language, as found in our online communities. If you want to catch up with what’s been happening in Haskell, this might be the journal for you. In this edition, we look back on the major events of 2009.

Re: [Haskell-cafe] parallel and distributed haskell?

2009-12-16 Thread Don Stewart
bulat.ziganshin: > Hello Scott, > > Wednesday, December 16, 2009, 10:21:51 PM, you wrote: > > > Can anyone involved give a quick overview (or pointers to one)? > > GHC has great support for SMP systems. there is further work on > parallel libraries and i believe that it was main part of HackPar.

Re: [Haskell-cafe] parallel and distributed haskell?

2009-12-16 Thread Don Stewart
tswaterman: > > It looks like there was a recent hackathon focusing on implementing > distributed haskell. > http://hackage.haskell.org/trac/ghc/wiki/HackPar > > I feel there is quite a bit of latent interest in the subject here, > but relatively little active development (compared to erlang, c

Re: Re[6]: [Haskell-cafe] Boxed Mutable Arrays

2009-12-16 Thread Don Stewart
brad.larsen: > On Tue, Dec 15, 2009 at 11:33 AM, Serguey Zefirov wrote: > >>> If the number of buckets was fixed, one could use an array of STRefs > >>> to lists.  I believe this would avoid the bug from Ticket #650? > >> now i see what you mean. no, i mean trivial transformation. #650 says > >> a

Re: [Haskell-cafe] [ANN] text 0.7, fast Unicode text

2009-12-15 Thread Don Stewart
bos: > The new 0.7 release of the text package adds support for Unicode I/O, using > either the new locale-aware Handle code in 6.12 or a fallback on older > releases. > > Details: http://www.serpentine.com/blog/2009/12/15/ > data-text-0-7-gains-io-support/ That was ridculously fast. -- Don

Re: [Haskell-cafe] Boxed Mutable Arrays

2009-12-14 Thread Don Stewart
bulat.ziganshin: > Hello Brad, > > Tuesday, December 15, 2009, 1:55:41 AM, you wrote: > > > How about a fast STHashTable? > > you can use array of arrays instead of large array Note to minmize the issue, but we get many of the same benefits via the associated type transformation (e.g. for array

Re: [Haskell-cafe] Boxed Mutable Arrays

2009-12-14 Thread Don Stewart
brad.larsen: > The vector package on haskell has boxed arrays. Is DPH *really* only > for primitive, unboxed types? If so, that's unfortunate. No, it's not only, but all the uses I've seen have been related to numerics, represented with unboxed types. I'm just curious if you have a current use

Re: [Haskell-cafe] Boxed Mutable Arrays

2009-12-14 Thread Don Stewart
brad.larsen: > Is anyone working on fixing ticket #650 > ? In short, STArray > and the garbage collector don't play well together, resulting in array > updates being non-constant time operations. This bug makes it very > difficult/impossible to writ

Re: [Haskell-cafe] platform configure fails to find freeglut

2009-12-13 Thread Don Stewart
jgd: > BTW - is there an official bug repository for the Haskell Platoform? > I couldn't find that either, and I think it's very important! > Yes, of course there's a bug tracker, linked from: http://hackage.haskell.org/platform/ http://trac.haskell.org/haskell-platform/report/1 ___

Re: [Haskell-cafe] The Haskell Web News: December 2009 Edition

2009-12-07 Thread Don Stewart
Deniz: > I think the correct URL should be: Oops, well spotted. The original link will work now. http://haskellwebnews.wordpress.com/2009/12/05/whats-new-in-haskell-december-2009/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.h

[Haskell-cafe] The Haskell Web News: December 2009 Edition

2009-12-07 Thread Don Stewart
The Haskell Web News is a monthly summary of the hottest news about the Haskell programming language, as found in our online communities. If you want to catch up with what’s been happening in Haskell, this might be the journal for you. http://haskellwebnews.wordpress.com/2009/12/05/whats-new-

Re: [Haskell-cafe] diff implementation in haskell

2009-12-07 Thread Don Stewart
ketil: > Don Stewart writes: > > >> Are there pure haskell implementations of diff and diff3 algorithms? > > > http://hackage.haskell.org/package/Diff > > Wherein we can read: > > | This is an implementation of the O(ND) diff algorithm [...]. It is

Re: [Haskell-cafe] diff implementation in haskell

2009-12-06 Thread Don Stewart
asviraspossible: > Are there pure haskell implementations of diff and diff3 algorithms. Like: > > > data Diff a = Deleted [a] | Common [a] | Added [a] > > > > diff :: Eq a => [a] -> [a] -> [Diff a] > > > > diff3 :: Eq a => [a] -> [a] -> [a] -> [a] > There's at least one on Hackage: http://h

Re: [Haskell-cafe] Are there major inefficiencies in Haskell compared to OCaml?

2009-12-04 Thread Don Stewart
caseyh: > Are there major inefficiencies in Haskell compared to OCaml? > If so, can something be done about them? Can you be more specific? Looking at the u64q shootout: http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=ghc&lang2=ocaml&box=1 Shows the two implementations t

Re: [Haskell-cafe] Wikipedia article

2009-12-03 Thread Don Stewart
marlowsd: > As noted before, the Wikipedia article for Haskell is a disorganised mess. > > http://en.wikipedia.org/wiki/Haskell_%28programming_language%29 > > earlier this year, dons suggested reorganising it and posted a template > on the Haskell wiki: > > http://haskell.org/haskellwiki/Wikipedi

Re: [Haskell-cafe] Finding HP

2009-12-03 Thread Don Stewart
malcolm.wallace: > The suggestion was to have a single Download button, leading to a *page* > of suitably described links, allowing the user to choose whether they > only wanted the basics (a choice of compiler/interpreter + cabal), or the > whole Platform, or something else. It would be the id

Re: [Haskell-cafe] Finding HP

2009-12-03 Thread Don Stewart
vandijk.roel: > On Wed, Dec 2, 2009 at 11:44 PM, Gregory Crosswhite > wrote: > > On a more serious note, "Download Haskell" /= "Download Haskell Platform", > > so if I were glancing down the sidebar looking for a link to download the > > "Haskell Platform" then the first link wouldn't have regis

Re: [Haskell-cafe] Optimization with Strings ?

2009-12-03 Thread Don Stewart
JohnDEarle: > You may want to look into Objective CAML http://caml.inria.fr/ which is a > French product as you can see from the Internet address. It is likely better > suited to the task than Haskell and has a reputation for speed. For those who > prefer object oriented programming it has faciliti

Re: [Haskell-cafe] Finding HP

2009-12-02 Thread Don Stewart
andrewcoppin: > Today I was setting up a my new, and I wanted to put Haskell on it. > Rather than download GHC itself, I decided to install the Haskell > Platform instead, just to see what it's like. > > Much to my surprise, I couldn't actually find any reference to its > existence anywhere f

Re: [Haskell-cafe] Beginner's speed problem

2009-12-02 Thread Don Stewart
aditya87: > Hi, > > I am trying to solve this problem: https://www.spoj.pl/problems/LASTDIG/ > It is very simple. Given a and b, return the last digit of a^b. b > could be large, so I used logarithmic exponentiation and > wrote/submitted the code below for this problem: > > > ---

Re: [Haskell-cafe] Great Programs to Read?

2009-11-30 Thread Don Stewart
mlesniak: > Hello, > > In terms of > > "to become a great programmer, you need to read great programs"[1] > > what are "great" programs written in Haskell (for your personal > definition of great), which source code is freely available on hackage > or somewhere else on the net? > > I'm person

Re: [Haskell-cafe] Data.Binary and error handling

2009-11-27 Thread Don Stewart
alexey.skladnoy: > В сообщении от 27 ноября 2009 23:09:53 Don Stewart написал: > > alexey.skladnoy: > > > Hello > > > > > > Is there any plans to add error handling for binary? When it comes to > > > binary parsing most awkward part is error handlin

Re: [Haskell-cafe] Data.Binary and error handling

2009-11-27 Thread Don Stewart
alexey.skladnoy: > Hello > > Is there any plans to add error handling for binary? When it comes to > binary parsing most awkward part is error handling It is now available in the 'cereal' package. A strict binary with explicit, checked error handling.

Re: [Haskell-cafe] haskell in online contests

2009-11-27 Thread Don Stewart
bulat.ziganshin: > Hello vishnu, > > Friday, November 27, 2009, 10:41:37 PM, you wrote: > > it's just false assumption that you should got speed comparable to > other languages. haskell is lazy and ghc has much less mature compiler "comparable to other languages" eh? That seems a little too bro

Re: [Haskell-cafe] DSL in Haskell

2009-11-15 Thread Don Stewart
ck_kashyap: > Hi All, > I was reading a Ruby book and in that it was mentioned that its capability to > dynamically query and modify classes makes it suitable for implementing DSL's > ... I am referring to Ruby's reflection and methods like "method_missing" > here. > It can allow things like not h

Re: [Haskell-cafe] poor perfomance of indexU in uvector package

2009-11-15 Thread Don Stewart
alexey.skladnoy: > Hello > > This post meant to be literate haskell. > > I found that perfomace of indexU is very poor and it is not fast O(1) > operation which is very surprising. Here is some benchmarcking I've > done. Everything compiled with -O2 > You're using the streamed version when its

Re: [Haskell-cafe] Sometimes pinned memory?

2009-11-11 Thread Don Stewart
gcross: > Thanks, Don. What made me think that this might be possible was the > existence of Foreign.StablePtr, since that seems to take a Haskell > expression and pin it down. Could this mechanism be harness to pin down > arrays, or am I misunderstanding how it works? (Is StablePtr really j

Re: [Haskell-cafe] Sometimes pinned memory?

2009-11-11 Thread Don Stewart
gcross: > Hey everyone! Do you have any suggestions for how I might allocate an > aligned block of memory that I can pin while making foreign calls, but > leave unpinned the rest of the time to potentially improve allocation > and garbage collector performance? Or is this even a good idea?

Re: [Haskell-cafe] Long running Haskell program

2009-11-11 Thread Don Stewart
leimy2k: > I figured I was better off just creating a dependency in the evaluation, near > the outermost portion of the program (the loop) that would cause a strict > evaluation, and so far I was right :-) > > Program behaves very well now, and responds much better too. Do you know if Control.Mon

Re: [Haskell-cafe] help with Haskell performance

2009-11-07 Thread Don Stewart
gpnair78: > I really hope I'm missing some obvious optimization that's making it so slow > compared to the perl version, hence this email soliciting feedback. Here's my first attempt. 1.5s on a 2M line log file in the format you give. General notes: * unpack is almost always wrong. * lis

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-04 Thread Don Stewart
bulat.ziganshin: > oh, can we stop saying about shootout? if you want to see speed of > pure haskell code, look at papers about fast arrays/strings - their > authors have measured that lazy lists are hundreds times slower than > idiomatic C code. is use of lazy lists counted as mistake too and > pa

Re: [Haskell-cafe] multi-line regex

2009-11-03 Thread Don Stewart
mpm: > I have some very simple regex-matching needs, and Text.Regex.Posix will > work fine, EXCEPT I need to match multi-line patterns, and/or find all > occurrences of text that may occur several times on different lines. So I > need to turn on some kind of flag. Can someone show me how to do

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-03 Thread Don Stewart
briand: > Don, > > There is more than one indexU ? > > In Data.Array.Vector there is only 1 indexU that I can find. > > Brian > > On Nov 3, 2009, at 9:15 PM, Don Stewart wrote: > >> Well, it depends on which indexU the OP means. The one linked in the >>

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-03 Thread Don Stewart
gcross: > Oh, that's strange... the type class "UA" is defined twice, once in > Data.Array.Vector and once in Data.Array.Vector.UArr; in the first No, its exported from the former. > module indexU is a separate function with the sources I exhibited, in > the second module it is a method o

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-03 Thread Don Stewart
ok: > > On Nov 4, 2009, at 9:30 AM, Deniz Dogan wrote: >> So what's the deal with Clean? Why is it preferable to Haskell? Why is >> it not? > > (1) Speed. I'd strongly argue that speed is not a reason to use Clean -- esp. if you have more than one core: http://shootout.alioth.debian.org/u64

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-03 Thread Don Stewart
Well, it depends on which indexU the OP means. The one linked in the docs is the O(1) UA type class version. -- Don gcross: > Actually, it's not a typo. If you look at the source, what you'll see > is > > indexU arr n = indexS (streamU arr) n > > and then tracking down indexS, you'll see > > >

Re: [Haskell-cafe] Gauss Elimination -> More Clean2Haskell

2009-11-03 Thread Don Stewart
phi500ac: > import Control.Monad > import Data.Array.IO You're using boxed arrays here -- try Data.Array.Unboxed and IOUArray's ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-03 Thread Don Stewart
briand: > Really, arrays in Haskell are the most @#!$! confusing thing in the > world. > > There's a bunch of different array structures. > > I can't tell which one works best, and all I want to do is x[i] = value. > > I thought uvector was the answer, you know, fast unboxed ARRAYs. > Imagine

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-03 Thread Don Stewart
stephen.tetley: > 2009/11/3 Andrew Coppin : > > > > > As far as I can tell, Clean is to Haskell as C is to Pascal. I.e., Clean is > > notionally very similar to Haskell, but with lots of added clutter, > > complexity and general ugliness - but it's probably somehow more > > machine-efficient as a

Re: [Haskell-cafe] Hackage still down?

2009-11-02 Thread Don Stewart
magnus: > It seems to have been down for at least the better part of today. Is > it something worth worrying about? Summarising what we know: * The machine that hosts darcs.haskell.org and hackage.haskell.org, has an increasing number of uncorrectable errors on its RAID drives.

Re: [Haskell-cafe] hackage is down.

2009-11-01 Thread Don Stewart
n Sun, Nov 1, 2009 at 7:01 PM, Don Stewart wrote: > > This has been reported to the sysadmins. > > > > tphyahoo: > >> http://hackage.haskell.org > >> ___ > >> Haskell-Cafe mailing list > >> Haske

Re: [Haskell-cafe] hackage is down.

2009-11-01 Thread Don Stewart
This has been reported to the sysadmins. tphyahoo: > http://hackage.haskell.org > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Ca

Re: [Haskell-cafe] hopefully, a very quick question about ByteString lib

2009-10-27 Thread Don Stewart
duncan.coutts: > On Tue, 2009-10-27 at 17:00 +0100, Daniel Fischer wrote: > > > Look at the sources: > > > > hGetLine :: Handle -> IO ByteString > > hGetLine h = wantReadableHandle "Data.ByteString.hGetLine" h $ \ handle_ -> > > do > > case haBufferMode handle_ of > >NoBuffering -> e

[Haskell-cafe] ANNOUNCE: xmonad 0.9 is now available!

2009-10-25 Thread Don Stewart
This release brought to you by the xmonad dev team: Spencer Janssen Don Stewart Adam VogtBrent Yorgey Daniel WagnerDevin Mullins Daniel Schoepe Braden Shepherdson Nicolas PouillardRoman Cheplyaka Gwern Br

Re: [Haskell-cafe] A 3-line program that does not work

2009-10-24 Thread Don Stewart
phi500ac: > I have a friend who is an architect. I asked her why she does not use Haskell, > since she is fond of functional programming. She writes her scripts in Clean, > and needs to compile them before using them to generate postscript diagrams. > In > Haskell, I told her, she could use runghc

Re: [Haskell-cafe] What does :*: mean again?

2009-10-23 Thread Don Stewart
gue.schmidt: > Günther > Usually it is a strict product. It's just a type constructor of some sort though ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Hackage down

2009-10-19 Thread Don Stewart
sfvisser: > On Oct 19, 2009, at 12:18 PM, Ross Paterson wrote: >> On Mon, Oct 19, 2009 at 09:30:55AM +0100, Dougal Stanton wrote: >>> Has not been responding for at least the last 12 hours. >>> >>> Is there somewhere to look for status reports on sysadmin details >>> like >>> this, so we can tell

Re: [Haskell-cafe] Genuine Need For Persistent Global State?

2009-10-17 Thread Don Stewart
alangcarter: > On Fri, Oct 16, 2009 at 9:13 PM, Bryan O'Sullivan wrote: > > You don't need anything special for this. A Linux kernel "struct device" > has a "void *driver_data" member which is private for your use, and > intended for precisely this purpose. Global persistent state mak

Re: [Haskell-cafe] Genuine Need For Persistent Global State?

2009-10-16 Thread Don Stewart
StablePtrs are relatively easy to use, and have precisely the guarantees you need -- the state can be passed to C and recovered. Any use of IORefs that will scale past more than one state object will essentially duplicate the stable pointer functionality. They're a reasonable choice. -- Don jvra

Re: [Haskell-cafe] Genuine Need For Persistent Global State?

2009-10-16 Thread Don Stewart
alangcarter: > 1) Am I right in thinking that I have a genuine need for global, persistent > state? > 2) Halfs works. Am I right in thinking it has (somehow) solved this problem? > 3) Is there a simple way to maintain global persistent state that I can stash > between calls into a function, and acc

Re: [Haskell-cafe] GHC devs

2009-10-14 Thread Don Stewart
bulat.ziganshin: > Hello Andrew, > > Thursday, October 15, 2009, 12:54:37 AM, you wrote: > > > Does anybody actually "get paid" to develop GHC? Or is this all people > > SPJ, SM and Ian are paid by MS Research. Other people involved in core > development are mainly scientists (afaik) Besides MS

Re: [Haskell-cafe] GHC devs

2009-10-14 Thread Don Stewart
bulat.ziganshin: > Hello Andrew, > > Wednesday, October 14, 2009, 10:28:45 PM, you wrote: > > > I had always *assumed* that there was something like a hundred core > > developers > > only 10 and only in binary system :))) > > Simon Peyton-Jones works on "front-end", i.e compiling Haskell down t

Fwd: [Haskell-cafe] Haskell for Physicists

2009-10-13 Thread Don Stewart
Hey all, Following up on this, I'm presenting a position paper tomorrow on the use of EDSLs to improve productivity and lower cost when developing code for new high performance architectures (like GPUs). http://www.galois.com/blog/2009/10/13/domain-specific-languages-for-domain-specific-prob

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-10 Thread Don Stewart
brad.larsen: > On Sat, Oct 10, 2009 at 5:11 PM, Don Stewart wrote: > > brad.larsen: > >> John, > >> > >> On Thu, Oct 8, 2009 at 3:20 PM, John A. De Goes wrote: > >> [...] > >> > JVM is cross-platform, and contains sufficient typing

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-10 Thread Don Stewart
brad.larsen: > John, > > On Thu, Oct 8, 2009 at 3:20 PM, John A. De Goes wrote: > [...] > > JVM is cross-platform, and contains sufficient typing information to > > permit one to write something like, "import foreign jvm > > java.list.Collection", and have typed access to the whole class and all

Re: [Haskell-cafe] Any example of concurrent haskell application?

2009-10-08 Thread Don Stewart
dmehrtash: > I am trying to learn more about concurrent applications in Haskell by studying > an existing a real application source code. I would very much appreciate if > you can recommend an application that you feel has done a good job in > implementing a real time application in Haskell. >

<    1   2   3   4   5   6   7   8   9   10   >