Re: [racket-users] Scribble: para without indentation for LaTeX/PDF output

2015-05-07 Thread Matthew Flatt
(Sorry for the long delay!) I think that defining a paragraph style for Latex is the right answer to avoid indentation. In case you haven't yet done that, here's a hack: use `(elem #:style "noindent")` as the first element of of the paragraph. That works because it generates `\noindent` in the out

Re: [racket-users] Fully-expanding a define form in its definition context

2015-05-07 Thread Matthew Flatt
The problem that you're hitting is that the `#%module-begin` form of `racket` forces partial expansion of the module body to detect definitions before it proceeds to expand expressions. That's why `define-values` complains about a full expansion in context; it's not supposed to be fully expanded, b

Re: [racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-07 Thread Greg Hendershott
That sounds good. Although I haven't used it in awhile, I recall needing to slice that off more often than keeping it. On May 7, 2015 2:22 PM, "Tim Brown" wrote: > I wonder if base64-encode should rather be patched with a #:last-newline? > (Default #t) argument. > > Tim > > On 7 May 2015 17:37:18

Re: [racket-users] scribble namespace landgrab & embedded package documentation

2015-05-07 Thread Matthew Flatt
I have no problem with these names --- the `scribble` exports are unlikely to ever collide, since we rarely resort to capital letters --- but I can't help thinking that the language of the metadata should specified explicitly. Concretely, instead of #lang racket/base maybe the file should start

Re: [racket-users] Environment Shuffling and 3D Syntax

2015-05-07 Thread Matthew Flatt
I agree that those sound goals sound like a poor fit for `module+`. It's possible that `racket/package` provides something closer to the namespace-management tools that you need. Generally, I think you'll find more success by manipulating bindings and lexical context (in the sense of `datum->synta

[racket-users] Re: web-server http-digest-auth: nonce has \r\n

2015-05-07 Thread Tim Brown
I wonder if base64-encode should rather be patched with a #:last-newline? (Default #t) argument. Tim On 7 May 2015 17:37:18 BST, Tim Brown wrote: >Folks, > >I've just tried to use web-server/http-digest-auth, and >it seems that make-digest-auth-header generates an invalid header >(or at least o

Re: [racket-users] performance with freeze from 2htdp/image on very complex images

2015-05-07 Thread Robby Findler
I played around with this for a while, but I've not been able to figure out a change that makes a positive impact. One experiment that seemed useful: I put a printf of the result of current-process-milliseconds right by the code that calls draw-line in your code and in 2htdp/image (which is in the

Re: [racket-users] writing a dual typed / untyped library

2015-05-07 Thread 'John Clements' via users-redirect
> On May 6, 2015, at 7:16 PM, Matthew Butterick wrote: > > A few notes about what I learned when converting my `sugar` library to a dual > Typed Racket / Racket library (in part because of performance considerations). > > http://unitscale.com/mb/technique/dual-typed-untyped-library.html > > (

[racket-users] web-server http-digest-auth: nonce has \r\n

2015-05-07 Thread Tim Brown
Folks, I've just tried to use web-server/http-digest-auth, and it seems that make-digest-auth-header generates an invalid header (or at least one that upsets Firefox). The definition of make-digest-auth-header(*) uses base64-encode to generate the nonce. base64-encode is documented as: the res

Re: [racket-users] Environment Shuffling and 3D Syntax

2015-05-07 Thread Philip Blair
On Wednesday, May 6, 2015 at 11:02:33 PM UTC-4, Matthew Flatt wrote: > I wonder whether whether expanding to `module+` might be a better > direction. A rough expansion of your example might be > > #lang racket/base > (module+ FOO > (provide (all-defined-out)) > (define BAR 2)) > > (m

[racket-users] (fifth RacketCon) Registration is Now Open

2015-05-07 Thread Vincent St-Amour
Registration [1] for (fifth RacketCon) [2] is now open! (fifth RacketCon) will be held on September 27th in St. Louis. Like last year, we are pleased to be co-located with Strange Loop[3]. RacketCon is a yearly event where members of the Racket community get together, featuring talks and demos a