[racket] webserver : "chunked tail no NL" error in varnish

2014-03-10 Thread Guillaume Coré
Hi, I'm using the racket webserver and I want to put a varnish directly in front of it. With the default config of varnish (just changing the host/port for the backend to match my racket application) I got an error : FetchError c chunked tail no NL I think this refers to the following code i

Re: [racket] ffi to java bytecode?

2014-03-10 Thread Stephen Chang
You may be interested in this project from the first RacketCon a few years back: https://github.com/cky/rackona On Mon, Mar 10, 2014 at 11:07 PM, Charlie Jacobsen wrote: > After more thought, I can see this will be a lot different from ffi to C. > You would probably need to fire up a jvm to exec

Re: [racket] call/comp, eq? and call-with-continuation-prompt

2014-03-10 Thread Spencer florence
Out of curiosity, why would removing the prompt tag change the behavior? On Mon, Mar 10, 2014 at 10:50 PM, Matthew Flatt wrote: > I think this is a compiler bug, where the compiler is changing >(let ([a (cons 1 2)]) > (call-with-composable-continuation (λ (k) (set! g k)) p) > a) >

Re: [racket] ffi to java bytecode?

2014-03-10 Thread Charlie Jacobsen
After more thought, I can see this will be a lot different from ffi to C. You would probably need to fire up a jvm to execute the code? Not really sure. Charlie On Mon, Mar 10, 2014 at 7:58 PM, Charlie Jacobsen < charlie.jacob...@gmail.com> wrote: > Is this available? I found one or two sources

Re: [racket] call/comp, eq? and call-with-continuation-prompt

2014-03-10 Thread Matthew Flatt
I think this is a compiler bug, where the compiler is changing (let ([a (cons 1 2)]) (call-with-composable-continuation (λ (k) (set! g k)) p) a) to (begin (call-with-composable-continuation (λ (k) (set! g k)) p) (cons 1 2)) so you get a new pair each time the continuat

Re: [racket] call/comp, eq? and call-with-continuation-prompt

2014-03-10 Thread Spencer Florence
On a lovely side note, asumu fixed this small case by changing (set! g k) => (set! g (lambda () a (k))). However when I plugged that into the larger program I distilled this example from, `eq?' still returns #f. On Mon, Mar 10, 2014 at 10:07 PM, Matthias Felleisen wrote: > > Baffled, too. > > >

Re: [racket] call/comp, eq? and call-with-continuation-prompt

2014-03-10 Thread Matthias Felleisen
Baffled, too. On Mar 10, 2014, at 9:44 PM, Spencer Florence wrote: > For some reason the below program returns false: > > #lang racket > (define g #f) > (define p (make-continuation-prompt-tag)) > (define (t) > (let ([a (cons 1 2)]) > (call-with-composable-continuation (λ (k) (set! g k)

[racket] ffi to java bytecode?

2014-03-10 Thread Charlie Jacobsen
Is this available? I found one or two sources through a casual google search. (I'm building a plt-redex model for a programming language, and I would like to use the parser (which is written in java) to bring in the AST and then compile it to an s-expr for plt-redex. Maybe this is a dumb idea sinc

[racket] call/comp, eq? and call-with-continuation-prompt

2014-03-10 Thread Spencer Florence
For some reason the below program returns false: #lang racket (define g #f) (define p (make-continuation-prompt-tag)) (define (t) (let ([a (cons 1 2)]) (call-with-composable-continuation (λ (k) (set! g k)) p) a)) (call-with-continuation-prompt t p) (eq? (call-with-continuation-prompt g p

Re: [racket] Using new packages, step-by-step

2014-03-10 Thread Sam Tobin-Hochstadt
On Mon, Mar 10, 2014 at 7:34 PM, Matt Jadud wrote: > Hi Matthew, > > (Or, anyone else who chimes in...) > > I have not noticed whether there are rendered versions of 3rd-party library > documentation anywhere. Currently, there's no centralized place where you can read documentation for libraries

Re: [racket] Using new packages, step-by-step

2014-03-10 Thread Matt Jadud
Hi Matthew, (Or, anyone else who chimes in...) I have not noticed whether there are rendered versions of 3rd-party library documentation anywhere. Is the idea that I would: 1. git clone [lib] 2. open docs/... on my local machine if I'm curious about the library? (Or, install via IDE.) One of th

[racket] Looking for Racket Salon Tutorials

2014-03-10 Thread Daniel King
Hey Users, I want to expand Racket Salon Boston from talks to talks and tutorial sessions. I'm looking for someone to talk about a piece of Racket they use and understand well, then help the attendees write a program using that piece of Racket. I thought of doing an IRC client, maybe some machine

Re: [racket] Scribble and EPUB

2014-03-10 Thread Neil Van Dyke
Martin DeMello wrote at 03/10/2014 05:32 PM: How about scribble -> pandoc? That would give you a whole lot of other targets in one fell swoop. For non-profit purposes, I'm giving first priority to EPUB, which is pretty much the open standard. I'm happy to let Kindle-specific (KF8 and their o

Re: [racket] Scribble and EPUB

2014-03-10 Thread Martin DeMello
How about scribble -> pandoc? That would give you a whole lot of other targets in one fell swoop. martin On Sun, Mar 9, 2014 at 4:55 AM, Vincent St-Amour wrote: > I looked into EPUB generation from Racket (with the eventual goal of > making a Scribble back-end) some time last year. I didn't get

Re: [racket] Racket 6.0 does not work

2014-03-10 Thread Martin DeMello
On Mon, Mar 10, 2014 at 11:41 AM, Danny Yoo wrote: > As an aside: I do not understand the comment that VIM must be > installed from sources, either. A Google search for the term "vim > windows" comes with the first hit to the official VIM web site's link > to a pre-packaged, self-installing exec

Re: [racket] Knuth's algorithm S

2014-03-10 Thread Manfred Lotz
On Mon, 10 Mar 2014 15:09:28 -0400 Sean Kanaley wrote: > The current Racket algorithm has an error: > > (define counts (build-vector 10 identity)) > > This sets the counts to their indices, meaning e.g. 9 was pre-counted > 9 times. Switch the first line of the executable portion to run only >

Re: [racket] Knuth's algorithm S

2014-03-10 Thread Sean Kanaley
The current Racket algorithm has an error: (define counts (build-vector 10 identity)) This sets the counts to their indices, meaning e.g. 9 was pre-counted 9 times. Switch the first line of the executable portion to run only say 3 trials to see the effects. It should be: (define counts (make-v

Re: [racket] Racket 6.0 does not work

2014-03-10 Thread Danny Yoo
> > racket/bin/racket: /lib64/libc.so.6: version `GLIBC_2.14' not found (required > by racket/bin/racket) Note: this error has been seen in other contexts. A Google search for this term comes up with several hits: https://www.google.com/#q=%2Flib64%2Flibc.so.6%3A+version+%60GLIBC_2.14'+n