Re: [Haskell-cafe] Re: Images and GUIs in Haskell

2008-06-02 Thread Yann Golanski
Quoth Achim Schneider on Sun, Jun 01, 2008 at 04:09:10 +0200
 I would go for GL(U(T)), as it's as good for 2d primitives as SDL will
 ever be, has excellent cross-platform support and allows you to go 3d
 if you want to. There's also some very decent event handling.

You can use R as well. http://www.r-project.org/

-- 
[EMAIL PROTECTED] -= H+ =- www.kierun.org
   PGP:   009D 7287 C4A7 FD4F 1680  06E4 F751 7006 9DE2 6318


pgpUxe2kMb6IX.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Images and GUIs in Haskell

2008-05-31 Thread Achim Schneider
Ronald Guida [EMAIL PROTECTED] wrote:

 Two questions:
 
 1. In a Haskell program, if all I want to do is output an image, like
 a graph or chart, what is the simplest library to use?
 
 N.B. Simpler := easier to get minimal functionality. I really don't
 want to wade through a bunch of boilerplate or climb a steep learning
 curve just to be able to plot a few lines or circles.
 
 2. Suppose I want interactivity.  For example, I want to plot a line
 graph, and then let the user click and drag the data points.  From
 what I understand about GUIs, I would need to track mouse buttons (up
 and down), mouse movements, and possibly keystrokes.  (I know this is
 the complete opposite extreme from my first question)
 
 In this case, what would be the best (not necessarily simplest)
 library to use?  What would you recommend?

http://hackage.haskell.org/packages/archive/pkg-list.html#cat:Graphics
or
Gnuplot

YMMV.

-- 
(c) this sig last receiving data processing entity. Inspect headers for
past copyright information. All rights reserved. Unauthorised copying,
hiring, renting, public performance and/or broadcasting of this
signature prohibited. 

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Images and GUIs in Haskell

2008-05-31 Thread Ronald Guida
I wrote:
 1. In a Haskell program, if all I want to do is output an image, like
 a graph or chart, what is the simplest library to use?

Achim Schneider wrote:
 http://hackage.haskell.org/packages/archive/pkg-list.html#cat:Graphics

OK, Chart (the first package under Graphics) is obviously the answer to (1).

I wrote:
 2. Suppose I want interactivity.  For example, I want to plot a line
 graph, and then let the user click and drag the data points.  ...
 the complete opposite extreme from my first question

So I have a choice: OpenGL, HGL, SDL, ObjectIO(?), or even straight X11/Win32 :/
Let me ask both ways:

2a. Which of these (or perhaps something else) is the simplest/easiest
to get started with?

2b. Could someone please point me to some advice to help me decide
which of these would be the best for me to use.  I'm just trying to
avoid the need to invest gobs of time into investigating libraries.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Images and GUIs in Haskell

2008-05-31 Thread Achim Schneider
Ronald Guida [EMAIL PROTECTED] wrote:

 So I have a choice: OpenGL, HGL, SDL, ObjectIO(?), or even straight
 X11/Win32 :/ Let me ask both ways:
 
 2a. Which of these (or perhaps something else) is the simplest/easiest
 to get started with?
 
 2b. Could someone please point me to some advice to help me decide
 which of these would be the best for me to use.  I'm just trying to
 avoid the need to invest gobs of time into investigating libraries.

I would go for GL(U(T)), as it's as good for 2d primitives as SDL will
ever be, has excellent cross-platform support and allows you to go 3d
if you want to. There's also some very decent event handling.

-- 
(c) this sig last receiving data processing entity. Inspect headers for
past copyright information. All rights reserved. Unauthorised copying,
hiring, renting, public performance and/or broadcasting of this
signature prohibited. 

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe