[racket-users] current racket dynamic web performance in production?

2020-06-03 Thread Neil Van Dyke
I'm now leading engineering at a startup with an established Python & Flask infrastructure, and happen to urgently need an additional dynamic Web service backend that's separate from the rest of our infrastructure...  While I could do it in Flask, I was thinking that this might also be an

Re: [racket-users] Poor documentation of List*

2020-06-03 Thread Ryan Culpepper
`(List* T)` is the same as `T`, just as `(list* x)` is the same as `x` (whether `x` is a list or not). > (require typed/racket) > (list* 4 5 6) - : (List* Positive-Byte Positive-Byte Positive-Byte) '(4 5 . 6) > (list* 6) - : Integer [more precisely: Positive-Byte] 6 > (:type

Re: [racket-users] Poor documentation of List*

2020-06-03 Thread Sam Tobin-Hochstadt
`(List* T)` is just `T`. This follows the behavior of the `list*` function, where `(list* 5)` produces 5. You can explore this using the `:type` form at the REPL. For example, ``` > (:type (List* String)) String > (:type (List* String String)) (Pairof String String) > (:type (List* String (List

Re: [racket-users] Poor documentation of List*

2020-06-03 Thread Hendrik Boom
On Wed, Jun 03, 2020 at 04:22:41PM +0100, Stephen De Gabrielle wrote: > Hi Hendrik, > > I can't see the example you mention in > https://docs.racket-lang.org/ts-reference/type-ref.html#%28form._%28%28lib._typed-racket%2Fbase-env%2Fbase-types-extra..rkt%29._.List%2A%29%29 > > i'm assuming (List*

Re: [racket-users] Re: How to make DrRacket interactions window use the same reader as the definitions window?

2020-06-03 Thread Matthew Flatt
At Fri, 29 May 2020 09:25:58 -0700 (PDT), Thomas Dickerson wrote: > On Friday, May 29, 2020 at 11:29:38 AM UTC-4, Matthew Flatt wrote: > > DrRacket uses `pretty-print`, which will print numbers using > > `number->string`, and so (I think) won't go through your parameter. > > This sounds like a

Re: [racket-users] Poor documentation of List*

2020-06-03 Thread Stephen De Gabrielle
Hi Hendrik, I can't see the example you mention in https://docs.racket-lang.org/ts-reference/type-ref.html#%28form._%28%28lib._typed-racket%2Fbase-env%2Fbase-types-extra..rkt%29._.List%2A%29%29 i'm assuming (List* c) is shorthand for (Pair c null)? I don't know typed racket so I've probably got

[racket-users] Re: Some stuff about "case".

2020-06-03 Thread Jack Firth
Isn't that just match with the == pattern? (let ([x 'foo]) (match 'foo [(== x) 'got-foo] ['x 'got-quote-x])) ; => 'got-foo On Monday, June 1, 2020 at 11:54:01 AM UTC-7, cwebber wrote: > > As I started typing this email and looking into the definition of case, > I realized my

[racket-users] Re: foldts-test-suite

2020-06-03 Thread Jack Firth
Nope. A well-designed replacement for those APIs is sorely needed. On Tuesday, June 2, 2020 at 6:37:17 PM UTC-7, Alex Harsanyi wrote: > > > Are there alternatives to the `folds-test-suite` and `fold-test-results` > functions, for people who want to write their own test running and > reporting