Re: [Haskell-cafe] ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Khudyakov Alexey
В сообщении от Суббота 12 сентября 2009 18:46:28 автор Xiao-Yong Jin написал: I believe most of the linux distributions do not have `lapack.pc', if you install certain implementation of lapack like the one provided by netlib.org, or the one with `ATLAS', or the one provided by intel mkl. So,

Re: [Haskell-cafe] ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Khudyakov Alexey
В сообщении от Понедельник 14 сентября 2009 12:41:29 вы написали: If pkgconfig-depends lines is removed from cabal file it builds fine. But any program which uses levmar fails to link ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Roel van Dijk
On Mon, Sep 14, 2009 at 10:50 AM, Khudyakov Alexey alexey.sklad...@gmail.com wrote: В сообщении от Понедельник 14 сентября 2009 12:41:29 вы написали: If pkgconfig-depends lines is removed from cabal file it builds fine. But any program which uses levmar fails to link Would adding

Re: [Haskell-cafe] Community.haskell.org is down

2009-09-14 Thread Malcolm Wallace
I assume this is the same as code.haskell.org, which is also down? Yes, code.h.o and community.h.o run on the same virtual machine. a WHOIS gives the Yale University Comp. Sci. Dept. Haskell Group as the registrant, maybe someone over there needs to take a look? Yale looks after the DNS

Re: [Haskell-cafe] ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Roel van Dijk
2009/9/14 Khudyakov Alexey alexey.sklad...@gmail.com: В сообщении от Понедельник 14 сентября 2009 12:59:24 автор Roel van Dijk написал: Would adding   extra-libraries: lapack to the cabal file instead of   pkgconfig-depends: lapack be a better solution? Yes. It works this way. Tested in

Re: [Haskell-cafe] Plotting parametric functions in Haskell

2009-09-14 Thread Peter Verswyvelen
I did that once a long time ago using GTK2HS; but I don't have that code anymore I think, it was a quick hack anyway. Doing a search for plot on Hackage revealed http://hackage.haskell.org/package/Chart http://hackage.haskell.org/package/gnuplot Maybe that helps. On Mon, Sep 14, 2009 at 4:42

Re: [Haskell-cafe] ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Khudyakov Alexey
В сообщении от 14 сентября 2009 13:28:33 автор Roel van Dijk написал: Thank you for testing. I have just released bindings-levmar-0.1.0.1 on hackage. It simply replaces pkgconfig-depends with extra-libraries. I hope this solves the installation problems. Yes. Now it installs fine.

Re: [Haskell-cafe] Plotting parametric functions in Haskell

2009-09-14 Thread Henning Thielemann
On Sun, 13 Sep 2009, Rafael Cunha de Almeida wrote: Hello, I think it would be interesting to plot and visualize parametric (and other kind of functions) using the haskell language to define them [functions]. Does anyone know about some software or API that does just that? I started writing a

Re: [Haskell-cafe] ANNOUNCE: LambdaINet-0.1.0, Graphical Interaction Net Evaluator for Optimal Evaluation

2009-09-14 Thread Bas van Dijk
On Mon, Sep 14, 2009 at 7:36 AM, Paul L nine...@gmail.com wrote: It's available on Hackage DB at http://hackage.haskell.org/package/LambdaINet Nice! Screenshots anywhere? Bas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Plotting parametric functions in Haskell

2009-09-14 Thread Rafael Almeida
On Mon, Sep 14, 2009 at 6:37 AM, Peter Verswyvelen bugf...@gmail.com wrote: I did that once a long time ago using GTK2HS; but I don't have that code anymore I think, it was a quick hack anyway. Doing a search for plot on Hackage revealed http://hackage.haskell.org/package/Chart

[Haskell-cafe] Program with ByteStrings leads to memory exhaust.

2009-09-14 Thread Grigory Sarnitskiy
I have a simple program that first generates a large (~ 500 mb) file of random numbers and then reads the numbers back to find their sum. It uses Data.Binary and Data.ByteString.Lazy. The problem is when the program tries to read the data back it quickly (really quickly) consumes all memory.

Re: [Haskell-cafe] Program with ByteStrings leads to memory exhaust.

2009-09-14 Thread Nicolas Pouillard
Excerpts from Grigory Sarnitskiy's message of Mon Sep 14 16:05:41 +0200 2009: I have a simple program that first generates a large (~ 500 mb) file of random numbers and then reads the numbers back to find their sum. It uses Data.Binary and Data.ByteString.Lazy. I do think that this is due to

[Haskell-cafe] Re: ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Maurí­cio CA
Unless you think that extra-libraries is a good long term solution, I'll still investigate on how to add pkg-config generation to configuration scripts and try to send a sugestion with a patch to maintainers of libraries wrapped in bindings-*. It is not practical to use pkg-config for such

Re: [Haskell-cafe] Re: ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Xiao-Yong Jin
Maurí­cio CA mauricio.antu...@gmail.com writes: Yes. It works this way. Tested in debian and old fedora Thank you for testing. I have just released bindings-levmar-0.1.0.1 on hackage. It simply replaces pkgconfig-depends with extra-libraries. I hope this solves the installation problems.

[Haskell-cafe] Re: ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Maurí­cio CA
Yes. It works this way. Tested in debian and old fedora Thank you for testing. I have just released bindings-levmar-0.1.0.1 on hackage. It simply replaces pkgconfig-depends with extra-libraries. I hope this solves the installation problems. Debian maintainer was willing to add pkg-config to

[Haskell-cafe] Building a monoid, continuation-passing style

2009-09-14 Thread Martijn van Steenbergen
Hello cafe, Inspired by Sean Leather's xformat package [1] I built a datatype with which you can build a monoid with holes, yielding a function type to fill in these holes, continuation-passing style. Here are some primitives and their types: now :: m - ContSt m r r later :: (a - m) -

Solved: [Was: Re: [Haskell-cafe] Program with ByteStrings leads to memory exhaust]

2009-09-14 Thread Don Stewart
sargrigory: I have a simple program that first generates a large (~ 500 mb) file of random numbers and then reads the numbers back to find their sum. It uses Data.Binary and Data.ByteString.Lazy. The problem is when the program tries to read the data back it quickly (really quickly)

Re: Solved: [Was: Re: [Haskell-cafe] Program with ByteStrings leads to memory exhaust]

2009-09-14 Thread Grigory Sarnitskiy
I have tweaked this program a few ways for you. The big mistake (and why it runs out of space) is that you take ByteString.Lazy.length to compute the block size. This forces the entire file into memory -- so no benefits of lazy IO. As a separate matter, calling 'appendFile . encode'

Re: [Haskell-cafe] why these two are not equivalent?

2009-09-14 Thread Diego Souza
On Sun, Sep 13, 2009 at 09:57:50PM -0700, Iavor Diatchki wrote: (argh, sorry about that, I pressed something and gmail sent my unfinished email!) On Sun, Sep 13, 2009 at 9:54 PM, Iavor Diatchki iavor.diatc...@gmail.com wrote: Hi, It seems that the problem is the site is using GHC 6.6.1,

[Haskell-cafe] ANNOUNCE: hssqlppp, sql parser and type checker, pre-alpha

2009-09-14 Thread Jake Wheat
Hello all, I've started on a SQL parser and type checker, which I'm currently planning on evolving into a lint-type program for PL/pgSQL, called HsSqlPpp. It currently parses a subset of PostGreSQL SQL and PL/pgSQL, can type check some select, insert, update, delete and create statements, and is

Re: [Haskell-cafe] ANNOUNCE: hssqlppp, sql parser and type checker, pre-alpha

2009-09-14 Thread Don Stewart
jakewheatmail: Hello all, I've started on a SQL parser and type checker, which I'm currently planning on evolving into a lint-type program for PL/pgSQL, called HsSqlPpp. It currently parses a subset of PostGreSQL SQL and PL/pgSQL, can type check some select, insert, update, delete and

Re: [Haskell-cafe] ANNOUNCE: hssqlppp, sql parser and type checker, pre-alpha

2009-09-14 Thread John Van Enk
Second the hackage suggestion. `cabal unpack [package name]` is a really nice way to grab sources. On Mon, Sep 14, 2009 at 1:59 PM, Don Stewart d...@galois.com wrote: jakewheatmail: Hello all, I've started on a SQL parser and type checker, which I'm currently planning on evolving into

RE: [Haskell-cafe] Cabal install on Windows 7

2009-09-14 Thread Duncan Coutts
On Thu, 2009-09-10 at 15:18 +0200, Regis Saint-Paul wrote: One way in which cabal can be made UAC aware (and therefore request for elevation privileges instead of just failing) would be to embed a manifest in the cabal.exe. This can be done by changing the default manifest (an XML file) that

Re: [Haskell-cafe] Can't install chp (confused by cabal yet again)

2009-09-14 Thread Michael Steele
You got the original error because cabal chose to use base-3 when compiling chp, and then identifiers found only in base-4 were referenced. Download the cabal package, and edit chp.cabal so that it depends on base = 4. On Sat, Jun 6, 2009 at 7:00 AM, Colin Paul Adams

[Haskell-cafe] Coercion from a Word32/64 to a Float/Double

2009-09-14 Thread minh thu
Hi, I'd like to know if this should work: -- GHC coercion getFloat :: BHeader - Get Float getFloat h = case endianness h of LittleEndian - fmap (coerce . fromIntegral) getWord32le BigEndian - fmap (coerce . fromIntegral) getWord32be where coerce (I32# x) = F# (unsafeCoerce# x) --

Re: [Haskell-cafe] Re: ANNOUNCE: A Levenberg-Marquardt implementation

2009-09-14 Thread Xiao-Yong Jin
Maurí­cio CA mauricio.antu...@gmail.com writes: That's been said, it is still your package. And people can always change the build scripts for their own needs. Not actually! I didn't work on bindings-levmar. I'm just the guy who started the idea of having low level bindings packages as

Re: [Haskell-cafe] Coercion from a Word32/64 to a Float/Double

2009-09-14 Thread John Millikin
If you don't mind a small performance penalty, have you considered using my library data-binary-ieee754? It contains functions for parsing floats and doubles within the Get monad. On Mon, Sep 14, 2009 at 12:24, minh thu not...@gmail.com wrote: Hi, I'd like to know if this should work: -- GHC

Re: [Haskell-cafe] Haskell#? F#?

2009-09-14 Thread Don Stewart
caseyh: The other morning, someone was telling me they had converted most of their VB financial/stock market code to F#. Whereas VB only used one core, the F# code used all four cores. In one software developers meeting, someone was saying that since database work is mostly all state, he

Re: [Haskell-cafe] Coercion from a Word32/64 to a Float/Double

2009-09-14 Thread minh thu
Hi, Yes I did but since I saw that 'solution', I wanted to try it. There is something that bothers me with your library: its licence. Reading a float shouldn't force me to go GPL (I makes an utility to read Blender files and like to make it BSD3). Thanks for pointing it though. Cheers, Thu

Re: [Haskell-cafe] Native windowing for glut applications on OS X.

2009-09-14 Thread Lyndon Maydwell
I just upgraded ghc to 6.10.4 and the problem seems to have fixed itself :) On Tue, Sep 8, 2009 at 11:34 AM, Lyndon Maydwell maydw...@gmail.com wrote: I just realized that I only replied to Brandon. Sorry about that :) -- Forwarded message -- From: Lyndon Maydwell

Re: [Haskell-cafe] Coercion from a Word32/64 to a Float/Double

2009-09-14 Thread Judah Jacobson
On Mon, Sep 14, 2009 at 12:24 PM, minh thu not...@gmail.com wrote: Hi, I'd like to know if this should work: -- GHC coercion getFloat :: BHeader - Get Float getFloat h =  case endianness h of    LittleEndian - fmap (coerce . fromIntegral) getWord32le    BigEndian - fmap (coerce .

Re: [Haskell-cafe] Coercion from a Word32/64 to a Float/Double

2009-09-14 Thread minh thu
2009/9/14 Judah Jacobson judah.jacob...@gmail.com: On Mon, Sep 14, 2009 at 12:24 PM, minh thu not...@gmail.com wrote: Hi, I'd like to know if this should work: -- GHC coercion getFloat :: BHeader - Get Float getFloat h = case endianness h of LittleEndian - fmap (coerce .

Re: [Haskell-cafe] ANNOUNCE: hssqlppp, sql parser and type checker, pre-alpha

2009-09-14 Thread Jake Wheat
I've uploaded the code to Hackage, you can install it with: cabal install hssqlppp or you can get the source using cabal unpack hssqlppp 2009/9/14 John Van Enk vane...@gmail.com: Second the hackage suggestion. `cabal unpack [package name]` is a really nice way to grab sources. On Mon, Sep

Re: [Haskell-cafe] Haskell#? F#?

2009-09-14 Thread Khudyakov Alexey
В сообщении от Вторник 15 сентября 2009 00:15:10 автор Don Stewart написал: State /= Imperative Programming Yup, it's anarchy at times... ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] algebra/grammar/language for expressing time intervals

2009-09-14 Thread Jeremy Shaw
Hello, I need some cron-like functionality for long running daemon written in Haskell. I want to be able to schedule an event to be run: 1. once, at a specific time 2. some regularly scheduled time I don't see an existing library to do this, so I am starting work on my own. The

Re: [Haskell-cafe] Can't install chp (confused by cabal yet again)

2009-09-14 Thread Duncan Coutts
On Mon, 2009-09-14 at 12:05 -0700, Michael Steele wrote: You got the original error because cabal chose to use base-3 when compiling chp, and then identifiers found only in base-4 were referenced. Download the cabal package, and edit chp.cabal so that it depends on base = 4. Or as

Re: [Haskell-cafe] trouble compiling Crypto-4.2.0 / trouble with cabal

2009-09-14 Thread Duncan Coutts
On Sun, 2009-09-13 at 19:54 +0200, mf-hcafe-15c311...@etc-network.de wrote: Hi, Cabal is still fighting me all the time. Its latest move is to be oblivious of some of the installed packages: For future reference:

Re: [Haskell-cafe] Announce: EnumMap-0.0.1

2009-09-14 Thread Felipe Lessa
On Wed, Aug 12, 2009 at 01:03:55PM -0400, John Van Enk wrote: EnumMap silently passes this responsibility to the user, without even a note in the documentation. Like I've said, I made no modifications to the documentation other than replacing IntMap with EnumMap. Should the community show

Re: [Haskell-cafe] ANNOUNCE: LambdaINet-0.1.0, Graphical Interaction Net Evaluator for Optimal Evaluation

2009-09-14 Thread Paul L
I just bumped the version to 0.1.1 that fixes an embarrassing bug, i.e., the first example shown on the screen was actually wrong. I took a screenshot of the interaction net showing (church 2) f x, i.e., (\f x - f (f x)) f x together with on-screen help messages. It is the first example right

Re: [Haskell-cafe] Announce: EnumMap-0.0.1

2009-09-14 Thread John Van Enk
I'll hunt down those changes and push something new to hackage. :) On Mon, Sep 14, 2009 at 12:27 PM, Felipe Lessa felipe.le...@gmail.comwrote: On Wed, Aug 12, 2009 at 01:03:55PM -0400, John Van Enk wrote: EnumMap silently passes this responsibility to the user, without even a note in the

Re: [Haskell-cafe] Announce: EnumMap-0.0.1

2009-09-14 Thread John Van Enk
http://hackage.haskell.org/package/EnumMap Changes pushed. Job Vranish added the SPECIALIZE pragmas, and I believe he has more data concerning how much this helps. Note, the git repo is here: http://github.com/sw17ch/EnumMap /jve On Mon, Sep 14, 2009 at 12:27 PM, Felipe Lessa