|Ruby, Continuations, Evas, Balanced trees....
||[Jul. 1st, 2002|06:35 pm]
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.