Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Jesse Alama
On 26 Jan 2019, at 15:39, Hendrik Boom wrote: On Sat, Jan 26, 2019 at 09:19:11AM -0500, Matthias Felleisen wrote: On Jan 26, 2019, at 9:03 AM, Sorawee Porncharoenwase wrote: Matthias, where can I find this "History of Clojure"? I searched for "It is better to have 100 transducers ..."

Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Hendrik Boom
On Sat, Jan 26, 2019 at 09:19:11AM -0500, Matthias Felleisen wrote: > > > On Jan 26, 2019, at 9:03 AM, Sorawee Porncharoenwase > > wrote: > > > > Matthias, where can I find this "History of Clojure"? I searched for > > "It is better to have 100 transducers ..." I'd love even to know what he

Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Matthias Felleisen
> On Jan 26, 2019, at 9:03 AM, Sorawee Porncharoenwase > wrote: > > Matthias, where can I find this "History of Clojure"? I searched for "It is > better to have 100 transducers ..." and found no result (besides this very > thread). I also searched for "History of Clojure" and only found this

Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Sorawee Porncharoenwase
Matthias, where can I find this "History of Clojure"? I searched for "It is better to have 100 transducers ..." and found no result (besides this very thread). I also searched for "History of Clojure" and only found this tweet from

Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Matthias Felleisen
> On Jan 26, 2019, at 8:31 AM, Hendrik Boom wrote: > > On Fri, Jan 25, 2019 at 07:50:56PM -0500, Matthias Felleisen wrote: >> >> Yes. See Clojure history. — Matthias > > Given the amount of text you have quoted, it's not clear what you are > saying yes to. Hickey: "we tweak Perlis one

Re: [racket-users] Collections and data structures wishlist?

2019-01-26 Thread Hendrik Boom
On Fri, Jan 25, 2019 at 11:33:09AM -0800, Jack Firth wrote: > > Due to the kind of data that would go in tuples - namely, a fixed-sized > heterogeneous collection of values - a function probably *shouldn't* use > map and filter to process tuples. A program that calls filter on an x-y-z >

Re: [racket-users] Collections and data structures wishlist?

2019-01-25 Thread Matthias Felleisen
Yes. See Clojure history. — Matthias > On Jan 25, 2019, at 4:21 PM, Jack Firth wrote: > > I don't intend to make these operations impossible or even difficult. One of > the other things on my wishlist is a transducers library, which would IMO be > a good fit for a lot of the logic that

Re: [racket-users] Collections and data structures wishlist?

2019-01-25 Thread Jack Firth
I don't intend to make these operations impossible or even difficult. One of the other things on my wishlist is a transducers library, which would IMO be a good fit for a lot of the logic that Racket currently provides as list-processing functions. So if you want to process tuples as generalized

Re: [racket-users] Collections and data structures wishlist?

2019-01-25 Thread Matthias Felleisen
> On Jan 25, 2019, at 3:46 PM, Thomas F. Burdick wrote: > > > > On January 25, 2019 8:33:09 PM GMT+01:00, Jack Firth > wrote: >> >> Due to the kind of data that would go in tuples - namely, a fixed-sized >> heterogeneous collection of values - a function probably *shouldn't* >> use >> map

Re: [racket-users] Collections and data structures wishlist?

2019-01-25 Thread Thomas F. Burdick
On January 25, 2019 8:33:09 PM GMT+01:00, Jack Firth wrote: > >Due to the kind of data that would go in tuples - namely, a fixed-sized >heterogeneous collection of values - a function probably *shouldn't* >use >map and filter to process tuples. A program that calls filter on an >x-y-z

Re: [racket-users] Collections and data structures wishlist?

2019-01-25 Thread Jack Firth
> > Maybe you'll need to clarify what Racket2 is? I am not familiar. Racket2 is the (unofficial) name of what Racket could hypothetically be if we made lots of breaking changes to the existing APIs. It's named that because it would likely mean creating a `#lang racket2` language with all of the

Re: [racket-users] Collections and data structures wishlist?

2019-01-24 Thread Matthias Felleisen
(define tuple/c list/c) The key to list/c and listof is that the code inside of functions contracted with either of them can use map and filter and everything else to process the arguments. > On Jan 24, 2019, at 8:33 AM, Gustavo Massaccesi wrote: > > I also like the idea of a contract

Re: [racket-users] Collections and data structures wishlist?

2019-01-24 Thread David Storrs
> When it comes to collections and data structures, what would you all like to > see in Racket2? New APIs? Changes to existing APIs? Whole new paradigms? > Something else? I wrote the struct-plus-plus module (https://docs.racket-lang.org/struct-plus-plus/index.html) because I wanted some

Re: [racket-users] Collections and data structures wishlist?

2019-01-24 Thread Gustavo Massaccesi
I also like the idea of a contract like "tuple/c", perhaps with a more rackety name. Gustavo On Wed, Jan 23, 2019 at 12:02 PM Greg Hendershott wrote: > >> - A separation between using lists as homogeneous collections and using > lists as fixed-size tuples. So there'd be a separate `tuple?`

Re: [racket-users] Collections and data structures wishlist?

2019-01-23 Thread Greg Hendershott
>> - A separation between using lists as homogeneous collections and using >> lists as fixed-size tuples. So there'd be a separate `tuple?` data type >> that's structurally equivalent to a list but meant to be used differently. >> For example, `(list/c number?)` would mean a list of many

Re: [racket-users] Collections and data structures wishlist?

2019-01-19 Thread Stephen De Gabrielle
Tables are pretty cool! https://www.pyret.org/docs/latest/tables.html On Fri, 18 Jan 2019 at 22:22, wrote: > When it comes to collections and data structures, what would you all like > to see in Racket2? New APIs? Changes to existing APIs? Whole new paradigms? > Something else? > > I've got

Re: [racket-users] Collections and data structures wishlist?

2019-01-19 Thread Jack Rosenthal
On Fri, 18 Jan 2019 at 14:22 -0800, jackhfi...@gmail.com wrote: > When it comes to collections and data structures, what would you all like > to see in Racket2? New APIs? Changes to existing APIs? Whole new paradigms? > Something else? Maybe you'll need to clarify what Racket2 is? I am not

Re: [racket-users] Collections and data structures wishlist?

2019-01-19 Thread jackhfirth
On Friday, January 18, 2019 at 11:50:48 PM UTC-8, Matthias Felleisen wrote: > > > On Jan 18, 2019, at 10:22 PM, jackh...@gmail.com wrote: > > > - A separation between using lists as homogeneous collections and using > lists as fixed-size tuples. So there'd be a separate `tuple?` data type >

Re: [racket-users] Collections and data structures wishlist?

2019-01-18 Thread Matthias Felleisen
> On Jan 18, 2019, at 10:22 PM, jackhfi...@gmail.com wrote: > > > - A separation between using lists as homogeneous collections and using lists > as fixed-size tuples. So there'd be a separate `tuple?` data type that's > structurally equivalent to a list but meant to be used differently. For