[Haskell-cafe] Re: [Haskell] Making 'Super Nario Bros' in Haskell

2008-10-29 Thread Achim Schneider
"Eli Ford" <[EMAIL PROTECTED]> wrote: > > > Is there a better way than IORefs > > > > > The state Monad. > > Do you mean one state shared among all actors, like this? > > type MGame = State GameState > newtype GameState = GameState { } > > That gets part of the way, but I'm thinkin

Re: [Haskell-cafe] Hugs GraphicsUtils "legacy" code

2008-10-29 Thread Galchin, Vasili
I found some code that I want to run and that imports GraphicsUtils ... On Thu, Oct 30, 2008 at 12:25 AM, Don Stewart <[EMAIL PROTECTED]> wrote: > vigalchin: > >Hello, > > > > What is the suggested migration path from the Hugs GraphicsUtils > to > >contemporary Haskell?? > > > >

Re: [Haskell-cafe] Hugs GraphicsUtils "legacy" code

2008-10-29 Thread Don Stewart
vigalchin: >Hello, > > What is the suggested migration path from the Hugs GraphicsUtils to >contemporary Haskell?? > >Thanks, Vasili I don't believe anyone has ever asked that question. If you're doing graphics, in modern Haskell, I'd suggest gtk2hs + ghc. http://h

[Haskell-cafe] Hugs GraphicsUtils "legacy" code

2008-10-29 Thread Galchin, Vasili
Hello, What is the suggested migration path from the Hugs GraphicsUtils to contemporary Haskell?? Thanks, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [Somewhat OT] Speed

2008-10-29 Thread Richard O'Keefe
On 30 Oct 2008, at 9:22 am, Andrew Coppin wrote: I'm not really interested in getting down to instruction-level scheduling. I just want to know, at a high level, will implementing my algorithm in integer arithmetic rather than floating-point make a measurable difference to overall program sp

RE: [Haskell-cafe] RE: [Haskell] Making 'Super Nario Bros' in Haskell

2008-10-29 Thread Eli Ford
> > Is there a better way than IORefs > > > The state Monad. Do you mean one state shared among all actors, like this? type MGame = State GameState newtype GameState = GameState { } That gets part of the way, but I'm thinking of a situation where each instance of a particular ty

[Haskell-cafe] RE: [Haskell] Making 'Super Nario Bros' in Haskell

2008-10-29 Thread Achim Schneider
"Eli Ford" <[EMAIL PROTECTED]> wrote: > Is there a better way than IORefs > Without looking at the code: The state Monad. Imperative implementations of games are usually[1] modelled as finite automata, there's no reason to do it any different in a functional language. Add a bit of glue to transla

Re: [darcs-users] [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Jason Dagit
On Wed, Oct 29, 2008 at 6:16 PM, Trent W. Buck <[EMAIL PROTECTED]> wrote: > David Roundy <[EMAIL PROTECTED]> writes: > >> And as far as bundled versions, it's the desire to *remove* a bundled >> version that's apparently at issue. I'm not sure why this is >> considered desirable, but apparently so

Re: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Trent W. Buck
David Roundy <[EMAIL PROTECTED]> writes: > And as far as bundled versions, it's the desire to *remove* a bundled > version that's apparently at issue. I'm not sure why this is > considered desirable, but apparently some folks feel strongly about > this. Could someone please summarize what code i

[Haskell-cafe] RE: [Haskell] Making 'Su per Nario Bros.' in Haskell‏

2008-10-29 Thread Eli Ford
That’s great -- easy to follow, even though I can’t read the comments. ^^ It’s not possible for actors to ‘watch’ each other in this system, correct? For instance, if one actor holds a reference to another, it will keep that old version of the actor alive, but it won’t see when the actor mo

Re: [Haskell-cafe] Re: ghc-6.11 + OpenGL/GLUT crashes on WinXP

2008-10-29 Thread Jefferson Heard
Conal, I tried this today on a VirtualBox VM running the same versions as Mark Wassell, and it worked for me... I wonder, though, if perhaps GLUT is not getting a GLX (or direct) video context on your machine for some reason. That has caused some of my GLUT programs to die in the past, no matter

[Haskell-cafe] Re: Problems with Windows

2008-10-29 Thread John Van Enk
One more thing, I also had to add my cygwin bin directory containing "sh.exe" to my Windows %PATH% variable. This allowed network to configure from the windows command prompt. /jve On Wed, Oct 29, 2008 at 8:37 PM, John Van Enk <[EMAIL PROTECTED]> wrote: > Hello All, > > I'm trying to reinstall

[Haskell-cafe] Problems with Windows

2008-10-29 Thread John Van Enk
Hello All, I'm trying to reinstall network-2.2.0.0 against Parsec 3 in Windows. Well, this is really hard/impossible to do. Here's what I've done so far: 1) After bashing my face against my desk for a while, I got cabal-install installed in windows. 2) cabal install network --reinstall 3) This fre

Re: [Haskell-cafe] Password hashing

2008-10-29 Thread brian
Please be careful not to invent or reinvent a password hashing scheme. I'd go with bcrypt. That'd be a worthy module. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Password hashing

2008-10-29 Thread Thomas Schilling
In general, it is recommended that password hash functions are comparatively *slow* in order to make offline attacks harder. You can somewhat emulate this by running the hashing function multiple times. And, of course, salting should always be done. 2008/10/28 Bulat Ziganshin <[EMAIL PROTECTED]>:

[Haskell-cafe] Re: Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Trent W. Buck
Duncan Coutts <[EMAIL PROTECTED]> writes: > I'd just like to point out (again ;-) ) than it's not that hard to > support older platforms. The only constraint is that people not squeal > at the sight of bundled code. The bundling can be done in such a way > that it's not a maintenance burden, indeed

Re: [Haskell-cafe] Re: Password hashing

2008-10-29 Thread Don Stewart
Andrew.Butterfield: > > >someone asked: > >>>What can be used for generating a random salt? Is System.Random > >>>secure enough? > >>> > Achim Schneider wrote: > >...or by pinging a random host and taking the time difference, checking > >the current cpu temperature and fan speed, counting ho

Re: [Haskell-cafe] Re: Password hashing

2008-10-29 Thread Andrew Butterfield
someone asked: What can be used for generating a random salt? Is System.Random secure enough? Achim Schneider wrote: ...or by pinging a random host and taking the time difference, checking the current cpu temperature and fan speed, counting how many times your process gets suspended in

Re: [Haskell-cafe] performance difference for binary-0.4.3.1 with ghc-6.8.3 and ghc-6.10

2008-10-29 Thread Don Stewart
jwlato: > On Tue, Oct 28, 2008 at 5:43 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > > jwlato: > >> Hello, > >> > >> I was experimenting with using ghc-6.10.0.20081007 on a project, and > >> it seems that binary-0.4.3.1 has markedly worse performance in certain > >> cases. With the following simple

Re: [Haskell-cafe] Re: [Haskell] How to get the binary respentation of the Int/Double.

2008-10-29 Thread Bit Connor
On Wed, Oct 29, 2008 at 7:58 PM, Ryan Ingram <[EMAIL PROTECTED]> wrote: > Actually, this is a good question, at least as relating to floating > point values. Is there a primitive to view the machine representation > of floats? This isn't the first time this issue has come up on this mailing list.

Re: [Haskell-cafe] [Somewhat OT] Speed

2008-10-29 Thread Christopher Lane Hinson
OK, well thanks for the info. I'm not really interested in getting down to instruction-level scheduling. I just want to know, at a high level, will implementing my algorithm in integer arithmetic rather than floating-point make a measurable difference to overall program speed. Actually, t

Re: [Haskell-cafe] [Somewhat OT] Speed

2008-10-29 Thread Andrew Coppin
Richard O'Keefe wrote: On 29 Oct 2008, at 8:31 am, Andrew Coppin wrote: Hi guys. This isn't specifically to do with Haskell, but... does anybody have any idea roughly how fast various CPU operations are? For example, is integer arithmetic faster or slower than floating-point? Is addition

Re: [Haskell-cafe] How to use lib compat-base3 in ghc 6.10?

2008-10-29 Thread Don Stewart
magicloud.magiclouds: > Hi, >Xmonad needs Data.Generics from base3. And I found out that there is > a "compat-base3" in ghc 6.10, which has Data.Generics. >But `ghc -v` reports that base-3.0.3.0 is hidden. So I wonder how > could I compile Xmonad with ghc 6.10? Upgrade to cabal-install 0

[Haskell-cafe] Re: [Haskell] How to get the binary respentation of?the Int/Double.

2008-10-29 Thread Chung-chieh Shan
Ryan Ingram <[EMAIL PROTECTED]> wrote in article <[EMAIL PROTECTED]> in gmane.comp.lang.haskell.cafe: > Actually, this is a good question, at least as relating to floating > point values. Is there a primitive to view the machine representation > of floats? Not a primitive, but it can be defined:

[Haskell-cafe] Re: [Haskell] How to get the binary respentation of the Int/Double.

2008-10-29 Thread Ryan Ingram
Actually, this is a good question, at least as relating to floating point values. Is there a primitive to view the machine representation of floats? I'm thinking of functions like: reinterpretFloatAsWord :: Float -> Word32 reinterpretWordAsFloat :: Word32 -> Float reinterpretDoubleAsWord :: Doub

[Haskell-cafe] Re: Password hashing

2008-10-29 Thread Achim Schneider
Bulat Ziganshin <[EMAIL PROTECTED]> wrote: > Hello Bit, > > Wednesday, October 29, 2008, 4:32:51 PM, you wrote: > > >> It's a good idea to salt your passwords before hashing, though. See > > What can be used for generating a random salt? Is System.Random > > secure enough? > > if you use mkStdR

Re: [darcs-users] [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Jason Dagit
On Wed, Oct 29, 2008 at 8:01 AM, David Roundy <[EMAIL PROTECTED]> wrote: > On Wed, Oct 29, 2008 at 11:17:35AM -, Mitchell, Neil wrote: >> Duncan, >> >> I believe the major darcs issue is the changed GADT implementation >> between 6.6, so that neither 6.6 or 6.8 is a superset/subset of the >> ot

[Haskell-cafe] Re: [darcs-users] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Matthias Kilian
On Wed, Oct 29, 2008 at 12:11:22PM +1100, Trent W. Buck wrote: > To my mind, the benefit is negligible, because: > > Then we still have OpenBSD users. > > means we can't drop GHC 6.6 support. Also, note that Lenny has 6.8, > and it is scheduled to become stable Real Soon Now. Ok, it all depen

Re: [Haskell-cafe] performance difference for binary-0.4.3.1 with ghc-6.8.3 and ghc-6.10

2008-10-29 Thread Ian Lynagh
On Wed, Oct 29, 2008 at 10:40:48AM +0700, Donald Halomoan wrote: > Where can I get ghc-6.10? I cannot see it at haskell.org website. No releases from the 6.10 branch have been made yet. Thanks Ian ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.or

Re: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread David Roundy
On Wed, Oct 29, 2008 at 11:17:35AM -, Mitchell, Neil wrote: > Duncan, > > I believe the major darcs issue is the changed GADT implementation > between 6.6, so that neither 6.6 or 6.8 is a superset/subset of the > other - leading to a situation where they have to use a common subset of > both.

Re: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Jason Dagit
On Wed, Oct 29, 2008 at 4:17 AM, Mitchell, Neil <[EMAIL PROTECTED]> wrote: > Duncan, > > I believe the major darcs issue is the changed GADT implementation > between 6.6, so that neither 6.6 or 6.8 is a superset/subset of the > other - leading to a situation where they have to use a common subset o

Re[2]: [Haskell-cafe] Password hashing

2008-10-29 Thread Bulat Ziganshin
Hello Bit, Wednesday, October 29, 2008, 4:32:51 PM, you wrote: >> It's a good idea to salt your passwords before hashing, though. See > What can be used for generating a random salt? Is System.Random secure enough? if you use mkStdRNG it's good enough for non high-secure programs. it inits rnd g

Re: [Haskell-cafe] Password hashing

2008-10-29 Thread Bit Connor
On Tue, Oct 28, 2008 at 5:56 PM, Michał Pałka <[EMAIL PROTECTED]> wrote: > It's a good idea to salt your passwords before hashing, though. See > http://en.wikipedia.org/wiki/Salt_(cryptography) What can be used for generating a random salt? Is System.Random secure enough? Thanks _

Fwd: [Haskell-cafe] ANNOUNCE: Data.TCache 0.5.1

2008-10-29 Thread Alberto G. Corona
-- Forwarded message -- From: Alberto G. Corona <[EMAIL PROTECTED]> Date: 2008/10/29 Subject: Re: [Haskell-cafe] ANNOUNCE: Data.TCache 0.5.1 To: Joachim Breitner <[EMAIL PROTECTED]> I developed it in 2006. At this time I think that Happs did not used STM. I do not know Happs.State

Re: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Duncan Coutts
On Mon, 2008-10-27 at 19:24 -0700, Jason Dagit wrote: > Hello, > > I would like to find out if any darcs users who build from the source > are still using ghc 6.6? I'd just like to point out (again ;-) ) than it's not that hard to support older platforms. The only constraint is that people not sq

RE: [Haskell-cafe] Poll: Do you need to be able to build darcs from source on GHC 6.6?

2008-10-29 Thread Mitchell, Neil
Duncan, I believe the major darcs issue is the changed GADT implementation between 6.6, so that neither 6.6 or 6.8 is a superset/subset of the other - leading to a situation where they have to use a common subset of both. Thanks Neil > -Original Message- > From: [EMAIL PROTECTED] > [ma

Re: [Haskell-cafe] performance difference for binary-0.4.3.1 with ghc-6.8.3 and ghc-6.10

2008-10-29 Thread John Lato
On Tue, Oct 28, 2008 at 5:43 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > jwlato: >> Hello, >> >> I was experimenting with using ghc-6.10.0.20081007 on a project, and >> it seems that binary-0.4.3.1 has markedly worse performance in certain >> cases. With the following simple test: >> >> > import

[Haskell-cafe] How to use lib compat-base3 in ghc 6.10?

2008-10-29 Thread Magicloud
Hi, Xmonad needs Data.Generics from base3. And I found out that there is a "compat-base3" in ghc 6.10, which has Data.Generics. But `ghc -v` reports that base-3.0.3.0 is hidden. So I wonder how could I compile Xmonad with ghc 6.10? Thanks. ___

Re: [Haskell-cafe] Re: ghc-6.11 + OpenGL/GLUT crashes on WinXP

2008-10-29 Thread Mark Wassell
Hi, Works here: Windows XP SP 3 ghc-6.10.20081007 glut32 from http://www.xmission.com/~nate/glut.html Don't know if this will help: DLLS loaded glut32.dll0x10000x38000C:\WINDOWS\glut32.dll opengl32.dll0x5ed00xcc000C:\WINDOWS\system32\opengl32.dll glu32.dll0

Re: [Haskell-cafe] performance difference for binary-0.4.3.1 with ghc-6.8.3 and ghc-6.10

2008-10-29 Thread Jason Dusek
http://www.haskell.org/ghc/dist/stable/dist/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe