Re: [racket-users] package manager woes on Windows 10?

2020-09-14 Thread Sorawee Porncharoenwase
Can you explain why you are not sure? Under what circumstances do you think the current 'single style behavior is useful? We can add 'single-no-return (though I dislike it because 'single means no return already!) and change existing places that use 'single. However, without switching the default

Re: [racket-users] Why is get-impure-port* slower than a system call to curl?

2020-09-14 Thread Sam Phillips
Hi Stephen, I ran this small benchmark against a remote web server, and was definitely getting better response using the http-easy module. https://gist.github.com/samdphillips/32763ebd0d938678c2972b1dd8ee5778 $ racket -e '(require (submod "http-perf.rkt" curl))' cpu time: 768 real time: 35299 gc

Re: [racket-users] Why is get-impure-port* slower than a system call to curl?

2020-09-14 Thread Jon Zeppieri
I ran a few tests where I fetch the google homepage via curl, get-impure-port, and get-impure-port*. Curl does, in fact, seem to be faster, but not nearly so much so to account for the delays in that video. So, one thing to check is if the racket code gets slower results when requesting arbitrary u

Re: [racket-users] Why is get-impure-port* slower than a system call to curl?

2020-09-14 Thread Stephen Foster
Finally circling back to this issue. I've disabled debugging in DrRacket and also done a test outside of DrRacket. It's still slow. :( I also tried the newer HTTP client: https://docs.racket-lang.org/http-easy/index.html. Like the others, it is also slow. I'll do some more digging. I'm curren

[racket-users] Racket News Issue 38

2020-09-14 Thread Paulo Matos
Hi all, Racket News Issue 38 is here! https://racket-news.com/2020/09/racket-news-issue-38.html Enjoy! Paulo Matos -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [racket-users] Re: hashcons

2020-09-14 Thread Tony Garnock-Jones
On Mon, 14 Sep 2020 at 14:18, Hendrik Boom wrote: > I would, ideally, only use hashcons on those cons-cells which had > themselves > been hashconsed, so eq? would suffice. > The challenge is checking to see whether a new allocation is required. Checking `eq?` of the cdr suffices, but seldom is `

Re: [racket-users] Re: hashcons

2020-09-14 Thread Hendrik Boom
On Mon, Sep 14, 2020 at 01:11:34AM -0700, Tony Garnock-Jones wrote: > On Sunday, September 13, 2020 at 12:41:15 AM UTC+2 hen...@topoi.pooq.com > wrote: > > > True, but that would require rewriting list, and quasiquote, ans > > others like that to use the hashcons. > > > > Not impossible. > > >

Re: [racket-users] question about places and main thread gc

2020-09-14 Thread Matthew Flatt
At Mon, 14 Sep 2020 00:34:08 -0500, Nate Griswold wrote: > If i understand correctly, in racket cs embedded if i am not currently > running anything in the main racket thread then gc cannot happen. But the > next time i make a call into racket on that reserved racket thread (which > has not been sh

Re: [racket-users] Re: hashcons

2020-09-14 Thread Tony Garnock-Jones
On Sunday, September 13, 2020 at 12:41:15 AM UTC+2 hen...@topoi.pooq.com wrote: > True, but that would require rewriting list, and quasiquote, ans > others like that to use the hashcons. > > Not impossible. > One potentially useful trick is to write a function `canonicalize` which deeply tra