Re: [racket] Servlet static file paths, I just don't get it

2013-09-30 Thread David Vanderson
Erich, In addition to Jay's options, I think one way to do what you want is to remove the "else" clause from dispatch-rules and instead pass your "respond-unknown" function to the serve/servlet #:file-not-found-responder keyword: #lang racket (require web-server/servlet-env web-serv

Re: [racket] Servlet static file paths, I just don't get it

2013-09-30 Thread Jay McCarthy
On Sun, Sep 29, 2013 at 1:50 PM, Erich Rast wrote: > Thanks a lot! That's what I was suspecting already. > > But I still wonder how to do achieve what I want. how do I make > "http://my-server.com/lottery"; respond to my lottery servlet, but every > other request to respond with respond-unknown *a

Re: [racket] raco option to strip unused libraries and code from exes?

2013-09-30 Thread Jay McCarthy
The demodularizer (raco demod) is a tool that does this somewhat, although some of the things it can remove are unsound. We're working on making it even better by re-optimizing after demodularizing, but that is future work. Jay On Mon, Sep 30, 2013 at 5:25 PM, Daniel Prager wrote: > Is there an

Re: [racket] closing tab in Unix?

2013-09-30 Thread Sam Tobin-Hochstadt
On Mon, Sep 30, 2013 at 8:18 PM, John Clements wrote: > > On Sep 28, 2013, at 9:22 PM, Manfred Lotz wrote: > >> On Sat, 28 Sep 2013 13:55:34 -0700 >> John Clements wrote: >> >>> I feel as though the answer must be howlingly obvious, but I'm >>> missing it somehow; how are UNIX-users supposed to c

Re: [racket] closing tab in Unix?

2013-09-30 Thread John Clements
On Sep 28, 2013, at 9:22 PM, Manfred Lotz wrote: > On Sat, 28 Sep 2013 13:55:34 -0700 > John Clements wrote: > >> I feel as though the answer must be howlingly obvious, but I'm >> missing it somehow; how are UNIX-users supposed to close tabs without >> the mouse? After quite a bit of exploratio

[racket] raco option to strip unused libraries and code from exes?

2013-09-30 Thread Daniel Prager
Is there an option to strip down raco-produced exes to reduce size / speed-up loading time? I understand that I can use racket/base and explicitly include files, but wondered if there was an option that shifted the burden from huma in to machine! Thanks Dan Racket Users l

Re: [racket] Some MPI code

2013-09-30 Thread Grant Rettke
LOL On Mon, Sep 30, 2013 at 4:29 PM, Jay McCarthy wrote: > Hah. I forgot a NOT. I meant to say I was NOT offended. Haha. Whoops. > > Jay > > On Mon, Sep 30, 2013 at 3:15 PM, Jay McCarthy wrote: >> On Mon, Sep 30, 2013 at 3:06 PM, Grant Rettke wrote: >>> On Mon, Sep 30, 2013 at 1:44 PM, Jay McCa

Re: [racket] Some MPI code

2013-09-30 Thread Jay McCarthy
Hah. I forgot a NOT. I meant to say I was NOT offended. Haha. Whoops. Jay On Mon, Sep 30, 2013 at 3:15 PM, Jay McCarthy wrote: > On Mon, Sep 30, 2013 at 3:06 PM, Grant Rettke wrote: >> On Mon, Sep 30, 2013 at 1:44 PM, Jay McCarthy wrote: >>> Sorry Grant, I don't understand what you mean. Is it

Re: [racket] Some MPI code

2013-09-30 Thread Jay McCarthy
On Mon, Sep 30, 2013 at 3:06 PM, Grant Rettke wrote: > On Mon, Sep 30, 2013 at 1:44 PM, Jay McCarthy wrote: >> Sorry Grant, I don't understand what you mean. Is it a basic starting >> point on what? It looks to me like it tries to do the same thing as >> the OpenMPI package: >> >> https://pkg.rac

Re: [racket] Some MPI code

2013-09-30 Thread Grant Rettke
On Mon, Sep 30, 2013 at 1:44 PM, Jay McCarthy wrote: > Sorry Grant, I don't understand what you mean. Is it a basic starting > point on what? It looks to me like it tries to do the same thing as > the OpenMPI package: > > https://pkg.racket-lang.org/info/openmpi > > But I'm not sure. Is there some

[racket] no gui-based setup re-run?

2013-09-30 Thread John Clements
Several of my students find themselves needing to re-run "raco setup rsound"; this appears to be because of updates that I made to the package that it depends on, portaudio. It appears to me that in 5.3.6, the only way to do this is to run "raco setup rsound" from the command-line or to evaluate

Re: [racket] convert scribble block directly to xexpr?

2013-09-30 Thread Sam Tobin-Hochstadt
Cool! I wrote something similar a while ago -- feel free to steal source code from here: https://github.com/samth/paste.rkt The idea of using scribble for highlighting is very clever. Sam On Mon, Sep 30, 2013 at 3:54 PM, Stephen Chang wrote: > Hi users, > > Now that Racket has a state-of-the-a

[racket] convert scribble block directly to xexpr?

2013-09-30 Thread Stephen Chang
Hi users, Now that Racket has a state-of-the-art package system and a smashing-success conference, I think the obvious missing element in the path to world domination is our very own pastebin, so I made one during the hackathon. It renders a paste with scribble, to get syntax coloring and doc lin

Re: [racket] Some MPI code

2013-09-30 Thread Jay McCarthy
Sorry Grant, I don't understand what you mean. Is it a basic starting point on what? It looks to me like it tries to do the same thing as the OpenMPI package: https://pkg.racket-lang.org/info/openmpi But I'm not sure. Is there something else it does? Is the openmpi package insufficient in some wa

[racket] Bug in path-replace-suffix?

2013-09-30 Thread Thomas Chust
Hello, during the development of the PLaneT package for protocol buffers [1] a likely bug in Racket's standard library function path-replace-suffix has shown up [2]. When you apply path-replace-suffix to a path that is not native to the platform on which Racket is running, the procedure strips al