Re: [racket-users] Starting a language after Beautiful Racket

2020-04-11 Thread Pratyush Das
Thanks! On Sat, 11 Apr 2020 at 00:12, Matthew Butterick wrote: > Three options: > > 1) Implement your language in `#lang br` now (and optionally convert to > `racket/base` later) [1] > > 2) Import the `br/datum` module into a `#lang racket/base` program to get > `format-datum` [2] > > 3) Reimple

[racket-users] Re: plotting multiple data sets on one set of axes

2020-04-11 Thread Alex Harsanyi
The renderers that you pass on to the `plot` function can be manipulated outside the call to plot, so you can read the datasets you need, construct a renderer for each one, group them in a list and pass them on to plot. I am not familiar with Matlab, but based on your description, you can im

Re: [racket-users] typing variable length argument lists

2020-04-11 Thread Hendrik Boom
On Fri, Apr 10, 2020 at 08:18:38PM -0400, Jon Zeppieri wrote: > (define (unique [list : (Listof Any)] [message : String] . > [messageargs : Any *]) > ; return the only element of the list, or '() if there is none. > ; Produce message if not just one. > (if (equal? 1 (length list)) (car list)

[racket-users] typed mutable fields in structures.

2020-04-11 Thread Hendrik Boom
I noticed that in regular Racket, when defining a structure, it is possible for each field to be mutable independent of the other fields. In Typed Racke I find the choice only of making all the fields or none of them mutable. Is this correct, or have I missed something? -- hendrik -- You rec

[racket-users] OpenGL: (lack of) progress report

2020-04-11 Thread Hendrik Boom
I'm (still) building the up-to-date opengl binding for Racket. It's substantially more difficut than I thought. As some of you know, the existing OpenGL binding is generated from files supplied by the standards orgaisation Khronos. Being automatically gnerated, it was quite complete. However,