Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread George Neuner
On 12/9/2015 9:35 PM, brendan wrote: On Wednesday, December 9, 2015 at 6:22:54 PM UTC-5, gneuner2 wrote: > I *think* Brendan is referring to caching the dispatch path - i.e. once > you've determined the proper function to call for a set of arguments, > you cache the arguments (or their relevant c

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread brendan
On Wednesday, December 9, 2015 at 6:22:54 PM UTC-5, gneuner2 wrote: > I *think* Brendan is referring to caching the dispatch path - i.e. once > you've determined the proper function to call for a set of arguments, > you cache the arguments (or their relevant characteristics) and the > resulting

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread George Neuner
On 12/9/2015 1:41 PM, Alexis King wrote: > On Dec 6, 2015, at 10:03 PM, George Neuner wrote: > > I would disagree that multiple dispatch isn't needed. The Visitor pattern is used fairly frequently in real programs and it is just a overly complex, error-prone way of doing double dispatch. Try

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-09 Thread Alexis King
> On Dec 6, 2015, at 10:03 PM, George Neuner wrote: > > I would disagree that multiple dispatch isn't needed. The Visitor pattern is > used fairly frequently in real programs and it is just a overly complex, > error-prone way of doing double dispatch. Trying to handle more than 2 > dimensio

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-07 Thread brendan
On Sunday, December 6, 2015 at 11:07:26 PM UTC-5, Alexis King wrote: > The honest answer to your question is that I don’t know (though I’d also be > interested to hear the answer). Obviously, I’d like to see generic APIs given > more thought, but they are currently somewhat slow due to how dispat

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-06 Thread George Neuner
On 12/6/2015 11:07 PM, Alexis King wrote: More generally, I’m not sure multiple dispatch is needed, though it can be a neat tool at times. I think part of the problem is that multiple dispatch is both hard to reason about and slow to implement in a dynamically-typed language. It’s unclear what

Re: [racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-06 Thread Alexis King
The honest answer to your question is that I don’t know (though I’d also be interested to hear the answer). Obviously, I’d like to see generic APIs given more thought, but they are currently somewhat slow due to how dispatch is performed. I don’t think that’s a reason to design APIs in a certain

[racket-users] PSA: alexis/collection is dead, long live data/collection

2015-12-05 Thread Alexis King
Earlier this year, Jay suggested I move alexis/collection to data/collection and claim that namespace. In the past week, I’ve finally done so. Instead of using the alexis-collections package, just use the collections package. Otherwise, everything still works identically. The alexis-collections