Re: [Haskell-cafe] bitSize

2011-08-25 Thread Gabor Greif
Am 25.08.2011 um 19:57 schrieb Andrew Coppin: Is there a way to actually determine how many bits are in an Integer? occupiedBits :: Integer - Int occupiedBits = (+1) . truncate . logBase 2 . (+1) Caveat: untested :-) Cheers, Gabor ___

[Haskell-cafe] pthread_kill missing?

2009-11-18 Thread Gabor Greif
Hi all, I'd like to send a signal from the main thread to a forkOS-ed thread in GHC. The former should use raiseSignal and the second should sit in awaitSignal. I figured that the posix functionality in the unix-2.3 library does not cover this case. I would have expected that

Re: [Haskell-cafe] pthread_kill missing?

2009-11-18 Thread Gabor Greif
Am 18.11.2009 um 14:15 schrieb Svein Ove Aas: On Wed, Nov 18, 2009 at 2:03 PM, Gabor Greif ga...@mac.com wrote: PS: I guess some of you will say, use condition variables. But that won't answer my question :-) Actually, I was going to say use throwTo. Is there som reason you have to use

Re: [Haskell-cafe] Parameterisations of Monads

2008-02-05 Thread Gabor Greif
Am 05.02.2008 um 21:27 schrieb Dan Weston: Matthew, Your SuperMonad seems remarkably similar to Gabor Greif's Thrist datatype [1,2] reported only six days ago on this list [3]. Can you compare/contrast your class approach with his polymorphic type approach? Or have I completely confused

Re: [Haskell-cafe] Relevance and applicability of category theory

2008-01-31 Thread Gabor Greif
Am 31.01.2008 um 01:23 schrieb [EMAIL PROTECTED]: 3. I believe the documentation stating that Haskell arrows are a generalization of Haskell monads, but arrows are a categorical thing too and in that context bear a much more distant relationship to monads. Does a Haskell arrow have Hask

Re: [Haskell-cafe] Relevance and applicability of category theory

2008-01-31 Thread Gabor Greif
Am 31.01.2008 um 18:13 schrieb Dan Weston: Even though you cannot dive into this matter now, maybe when you get time you can update your blog with an explicit embedding of Haskell monads and arrows in your Thrist construction. Concrete examples will help me (and probably others) more

Re: [Haskell-cafe] Re: Editor

2007-05-22 Thread Gabor Greif
Am 23.05.2007 um 00:20 schrieb Ashley Yakeley: I don't suppose you're familiar with the Dylan programming language, or more to the point, have looked at the IDE that Apple included in their original implementation of the language (around 1993 or so)? Characteristic of Apple of that time,

Re: [Haskell-cafe] Any Haskellers anywhere?

2007-05-05 Thread Gabor Greif
Am 06.05.2007 um 03:52 schrieb Rob Hoelz: Sounds like a good idea to me. I'd like to see if any Haskellers are in Madison. Doesn't Google have a service for visualizing locations on a map? The wiki could point there, for example... Gabor