[racket-users] Re: [racket] Thread creation slow?

2019-12-21 Thread liweijian
Some updates with Racket v7.5[cs] and go 1.13.5 in my Mac mini 2018: $ raco exe whispers.rkt $ time ./whispers # 11 1.85 real 1.63 user 0.20 sys $ time ./hello 11 0.28 real 0.54 user 0.14 sys Seems that Racket v7.5[cs] doing much better ri

[racket-users] One case of rest arguments on Typed Racket

2016-04-23 Thread liweijian
I was reading the document of Typed Racket(https://docs.racket-lang.org/ts-guide/types.html#%28part._.Non-.Uniform_.Variable-.Arity_.Functions%29). It saids that "Typed Racket can handle some uses of rest arguments". I was wondering if maybe Typed Racket could handle the follow case: ``` (def

Re: [racket-users] Looking for suggestion on accumulating the paths of Graph from HtDP

2016-02-12 Thread liweijian
se missing pieces, you will make much more progress. If > you post those, we can also help you make real progress, not just complete a > problem from HtDP/2e. > > > > On Jan 30, 2016, at 11:29 PM, liweijian wrote: > > > > HtDP taught us how to check if there exist

[racket-users] Looking for suggestion on accumulating the paths of Graph from HtDP

2016-01-30 Thread liweijian
HtDP taught us how to check if there exists path(s) from one node to another. I tried to implement accumulating all the paths between two nodes as: ```racket (define (find-paths origin dest G path) (cond [(equal? origin dest) (reverse (cons dest path))] [else (find-paths/all (neigh