Re: [racket-users] Re: Persistent vectors: a generic collections proof-of-concept

2015-05-29 Thread Alexey Cherkaev
My lazy-sequence implementation was exactly following SICP: while theoretically pure and good, might not be the best in practice, so I believe your implementation can be much better. Major performance boost in stateful implementation compared to lazy-sequence with delay and force comes from removi

Re: [racket-users] Re: Persistent vectors: a generic collections proof-of-concept

2015-05-29 Thread Alexis King
> Hi, the full code is attached (I hope Google Groups will preserve it...). Thank you for this! There is absolutely a performance gap, and I'll definitely look over it and see if I can figure out exactly why (I think a well-built sequence-based model should have comparable speed). I did implemen

Re: [racket-users] Re: Persistent vectors: a generic collections proof-of-concept

2015-05-29 Thread Alexey Cherkaev
Hi, the full code is attached (I hope Google Groups will preserve it...). Best regards, Alexey On 29 May 2015 at 11:51, Alexis King wrote: > > Maybe this belongs a bit more to your previous thread, but it can also > relate here: > > I see you are making generic sequence interface to collection

Re: [racket-users] Re: Persistent vectors: a generic collections proof-of-concept

2015-05-29 Thread Alexis King
> Maybe this belongs a bit more to your previous thread, but it can also relate > here: > I see you are making generic sequence interface to collections. Clojure from > 1.7 seems to move more towards "reducebles" rather than "sequable". I have > played with this idea for Racket a bit and it seem

[racket-users] Re: Persistent vectors: a generic collections proof-of-concept

2015-05-29 Thread Alexey Cherkaev
It looks great! Thanks for putting time and effort into this. I think Racket in general will benefit from better support of immutable collections: it has already made the departure from Scheme by making cons-cells immutable. So, this is next logical step. Maybe this belongs a bit more to your p