Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

Ruby, Continuations, Evas, Balanced trees....

Been having fun with Ruby & Evas.

My only qualm with Ruby is its lack of any balanced tree implementation in the standard library. But then, few languages do.

But there's a Ruby wrapper around GNU libavl which'll work.

I need balanced trees to quickly schedule animation update events to happen some time in the future, and be able to quickly remove items at the beginning and run them if necessary while I'm selecting on: X events, remote control events, and timeouts. (well, the last I'm not really selecting on, but yeah....)

I could just write my own hack class around Array and say, "fuck it, there won't be enough pending animations to make the insertion time matter", but that'd only bite me in the ass later as I do more cool stuff.

And I'm realizing that I'm redoing a lot of what evan did in his further port to Ruby, but I don't care.... I'm having fun learning the language.

  • Ukraine

    Nobody reads my LiveJournal anymore, but thank you to everybody in Russia protesting Putin's insane war against Ukraine. (I know it's risky…

  • Happy Birthday!

    Happy 20th Birthday, LiveJournal! 🐐🎂🎉

  • hi

    Posting from the iPhone app. Maybe I'm unblocked now.

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.