[racket-users] Re: inflate/deflate

2017-01-11 Thread Lehi Toskin
If I run `gunzip-through-ports`, it errors out with "gnu-unzip: bad header" -- 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 to

[racket-users] Re: inflate/deflate

2017-01-11 Thread Lehi Toskin
Interesting... If I prepend `(bytes #x78 #x9c)` to the compressed data created by deflate, zlib-flate will uncompress it. Same thing happens in reverse where I skip the first two bytes of the zlib-flate'd data and process it with inflate. -- You received this message because you are subscribed

Re: [racket-users] Copying a namespace?

2017-01-11 Thread Robby Findler
On Wed, Jan 11, 2017 at 7:59 PM, Alex Knauth wrote: > >> On Jan 11, 2017, at 8:53 PM, Robby Findler >> wrote: >> >> That might work. It might be easier to just stick in some `let`s, tho. >> I'm not sure of the best way to do it (but you'll find

[racket-users] inflate/deflate

2017-01-11 Thread Lehi Toskin
I'm looking at some data that was zlib compressed and I thought I'd inflate it with file/gunzip's deflate function, but I get "inflate: error in compressed data". I thought to try from the opposite direction, grabbing some deflated data from Racket and then asking zlib-flate to inflate it

Re: [racket-users] Copying a namespace?

2017-01-11 Thread Alex Knauth
> On Jan 11, 2017, at 9:10 PM, Robby Findler > wrote: > > On Wed, Jan 11, 2017 at 7:59 PM, Alex Knauth wrote: >> >>> On Jan 11, 2017, at 8:53 PM, Robby Findler >>> wrote: >>> >>> That might work. It might be

Re: [racket-users] PDF version of HTDP 2E

2017-01-11 Thread BD1 a
Thanks. Do you know the estimated time frame in which the book will be released? I may have to wait until then to go through it. Thank you. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving

[racket-users] PDF version of HTDP 2E

2017-01-11 Thread BD1 a
Hello I was wondering if the second edition of How to Design Programs was available in a download format, and if so where can I find it. The issue that I am having is that I spend a good part of my day in an environment with little to no cell or Internet services, and it would be a lot easier

Re: [racket-users] PDF version of HTDP 2E

2017-01-11 Thread Matthias Felleisen
The short answer is ‘no.’ It’s in the print queue with MIT P and they will bring out paper book this year. They also own all other electronic publication rights. — Matthias > On Jan 11, 2017, at 10:10 AM, BD1 a wrote: > > Hello > I was wondering if the second

Re: [racket-users] Link to racket doc in scribble?

2017-01-11 Thread Vincent St-Amour
Andreas, To link to a technical term (i.e., not to a particular binding), you'll want to use the `tech` function. To link to a term in another document (in this case the Racket Reference), you'll want to use the `#:doc` keyword, with the module path of (the top-level of) that document, in this

Re: [racket-users] Link to racket doc in scribble?

2017-01-11 Thread Andreas Olsson
I missed the 'tech function, thanks for the tip! -- 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 to racket-users+unsubscr...@googlegroups.com. For more options,

Re: [racket-users] Narrow radix of string->number.

2017-01-11 Thread JCG
On Thursday, December 29, 2016 at 5:54:08 PM UTC-5, gustavo wrote: > I'm not too worried about a x4 slowdown in number->string because I > don't expect it to be in a tight loop, but it would be nice that it > were faster. In fact, I find number->string already a tad slow, because I do use it in a

Re: [racket-users] Narrow radix of string->number.

2017-01-11 Thread Robby Findler
For the app that you're using, can you provide a histogram of the inputs that you supply to number->string or, if it isn't too much trouble, point me at the app so I can grab that? Robby On Wed, Jan 11, 2017 at 12:31 PM, JCG wrote: > On Thursday, December 29, 2016 at

Re: [racket-users] [ANN] New packages: compose-app and retry

2017-01-11 Thread Deren Dohoda
Thanks a lot! Retryers are fantastic. I have poorly written this code more than a few times and I like the model a lot. Deren On Tue, Jan 10, 2017 at 10:31 PM, Jack Firth wrote: > I've added two new packages to the package catalog. The first, > `compose-app`, provides a >

[racket-users] Link to racket doc in scribble?

2017-01-11 Thread Andreas Olsson
I'm trying to include highlighted links in my doc to documents in the racket docs. It's not as easy as I thought. How is it done? I like to have like FUTURE highlighted and clickable. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

[racket-users] "pmap" pkg feedback request!

2017-01-11 Thread Andreas Olsson
I've made a package with two map implementations that use parallelism. "pmapf" use futures and "pmapp" use places, I would like to get some feedback and thoughts about it. You can install it through the DrRacket package manager. -- You received this message because you are subscribed to the

[racket-users] Re: Slack discussion for Racket

2017-01-11 Thread mrmyers . random . suffix
On Tuesday, January 10, 2017 at 4:49:08 PM UTC-5, Sam Tobin-Hochstadt wrote: > A while back, Jason Yeo created a Slack for talking about Racket at > https://racket.slack.com/ After talking with some other Racket > developers (and with Jason's permission), we're planning to make this > an official

[racket-users] Copying a namespace?

2017-01-11 Thread Alex Knauth
Hello, I want to shadow instead of mutate. The ideal solution would be to create a new environment that extends the old one, so that new definitions in the new environment shadow the old definitions instead of mutating them. But if that isn't feasible with the way namespaces work right now,

Re: [racket-users] Copying a namespace?

2017-01-11 Thread Robby Findler
Change how local variables compile at the prompt that's inside the debug repl? You should have the complete set of them, I think. Compile them into looking into a table other than the namespace. Robby On Wed, Jan 11, 2017 at 5:41 PM, Alex Knauth wrote: > Hello, > > I want

Re: [racket-users] Link to racket doc in scribble?

2017-01-11 Thread Robby Findler
Also, if you have something like this: #lang scribble/manual @(require (for-label racket)) @racket[future] you should see the word `future` linked to the docs. (And, if you had a larger program in there, all the identifiers that come from the `racket` module would be linked.) Robby On

Re: [racket-users] Copying a namespace?

2017-01-11 Thread Alex Knauth
> On Jan 11, 2017, at 8:53 PM, Robby Findler > wrote: > > That might work. It might be easier to just stick in some `let`s, tho. > I'm not sure of the best way to do it (but you'll find it once you try > out a few), but the general approach of putting the macro