Re: [Haskell-cafe] Pixel plotter

2007-10-19 Thread Brandon S. Allbery KF8NH
On Oct 19, 2007, at 15:14 , Andrew Coppin wrote: Peter Verswyvelen wrote: I find it a petty the library does not work with GHCi :-( It has to do with the threaded RTS I guess. Any hints how I could fix this? Yeah, lots of things seem to dislike running in GHCi. (I'm guessing this is to

Re: [Haskell-cafe] Pixel plotter

2007-10-19 Thread Andrew Coppin
Peter Verswyvelen wrote: Yeah I missed that too at first sight... A hint to the author: rename this into README.WIN32.txt or something :-) But I don't think the author of that library reads this mailing list? Mmm... I suppose technically somebody could submit a Darcs patch? ;-) [Darcs even

Re: [Haskell-cafe] Pixel plotter

2007-10-19 Thread Roel van Dijk
I find it a petty the library does not work with GHCi :-( It has to do with the threaded RTS I guess. Any hints how I could fix this? Not sure how useful this is, but it works for me. I have a toy project that uses OpenGL and SDL and I have no problems running it from within GHCi in Linux.

Re: [Haskell-cafe] Pixel plotter

2007-10-18 Thread Andrew Coppin
Bit Connor wrote: There should be a WIN32 file with instructions for installing on windows. Thanks. I didn't spot that... ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Pixel plotter

2007-10-17 Thread Andrew Coppin
http://darcs.haskell.org/~lemmih/hsSDL/ http://darcs.haskell.org/%7Elemmih/hsSDL/ How do I use this? I've seen instructions floating around somewhere that if a library has a Setup.hs, you're supposed to do runhaskell Setup configure runhaskell Setup build runhaskell Setup install

Re: [Haskell-cafe] Pixel plotter

2007-10-17 Thread Bit Connor
There should be a WIN32 file with instructions for installing on windows. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Pixel plotter

2007-10-14 Thread Andrew Coppin
I write a lot of programs that build bitmapped images. (Some of you may remember the Chaos Pendulum Simulator...) Currently, all of these programs work by writing the final image data to a PPM file on disk. (Because that's the only way I can figure out to do something *useful* with the data!)

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread Jon Harrop
On Sunday 14 October 2007 13:31:56 Andrew Coppin wrote: PS. I've investigated existing APIs and I'm not seeing anything that looks useful. Lots of support for drawing lines and arcs and so on, but not for plotting individual pixels. I highly recommend OpenGL. Even if you are just filling

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread Andrew Coppin
Jon Harrop wrote: On Sunday 14 October 2007 13:31:56 Andrew Coppin wrote: PS. I've investigated existing APIs and I'm not seeing anything that looks useful. Lots of support for drawing lines and arcs and so on, but not for plotting individual pixels. I highly recommend OpenGL. Even if

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread nornagon
On 14/10/2007, Andrew Coppin [EMAIL PROTECTED] wrote: Jon Harrop wrote: On Sunday 14 October 2007 13:31:56 Andrew Coppin wrote: PS. I've investigated existing APIs and I'm not seeing anything that looks useful. Lots of support for drawing lines and arcs and so on, but not for plotting

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread Roel van Dijk
I say someone binds SDL[1]. (If it hasn't been done already.) Ask and you shall receive: http://darcs.haskell.org/~lemmih/hsSDL/ I use those SDL bindings to plot pixels with OpenGL and play with 3D stuff in Haskell. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread Dan Piponi
Andrew said: Oh, and the irony of using OpenGL (an API of unimaginable complexity) just to write pixels to the screen. Isn't that kind of like using a thermonuclear device to crack a nut? Saying that using OpenGL to write pixels to the screen is like using a thermonuclear device to crack a

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread Peter Verswyvelen
Interesting! I just wanted to reply (although Andrew Coppin must have unsubscribed by now...) that I have an application that plots pixels using OpenGL (it's actually not that hard, just visit the new Haskell OpenGL page, and look at the examples given, e.g.

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread Luke Palmer
YEEESSS!! W00t11 I've been looking for that for a long time. I get so sick of glut... Thanks. Luke On 10/14/07, Roel van Dijk [EMAIL PROTECTED] wrote: I say someone binds SDL[1]. (If it hasn't been done already.) Ask and you shall receive: http://darcs.haskell.org/~lemmih/hsSDL/ I

Re: [Haskell-cafe] Pixel plotter

2007-10-14 Thread Tim Docker
Andrew Coppin: As far as I know, all of this is *possible* with Gtk2hs right now - it's just vastly more complex than making a single function call. So what I'd like to do is write a small library which will enable me to do each of the above tasks in 1 function call. However, I'm getting