[Haskell-cafe] Haskell mode for emacs - some questions

peterv bf3 at telenet.be
Wed Jun 20 11:44:37 EDT 2007

Yes, HopenGL works fine using GHCI, Gtk2HS/SOE doesn't (it already explained
in somewhere this mailing list)

For particle systems, the interpreted overhead will be large I guess. At
least for the L-System I tested, compiling with GHC resulted in much much
faster execution.

-----Original Message-----
From: Jules Bean [mailto:jules at jellybean.co.uk] 
Sent: Tuesday, June 19, 2007 09:58
To: peterv
Cc: 'David House'; haskell-cafe at haskell.org
Subject: Re: [Haskell-cafe] Haskell mode for emacs - some questions

peterv wrote:
> And when I will me using HopenGL, I will want performance, as I will be
> doing experiments with particle systems, 3D rendering, etc. Basically the
> stuff I did for many years but now using Haskell :)
> Having to do anything more than hitting a key to compile and run an
> application would simple be unacceptable from the point of view of an
> developer (all imp/OO IDEs have that). Furthermore, when programming
> videogames or special effects, you have to run and test a lot, because
> you see on screen usually 
> determines your next actions. 

I don't disagree that this should be possible. If you hit C-h f compile 
then you can read the documentation for the built-in compile command. By 
default this runs make, because many code projects especially in the 
unix world use make as their build system, but you can customise this.

On the other hand a simple haskell project doesn't have any way of 
indicating which is the 'main' file (indeed most of my haskell projects 
with more than one file have more than one 'main' file with different 
purposes) so it's not immediately obvious which arguments to give to ghc 
--make.  I suspect that this itch is just not sufficiently important to 
most haskell-mode users, since the alternatives (C-c C-l, C-x b M-p 
<RET>, or alt-tab <up> <ret>) [*] work so well.

Incidentally I've developed using HOpenGL in ghci with no problem. The 
performance is not really an issue: only the 'current file' is 
interpreted, all other files are used compiled, and in any case most of 
the CPU usage is in the (compiled) GL libraries of your system.


* C-x b M-p <RET> being 'switch to your shell buffer, select previous 
command and re-run it', since your previous command is obviously ghc 
--make foo.hs && ./foo.  Alt-tab <up> <ret> is the same thing except it 
switches to a non-emacs shell window using your window manager, if you 
don't like using emacs shells :)

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.1/854 - Release Date: 19/06/2007

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.1/854 - Release Date: 19/06/2007

More information about the Haskell-Cafe mailing list