I feel like my dream of codifying *semantics* starts slipping away when I have to think too much about performance considerations for selecting a data structure
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
i feel like databases do this
-
now you're just arguing semantics
End of conversation
New conversation -
-
-
I experimented using the typeclass "listlike" with the intention of writing structure agnostic algorithms. https://github.com/xpika/haskell-misc/blob/master/listlike.hs …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
The only thing that comes to mind is HashMap in Java that switches between lists and red-black trees for items in every single bucket on the fly. No research there though, only barely readable implementation bc HashMap uses TreeNodes from LinkedHashMap that inherits from HashMap.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Obj-C's NSArray and V8's javascript array do this internally. They swap between a few implementations internally based on how you use the object.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
You would need to know the statistics of your operations and statistics on probable ordering and ...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I’ve toyed around with this in a language; don’t think anyone’s done much with the idea. My goal was a little more general: give variables “roles” indicating *how they’re intended to be used* and use that to select a representation, as well as inferring roles from use sites.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It is basically query planning.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
“Data structure synthesis”
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.