Re: [Haskell-cafe] g++ std:map vs GHC IntMap

2009-04-04 Thread Peter Verswyvelen
So how does F# IntMap version compares to Haskell's IntMap? On Sat, Apr 4, 2009 at 2:58 PM, Peter Verswyvelen bugf...@gmail.com wrote: On Sat, Apr 4, 2009 at 12:42 PM, Jon Harrop j...@ffconsultancy.com wrote: For comparison: Haskell hash table: 44s Haskell map: 7s F# hash table

Re: [Haskell-cafe] How to get glyph outline from ttf font.

2009-04-04 Thread Peter Verswyvelen
A Haskell binding to Freetype2 is indeed missing. Would be nice to have. On Sat, Apr 4, 2009 at 4:08 PM, Jeff Heard jefferson.r.he...@gmail.comwrote: Yes, the FTGL library, but it uses FTGL on the backend and not freetype directly. You might be able to get the flyph shapes from Pango... On

Re: [Haskell-cafe] ANN: logfloat 0.12.0.1

2009-04-04 Thread Peter Verswyvelen
Indeed. I recommend upgrading to GHC 6.10.2, all the weird floating point FFI bugs I encountered with GHC 6.10.1 seem to be resolved now. On Sat, Apr 4, 2009 at 12:10 PM, Bulat Ziganshin bulat.zigans...@gmail.comwrote: Hello wren, Saturday, April 4, 2009, 2:51:39 AM, you wrote: On GHC 6.10

Re: [Haskell-cafe] ANN: logfloat 0.12.0.1

2009-04-04 Thread Peter Verswyvelen
Indeed. I recommend upgrading to GHC 6.10.2, all the weird floating point FFI bugs I encountered with GHC 6.10.1 seem to be resolved now. On Sat, Apr 4, 2009 at 12:10 PM, Bulat Ziganshin bulat.zigans...@gmail.comwrote: Hello wren, Saturday, April 4, 2009, 2:51:39 AM, you wrote: On GHC 6.10

Re: [Haskell-cafe] ANN: logfloat 0.12.0.1

2009-04-04 Thread Peter Verswyvelen
Indeed. I recommend upgrading to GHC 6.10.2, all the weird floating point FFI bugs I encountered with GHC 6.10.1 seem to be resolved now. On Sat, Apr 4, 2009 at 12:10 PM, Bulat Ziganshin bulat.zigans...@gmail.comwrote: Hello wren, Saturday, April 4, 2009, 2:51:39 AM, you wrote: On GHC 6.10

Re: [Haskell-cafe] high probability of installation problems and quality of the glorious implementation

2009-04-05 Thread Peter Verswyvelen
That is strange, I'm using Ubuntu myself, and I come from Windows so know absolutely nothing about Linux whatsoever, but GHC 6.10.2 binary installed without problems. But anyway, in this case, if you're on Windows, installation of GHC works like a charm: download, install, play. But for most of

[Haskell-cafe] GHC accepts libraries compiled with Visual Studio?

2009-04-06 Thread Peter Verswyvelen
To my surprise GHC seems to accept .lib files (produced by e.g. Visual Studio on Windows) directly; I don't need to convert these to .a files using e.g. reimp That's really cool. Is this by design or did I miss something? The manual does not seem to mention this.

Re: [Haskell-cafe] threadDelay granularity

2009-04-07 Thread Peter Verswyvelen
I think this is an RTS option. http://www.haskell.org/ghc/docs/latest/html/users_guide/using-concurrent.html On Tue, Apr 7, 2009 at 1:41 PM, Ulrik Rasmussen hask...@utr.dk wrote: Hello. I am writing a simple game in Haskell as an exercise, and in the rendering loop I want to cap the

Re: [Haskell-cafe] threadDelay granularity

2009-04-07 Thread Peter Verswyvelen
Do you want to cap the rendering framerate at 60FPS or the animation framerate? Because when you use OpenGL and GLFW, you can just GLFW.swapInterval $= 1 to cap the rendering framerate at the refresh rate of your monitor or LCD screen (usually 60Hz) On Tue, Apr 7, 2009 at 1:41 PM, Ulrik

Re: [Haskell-cafe] threadDelay granularity

2009-04-07 Thread Peter Verswyvelen
: On Tue, Apr 07, 2009 at 04:34:22PM +0200, Peter Verswyvelen wrote: Do you want to cap the rendering framerate at 60FPS or the animation framerate? Because when you use OpenGL and GLFW, you can just GLFW.swapInterval $= 1 to cap the rendering framerate at the refresh rate of your monitor

Re: [Haskell-cafe] ANN: Elerea, another FRP library

2009-04-14 Thread Peter Verswyvelen
I will test it on a couple of machines, desktops and laptops. I think the problem was my laptop going into power safe mode or something, since sometimes it runs smooth, sometimes it doesn't. This could indeed be a problem with GLFW's time attribute on windows (which uses the CPU tick frequency

Re: [Haskell-cafe] ANN: Elerea, another FRP library

2009-04-14 Thread Peter Verswyvelen
Ouch, I did not see Wolfgang's email nor your reply, sorry for the noise (which I'm doing again with this email ;-) On Tue, Apr 14, 2009 at 11:01 PM, Peter Verswyvelen bugf...@gmail.comwrote: I will test it on a couple of machines, desktops and laptops. I think the problem was my laptop going

Re: win64 ghc version Re[4]: [Haskell-cafe] GHC needs a 64 bit machine to be fast?

2009-04-14 Thread Peter Verswyvelen
I will add myself a million times then :-) On Tue, Apr 14, 2009 at 5:25 PM, Bulat Ziganshin bulat.zigans...@gmail.comwrote: Hello Peter, Wednesday, April 8, 2009, 2:42:24 PM, you wrote: if you need win64 ghc version - add yourself to CC list of

Re: [Haskell-cafe] ANN: Elerea, another FRP library

2009-04-15 Thread Peter Verswyvelen
Well, a breakout game does *not* work (yet) in most other FRP implementations except Yampa, which do have firm theoretical foundations :-) 2009/4/15 Patai Gergely patai_gerg...@fastmail.fm I don't think using dirty tricks to implement FRP deserves flak, at all, from my POV, it sounds like

Re: [Haskell-cafe] Re: Maybe off-topic -- Writing contracts or software specifications

2009-04-15 Thread Peter Verswyvelen
There's one sentence I remember from some Extreme Programming books I read: the customer only knows what he wants when he gets it :-) On Tue, Apr 14, 2009 at 11:27 AM, Achim Schneider bars...@web.de wrote: Richard O'Keefe o...@cs.otago.ac.nz wrote: If you have a low level of trust, you'll

Re: [Haskell-cafe] ANN: Elerea, another FRP library

2009-04-15 Thread Peter Verswyvelen
I think it would be nice if we could make a reactive benchmark or something: some tiny examples that capture the essence of reactive systems, and a way to compare each solution's pros and cons. For example the plugging a space leak with an arrow papers reduces the recursive signal problem to e =

Re: [Haskell-cafe] ANN: Elerea, another FRP library

2009-04-16 Thread Peter Verswyvelen
Well, the documentation says: Use {-# NOINLINE foo #-} as a pragma on any function foo that calls unsafePerformIOfile:///C:/app/ghc-6.10.1/doc/libraries/base/System-IO-Unsafe.html#v%3AunsafePerformIO. If the call is inlined, the I/O may be performed more than once. So you claim this does not

<    2   3   4   5   6   7