[racket-users] bracket generator

2019-03-20 Thread Ryan Kramer
Anyone need to pseudo-randomly generate a bracket for march madness (or any other occasion)? Here you go: https://gist.github.com/default-kramer/073b68122ea047ac46b33af20cb1eba1 The data I used is too averse to upsets for my taste. If I were going to generate another bracket, I would add some

Re: [racket-users] Generics: delegate to a parent

2019-03-20 Thread Matthew Butterick
> On Mar 20, 2019, at 7:09 AM, zeRusski wrote: > > Both implement the same generic interface. Far as I can tell dispatch will > choose marlin's implementation on that kind of instance. Is there a way for > me to delegate to fish's method from inside marlin's method with the same > name? I

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Daniel Prager
Side note: For people looking for aesthetically pleasing discrete color palettes, check out the top two tools on this page: http://www.play-crafts.com/blog/tools/ 1. *Palette builder *helps you select a few colors from a pleasing image 2. *Color play* randomly creates palettes (the source

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Laurent
This is a fantastic idea, Alex. (While I'm at it, thanks for all your other projects related to the GUI, they are really cool.) I'm *very* much in favour of all your points, (1) to (4). I've had uses of different colors scheme for academic papers, and the default palette doesn't work well for

Re: [racket-users] Struct subtype with default/fixed value of super-type

2019-03-20 Thread Jérôme Martin
To go further, if you wonder how to make this work for `match` and inheriting, see this stackoverflow question: https://stackoverflow.com/questions/55262818/how-to-override-a-struct-constructor-while-still-providing-the-struct-metadata-f On Mon, Mar 18, 2019 at 3:08 PM Marc Kaufmann wrote: >

[racket-users] Generics: delegate to a parent

2019-03-20 Thread zeRusski
Hi all. I am trying to make good use of Generic Interfaces, but can't figure out if its at all possible to delegate calls up the struct inheritance chain. So, something like `call-next`, or even better maybe there's a way to do explicit dispatch? So something like having two structs: (struct

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Jens Axel Søgaard
Den tir. 19. mar. 2019 kl. 23.03 skrev Alex Harsanyi : > On Tuesday, March 19, 2019 at 9:53:23 PM UTC+8, Jens Axel Søgaard wrote: >> >> This is a great idea. >> >> It would be really nice to be able to use the colors also from non-plot >> programs. >> > > Could you (or Ben or Matt) elaborate on

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Matt Jadud
> > > If others think that (1) and (2) are worthwhile doing, I will submit a PR, > so > we can discuss the API an implementation over something more concrete. I > am > open discussion for points (3) and (4). > > For the more broader color map changes, if the improvements are split up in > small