[Haskell-cafe] Monte Carlo Pi calculation (newbie learnings)

2007-11-05 Thread Alex Young
Hi all, I'm new to Haskell, and don't quite understand how IO and lazy evaluation work together yet. In order to improve my understanding, I thought I'd try to knock together a translation of a fairly simple problem I can code up in C, that of calculating pi by throwing random numbers

[Haskell-cafe] c2hs on Windows?

2007-11-11 Thread Alex Young
Hi all, Does anyone know if c2hs should be working on Windows? I'm trying to build it under ghc 6.8.0, but this happens: C:\Users\Alex\Documents\Plugins\c2hs\c2hs-0.15.0runghc Setup.hs configure Configuring c2hs-0.15.0... Setup.hs: Error: Non-empty library, but empty exposed modules list.

Re: [Haskell-cafe] More problems [Tetris]

2007-11-21 Thread Alex Young
Peter Verswyvelen wrote: No GLUT is not bundled with GHC 6.8.1 anymore. Yes, that is weird. It was bundled with GHC 6.6.1. But installing it for GHC 6.8.1 is really easy, but you have to install msys/mingw first. This is handled in Ruby-land by having binary packages available for Windows,

Re: [Haskell-cafe] expanded standard lib

2007-11-21 Thread Alex Young
Magnus Therning wrote: On Tue, Nov 20, 2007 at 12:33:21 +, Vladimir Zlatanov wrote: Yes, those are good points. Maybe adding functionality similar to plt's planet http://planet.plt-scheme.org and http://download.plt-scheme.org/doc/371/html/mzscheme/mzscheme-Z-H-5.html#node_sec_5.4 In plt

Re: [Haskell-cafe] expanded standard lib

2007-11-21 Thread Alex Young
Magnus Therning wrote: On Wed, Nov 21, 2007 at 20:40:01 +, Alex Young wrote: Magnus Therning wrote: On Tue, Nov 20, 2007 at 12:33:21 +, Vladimir Zlatanov wrote: Yes, those are good points. Maybe adding functionality similar to plt's planet http://planet.plt-scheme.org and http

[Haskell-cafe] Re: suggestion: add a .ehs file type

2007-11-28 Thread Alex Young
Alex Jacobson wrote: My original point (refined) was that I'd like a file extension (.ehs) that defaults to including all extensions that don't change the meaning of a .hs program but that may cause a small subset of them not to compile (e.g. ones that use forall as a type variable, foreign as

Re: [Haskell-cafe] Evolutionary Computing

2008-01-25 Thread Alex Young
Dusan Kolar wrote: Hello, I don't know about math, but a practical usage seems to be in the reconfigurable hardware (FPGA). See web-page of my colleague, where is list of his papers on the topic. http://www.fit.vutbr.cz/~sekanina/pubs.php These people use GAs for optimising water networks

Re: [Haskell] Re: [Haskell-cafe] Why functional programming matters

2008-01-27 Thread Alex Young
Isaac Dupree wrote: Derek Elkins wrote: and you can have unboxed values in dynamically typed languages. really? Sure that's possible as an optimization, but I thought that to explicitly specify that would require a known static type. Or perhaps the bit-tagging by which some Scheme