Fwd: [Haskell-cafe] Re: Haskell spacing problem.

2007-03-09 Thread Mark Goldman
Oops, think I didn't send this to cafe, forgive any duplicates please. -mdg -- Forwarded message -- From: Mark Goldman <[EMAIL PROTECTED]> Date: Mar 9, 2007 8:37 AM Subject: Re: [Haskell-cafe] Re: Haskell spacing problem. To: Frozz <[EMAIL PROTECTED]> From

[Haskell-cafe] Socket Programming

2006-12-30 Thread Mark Goldman
I am trying to write a toy echo server that can handle multiple connections. I would like to be able to test and see if there are any connections waiting to be accepted on a socket. In C and related languages I would use something like select or poll to be nice to the OS, what would I use with t

Re: [Haskell-cafe] Aim Of Haskell

2006-12-14 Thread Mark Goldman
I have been keeping up with this thread. As a user of Haskell for comercial purposes, I can say that it does what I want. The only thing currently on my wish-list is some sort of run time debuging. (sometimes you want to know how you got to the empty list that you took the head of :) Anyhow, I

[Haskell-cafe] Retainer Profiling

2006-09-12 Thread Mark Goldman
Ok, so I've done a biographical profile and gotten what (I think) are the top offenders in creating objects that never get used. (+RTS -hc -hbvoid) The GHC user's guide suggests that the next step is retainer profiling to see why things are being retained instead of trashed. Is anyone out there

[Haskell-cafe] Heap profiling

2006-09-11 Thread Mark Goldman
Does anyone know if there is a way around the 20 charachter identifier limitation when heap profiling? I have a number of identifiers that indistinguishably break that limit. -mdg -- Our problems are mostly behind us, now all we have to do is fight the solutions. ___

Re: [Haskell-cafe] Problems with square root...

2005-12-21 Thread Mark Goldman
nitpicky detail: () <- Parenthesis {} <- Braces [] <- Brackets Sorry to be pedantic, but using the wrong terminology confuses me and I'm sure others as well. On 12/21/05, Daniel Carrera <[EMAIL PROTECTED]> wrote: > Daniel Carrera wrote: > > Hey, > > > > The sqrt function is not doing what I want

Re: [Haskell-cafe] List of functions

2005-09-01 Thread Mark Goldman
On 8/31/05, Krasimir Angelov <[EMAIL PROTECTED]> wrote: > 2005/8/31, Sebastian Sylvan <[EMAIL PROTECTED]>: > > On 8/31/05, Dinh Tien Tuan Anh <[EMAIL PROTECTED]> wrote: > > > > > > >Something like (untested)... > > > > > > > >xs <- zipWith ($) forkIO (map (\f -> f x y) funs) > > > >tids <- sequence

[Haskell-cafe] Floating point madness

2005-08-29 Thread Mark Goldman
I have looked around the net, and in some reference books and I cannot find a function to convert a Float to a Double directly.  Can there truly be no such animal in the Prelude/standard libs? -mdg ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] supplying some of the arguments to a function

2005-05-06 Thread Mark Goldman
if I had a function f that took x y and z in that order, is there some way that I can supply y and z and get back a function that takes x? This question comes about after talking with a prof about currying and wether it buys you anything. -mdg ___ Haske

[Haskell-cafe] New user, pardon what may be a dumb question

2005-03-31 Thread Mark Goldman
I am using ghci to learn Haskell. My question is it possible to assign an object that contains state (for lack of knowing the proper terminology) so a variable or some such from the interactive prompt. More concretely I would like to do something like this non-working code snippet: System.Random