Re: [Haskell-cafe] Haskell's "currying" versus Business Objects Gem Cutter's "burning"

2007-07-03 Thread Salvatore Insalaco
2007/7/3, peterv <[EMAIL PROTECTED]>: In Haskell, currying can only be done on the last (rightmost) function arguments. You can use "flip". E.g. if you have foo x y, and you want use "foo ? y" in a map, you can just write: map (flip foo y) xs Salvatore __

Re: [Haskell-cafe] can't build hIDE

2007-07-16 Thread Salvatore Insalaco
src/Hide/Plugin/LoaderMidLevel.hs:126:26: Not in scope: `moduleFS' hIDE uses low-level GHC APIs to do some of its tricks. Unfortunately, GHC APIs change faster than hIDE, so the last version of hIDE is not compatible with GHC 6.6. As far as I know, in GHC 6.6 moduleFS has been renamed module

Re: [Haskell-cafe] GHC 6.6.1: Where is Graphics.SOE ?

2007-07-18 Thread Salvatore Insalaco
I think that it's simply a buildfile error, that requires X11 even if you are on windows. The problem is that the building process requires running a configure script, so it requires a cygwin environment under windows. If you need HGL only for "educational" purposes, I strongly suggest you to dow

Re: [Haskell-cafe] Speedy parsing

2007-07-20 Thread Salvatore Insalaco
2007/7/20, Tillmann Rendel <[EMAIL PROTECTED]>: Re, Joseph (IT) wrote: > At this point I'm out of ideas, so I was hoping someone could identify > something stupid I've done (I'm still novice of FP in general, let alone > for high performance) or direct me to a guide,website,paper,library, or > so

[Haskell-cafe] Handling custom types in Takusen

2007-07-27 Thread Salvatore Insalaco
fying Takusen Sqlite backend? Salvatore Insalaco ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Handling custom types in Takusen

2007-07-27 Thread Salvatore Insalaco
2007/7/27, Bayley, Alistair <[EMAIL PROTECTED]>: > > Also, in Sqlite 3.4, they introduced new functions for incremental > > reading / writing of Blobs. I could use them in the future. > > Seems reasonable. I recall Oleg saying something privately a while ago > about an API for large objects. He may

Re: [Haskell-cafe] Handling custom types in Takusen

2007-07-27 Thread Salvatore Insalaco
2007/7/27, Bayley, Alistair <[EMAIL PROTECTED]>: > It was my intention to do it the other way around: marshall blob to Ptr > (), and then you can cast this to a Ptr CChar. Obviously you'd need to > retain the size information, so a blob basically becomes a (Ptr (), Int) > pair, just like a CStringL

Re: [Haskell-cafe] Handling custom types in Takusen

2007-07-27 Thread Salvatore Insalaco
ew functions for incremental reading / writing of Blobs. I could use them in the future. Thank you a lot for helping! I'll surely send you the patches, even if the PackedString support will be a little Darcs-specific (I don't think that requiring it for compilin

Re: [Haskell-cafe] problems installing Takusen-0.6

2007-07-28 Thread Salvatore Insalaco
2007/7/29, Rahul Kapoor <[EMAIL PROTECTED]>: > I am having problems installing Takusen-0.6 (ghc 6.6.1 on FreeBSD) > > The configure and build works fine. running ./setup install fails with: > > Installing: /usr/local/lib/Takusen-0.6/ghc-6.6.1 & /usr/local/bin > Takusen-0.6... > setup: Error: Could

Re: [Haskell-cafe] GHC doesn't work

2007-10-04 Thread Salvatore Insalaco
2007/10/3, Andrew Coppin <[EMAIL PROTECTED]>: > The entry point OpenThread could not be found in KERNEL32.dll. Are you using NT 4? Probably GHC 6.6.1 dropped support for it (or maybe the binary you downloaded was compiled without the support for it), as this error message means more or less "you

Re: [Haskell-cafe] Consensus about databases / serialization

2008-01-02 Thread Salvatore Insalaco
> ·regarding Haskell and databases, the page > http://haskell.org/haskellwiki/Libraries_and_tools/Database_interfaces > describes a few, but which are the ones that are stable and practical? Any > user experiences? During my experiments I found Takusen (http://darcs.haskell.org/takusen/) a

Re: [Haskell-cafe] ANN: darcs 2.3.0

2009-07-24 Thread Salvatore Insalaco
Great! Just a little note: MSYS isn't required to install Darcs with cabal on Windows, just to develop or run tests. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] I read somewhere that for 90% of a wide class of computing problems, you only need 10% of the source code in Haskell, that you would in an imperative language.

2009-09-30 Thread Salvatore Insalaco
On Wed, Sep 30, 2009 at 9:32 AM, Andrew Coppin wrote: > I might also point out that 90% of all desktop computers run Windows, and > yet every single C library binding on Hackage fails to compile on Windows. > That really needs to be fixed. (Not to mention some of the standard I/O > functions doing

Re: [Haskell-cafe] Performance: MD5

2008-05-19 Thread Salvatore Insalaco
2008/5/18 Andrew Coppin <[EMAIL PROTECTED]>: >> unsafeRead/Write >> > > Found in Data.Array.Base, apparently. (I managed to find an example in the > Gtk2hs "fastdraw" demo.) > > Oddly, this seems to make virtually no performance difference. I find this > highly surprising. But then, I perform 16 wr

[Haskell-cafe] MD5 performance optimizations, and GHC -via-C producing segfaulting binary

2008-05-20 Thread Salvatore Insalaco
2008/5/17 Andrew Coppin <[EMAIL PROTECTED]>: > Hi folks. > > OK, try this: > > darcs get http://darcs.orphi.me.uk/MyMD5 > cd MyMD5 > ghc -O2 --make md5sum > md5sum I've got some time to take a look at the code. It's very nice, readable and declarative, but obviously not optimized for "raw spe

Re: [Haskell-cafe] MD5 performance optimizations, and GHC -via-C producing segfaulting binary

2008-05-20 Thread Salvatore Insalaco
2008/5/20 Don Stewart <[EMAIL PROTECTED]>: >> >> Probably compiling with -fvia-C could help even more, but strangely: >> >> [roxas:~/Desktop/test2/MyMD5] kirby% ghc -fvia-C -funbox-strict-fields >> -O2 --make md5sum.hs >> [roxas:~/Desktop/test2/MyMD5] kirby% time ./md5sum ../../jboss-4.2.2.GA.zip >

Re: [Haskell-cafe] Re: MD5 performance optimizations, and GHC -via-C producing segfaulting binary

2008-05-20 Thread Salvatore Insalaco
2008/5/20 Andrew Coppin <[EMAIL PROTECTED]>: > Ah, so *that's* what bang patterns do? Exactly. If you have a pattern (even a simple one like 'n'), and you prefix it with a bang (!), the function will force its evaluation. >> 2) make_block_bs is sub-optimal, and very critical to performance. > > Y

Re: [Haskell-cafe] MD5 performance optimizations

2008-05-21 Thread Salvatore Insalaco
2008/5/21 Andrew Coppin <[EMAIL PROTECTED]>: > Woo! > > Salvatore kindly sent me a Darcs patch, and applying it does indeed make it > run faster. Yay! Hi Andrew, I'm glad that -fvia-c works for you: maybe it's a Mac OS X specific bug? Anyway, did you compile with -fvia-c -optc-O3? I expect regist

Re: [Haskell-cafe] relational data representation in memory using haskell?

2008-05-21 Thread Salvatore Insalaco
2008/5/22 Marc Weber <[EMAIL PROTECTED]>: > I'd like to illustrate two different ideas using a small example: > (A) >data CD = CD { title :: String, tracks :: [ Track ] } >data Track = Track { track :: String, cd :: CD } >data PDB = PDB { cds :: Set CD, tracks :: Set Track }

Re: [Haskell-cafe] relational data representation in memory using haskell?

2008-05-22 Thread Salvatore Insalaco
> Consider > > let x = Cd ... > forkIO $ ( do something with x } -- (1) > print x -- (2) > > How can ghc know when running line (2) that (1) hasen't changed the > record? I see two solutions: > a) give the forked process a copy (Then my design will collapse) > but this is expensive to copy data w

Re: [Haskell-cafe] relational data representation in memory using haskell?

2008-05-22 Thread Salvatore Insalaco
2008/5/22 Marc Weber <[EMAIL PROTECTED]>: > So in haskell it would look like this: >let updatedCd = 0x22 CD (0x6 "My song") (0x20 ( 0x23 : ...) >updatedTrack = 0x23 Track ( 0x21 "updated track title" ) 0x22 >in (0x27) DB (0x24 (updatedCd:otherCds)) (0x25 > (updatedTra

Re: [Haskell-cafe] Type Coercion

2008-05-28 Thread Salvatore Insalaco
2008/5/28 PR Stanley <[EMAIL PROTECTED]>: > Hi > (16 :: Float) is a perfectly legitimate statement although I'm surprised > that it's allowed in a type strong language such as Haskell. It's a bit like > casting in good old C. What's going on here? Don't worry: it's not a cast. Numeric constants li