Hubris works in 1.8.6 and 1.9.1p#{somethingorother}, so I guess it's both :)

(I gave a demo on Hubris last night, and got lured into testing
something ridiculous. Need to look into catching all Haskell-side
errors...)

cheers
Mark

On Wed, Dec 9, 2009 at 10:04 AM, Dr Nic Williams <[email protected]> wrote:
> Is the haskell stdlib in ruby 1.8 or 1.9?
>
> On Tue, Dec 8, 2009 at 9:52 PM, Mark Wotton <[email protected]> wrote:
>>
>> as it turns out, the !! operator (list !! k is more or less the same
>> as list[k]) takes a machine integer, which 354224848179261915075 is
>> not by some margin even in 64-bit world. The index was wrapping round
>> into a negative number, which !! quite rightly got narky about.
>>
>> still, it's not beyond the realms of possibility that you might want
>> to access an element of a list which is longer than that. Let's call
>> it !!! - it's like !!, but even more emphatic.
>>
>> (!!!) :: (Integral i) => [b] -> i -> b
>> list !!! n = head . snd $ genericSplitAt n list
>>
>> and with that addition, Hubris will happily fill all of memory with an
>> infeasibly large number. I hope you're happy, you sneaky bastards.
>>
>> that URL again is http://github.com/mwotton/Hubris, don't delay,
>> download now (but remember to use ghc 6.12 RC2 or the latest ghc HEAD
>> sources from darcs for you Mac users. 0-day lambdawarez, people, get
>> 'em while they're purely functional.)
>>
>> mark
>> at the forefront of fibonacci research (yes i know there's a closed
>> form shuttup)
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>>
>
>
>
> --
> Dr Nic Williams
> Mocra - Premier iPhone and Ruby on Rails Consultants
> w - http://mocra.com
> twitter - @drnic
> skype - nicwilliams
> e - [email protected]
> p - +61 412 002 126 or +61 7 3102 3237
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>



-- 
A UNIX signature isn't a return address, it's the ASCII equivalent of a
black velvet clown painting. It's a rectangle of carets surrounding a
quote from a literary giant of weeniedom like Heinlein or Dr. Who.
        -- Chris Maeda

--

You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.


Reply via email to