Re: [racket] What controls the web-server continuation URL?

2011-01-17 Thread Norman Gray
Jay, hello. On 2011 Jan 17, at 15:23, Jay McCarthy wrote: > If from within a servlet, you want to adjust the URL, you can just > copy the ids from the url produced by send/* and change the base. > Here's a little example: > > #lang racket > (require rackunit > web-server/servlet/web >

Re: [racket] Failing to compile PLT Scheme v372

2011-01-17 Thread Robby Findler
Turns out that that did work on Fedora 14 but didn't work in Fedora 13 (or maybe 12). Robby 2011/1/17 Matthew Flatt : > You can try modifying the source code to add > >  #ifdef MZ_XFORM >  START_XFORM_SKIP; >  #endif > > before the double_eqv() function in "bool.c" (line 127) and then > >  #ifdef

Re: [racket] Failing to compile PLT Scheme v372

2011-01-17 Thread Matthew Flatt
You can try modifying the source code to add #ifdef MZ_XFORM START_XFORM_SKIP; #endif before the double_eqv() function in "bool.c" (line 127) and then #ifdef MZ_XFORM END_XFORM_SKIP; #endif after the function. I think you'll have to do that for one or two other functions that trigger th

[racket] Failing to compile PLT Scheme v372

2011-01-17 Thread João Ricardo Sares Teles de Matos
Hello, I'm failing to compile PLT Scheme v372 under Debian 6.0 "Squeeze" GNU/Linux i386. When running make, it eventually fails with the following error message: Done making xform-collects. [...] env XFORM_USE_PRECOMP=xsrc/precomp.h ../mzschemecgc -rq ./xform.ss --setup --cpp "gcc -E -DNEW

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Robby Findler
If you have not seen this yet, this is where you want to start: http://docs.racket-lang.org/guide/performance.html#%28part._effective-futures%29 Robby On Mon, Jan 17, 2011 at 2:40 PM, Jos Koot wrote: > I trieed some examples of my own. But I shall try the examples of the docs > ASAP. > More tom

[racket] PADL'11 - Call for Participation

2011-01-17 Thread Ricardo Rocha
Call for Participation == 13th International Symposium on Practical Aspects of Declarative Languages (PADL 2011) http://www.dcc.fc.up.pt/PADL-2011 Austin, Texas, USA, January

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Robby Findler
With futures you have to be careful; it is easy to write code that doesn't end up actually being parallel. Did you try the examples from the docs? Robby On Mon, Jan 17, 2011 at 1:27 PM, Jos Koot wrote: > I did try futures, but did not observe two processors being used > simultaneously. > Jos > >

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Jos Koot
I did try futures, but did not observe two processors being used simultaneously. Jos > -Original Message- > From: robby.find...@gmail.com > [mailto:robby.find...@gmail.com] On Behalf Of Robby Findler > Sent: 17 January 2011 20:22 > To: Jos Koot > Cc: Noel Welsh; users@racket-lang.org > S

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Robby Findler
Oh, yes. DrRacket does not try to use two processors for anything (unless your program uses futures or places, of course). Robby On Mon, Jan 17, 2011 at 10:25 AM, Jos Koot wrote: > Thanks for your reply. > What I am observing is that when running DrScheme without any other apps > running, only o

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Eduardo Bellani
Maybe it would be a nice idea to add a link to this paper in the docs? On 01/14/2011 11:28 PM, Robby Findler wrote: > The construct 'thread' is as you describe. The construct 'future', > however, could easily (in a generic sense) be called a 'thread which > multi-threaded enabled cpu will run trul

Re: [racket] racket ppa for ubuntu

2011-01-17 Thread Laurent
Great, thanks! On Mon, Jan 17, 2011 at 16:35, Jon Rafkind wrote: > Yea I'll try to make a nightly build ppa. > > > On 01/17/2011 12:07 AM, Laurent wrote: > > Thank you very much Jon. > Do you plan to deal with nightly builds too? > > On Fri, Jan 14, 2011 at 23:15, Jon Rafkind wrote: > >> There

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Kevin Tew
I'll look into it. I haven't tried places on windows in some time, I'll bring up to date this week. Kevin On 01/17/2011 08:13 AM, Robby Findler wrote: I think the real reason is actually much sadder: no one on the core team regularly uses windows. Well, until about a month ago, when I started

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Jos Koot
Thanks for your reply. What I am observing is that when running DrScheme without any other apps running, only one processor is used at a time, although control often swichtes bnetween the two processors. I also observe that windows 7 aborts DrScheme when more than 2Gbyte of memory is being used. I

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Jos Koot
Thanks for this info. Perhaps I should install linux besides windows 7, but I am not sure how to do that. I am not even sure it is possible. I'm afraid that just trying may ruin my system. The Windows help desk is not very helpful. Jos > -Original Message- > From: Noel Welsh [mailto:noelw

Re: [racket] racket ppa for ubuntu

2011-01-17 Thread Jon Rafkind
Yea I'll try to make a nightly build ppa. On 01/17/2011 12:07 AM, Laurent wrote: > Thank you very much Jon. > Do you plan to deal with nightly builds too? > > On Fri, Jan 14, 2011 at 23:15, Jon Rafkind > wrote: > > There was a convenient button on the launchpad web

Re: [racket] What controls the web-server continuation URL?

2011-01-17 Thread Jay McCarthy
Hi Norman, Whatever URL the servlet is initiated with is used as the base URL for all subsequent continuations. So, if you contact the servlet at URL /a/b/c then it will append the continuation tokens to /a/b/c. Since you have set the servlet-regexp to #rx"", you are free to contact it with any UR

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-17 Thread Neil Van Dyke
FWIW, in load testing of a large Web app using SCGI, under PLT 4.2.5 with CGC, we haven't yet found any memory leaks. The process size would grow initially and then plateau at a reasonable size. A general good fallback plan, whatever your technology (Racket, or something else), is to retire s

Re: [racket] What controls the web-server continuation URL?

2011-01-17 Thread Norman Gray
Noel, hello. On 2011 Jan 17, at 14:47, Noel Welsh wrote: > I should have a better answer, but all I can think of right now is > adding a dispatcher that captures all requests to /podcasting, and > adding a simple dispatcher + servlet to redirect / to /podcasting. The > web server documents dispa

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Robby Findler
I think the real reason is actually much sadder: no one on the core team regularly uses windows. Well, until about a month ago, when I started using windows for my development tasks so hopefully that'll change. But I'm not sure what Jos is observing and I was expecting a reply from Kevin or Matthe

Re: [racket] Expanding frozen Racket core - limitations of universal touring machine

2011-01-17 Thread Jukka Tuominen
Hi Noel, > -Original Message- > From: Noel Welsh [mailto:noelwe...@gmail.com] > Sent: 17 January 2011 16:38 > To: Jukka Tuominen > Cc: users@racket-lang.org > Subject: Re: [racket] Expanding frozen Racket core - limitations of > universal touring machine > > > On Sat, Jan 15, 2011 at 12:1

Re: [racket] racket http server, major GC: -216 bytes collected

2011-01-17 Thread Noel Welsh
On Tue, Jan 11, 2011 at 11:28 PM, Stefan Schmiedl wrote: > While the amount _is_ quite small, I am still concerned by it. I am > currently looking for a platform to develop and deploy one or two > web apps on, and a memory leak would mean that I either can't use > racket or would have to work arou

Re: [racket] Efficiency of tight loops in Racket

2011-01-17 Thread Noel Welsh
I've seen lots of recent commits dealing w/ Windows 7 / 64-bit support, so I expect it is simply time. Windows is not as developer friendly as Unix so likely to receive new features last (as a guess). N. On Sat, Jan 15, 2011 at 5:22 PM, Jos Koot wrote: > Is there a specific reason why there is n

Re: [racket] cp-write: error writing (Socket is not connected; errno=57)

2011-01-17 Thread Noel Welsh
I don't know for sure, but it could be you are running out of sockets on your local machine. In my experience it seems to take some time for the OS to recycle a socket. Try adding a delay to the loop. HTH, N. On Sun, Jan 16, 2011 at 11:44 AM, Niitsuma Hirotaka wrote: > I use racket for web crawl

Re: [racket] What controls the web-server continuation URL?

2011-01-17 Thread Noel Welsh
I should have a better answer, but all I can think of right now is adding a dispatcher that captures all requests to /podcasting, and adding a simple dispatcher + servlet to redirect / to /podcasting. The web server documents dispatchers. HTH, N. On Mon, Jan 17, 2011 at 12:22 AM, Norman Gray wro

Re: [racket] What controls the web-server continuation URL?

2011-01-17 Thread Noel Welsh
I should have a better answer, but all I can think of right now is adding a dispatcher that captures all requests to /podcasting, and adding a simple dispatcher + servlet to redirect / to /podcasting. The web server documents dispatchers. HTH, N. On Mon, Jan 17, 2011 at 12:22 AM, Norman Gray wro

Re: [racket] Expanding frozen Racket core - limitations of universal touring machine

2011-01-17 Thread Noel Welsh
On Sat, Jan 15, 2011 at 12:16 PM, Jukka Tuominen wrote: > Now, imagine the read-only OS was a snapshot of Racket+Linux+stuff, a few > years ago. > > - Given the above, I wonder if there are any theoretical limits preventing > to achieve all the same functionality that are in the current or future

Re: [racket] Plot to png

2011-01-17 Thread Matthew Flatt
I see that `#:out-file' is missing from the docs, and I'll fix that. At Mon, 17 Jan 2011 14:24:55 +, Noel Welsh wrote: > If you specify out-file as an initialisation parameter I think it will > be saved to the named file. > > #lang scheme > (require plot) > > (plot > (line sin) > #:out-fil

Re: [racket] Confusing behavior with continuation-marks

2011-01-17 Thread Matthew Flatt
At Sat, 15 Jan 2011 11:54:20 -0500, Eric Dobson wrote: > The fix seems to work, but it doesn't work for the value > parameterization-key exported by #%paramz. > > (require '#%paramz) > > (define value 'value) > (define (test key) > (with-continuation-mark key value > (call-with-continuation

Re: [racket] Snooze and set operations.

2011-01-17 Thread Noel Welsh
Hi, I don't really understand the question. IIRC Snooze doesn't support union and intersect as operators. If you want to add them you can fork Snooze on Github. Does that help? Cheers, N. On Thu, Jan 13, 2011 at 6:33 PM, Eduardo Bellani wrote: > Hello there. > > I am trying to use Set operation

Re: [racket] Plot to png

2011-01-17 Thread Noel Welsh
If you specify out-file as an initialisation parameter I think it will be saved to the named file. #lang scheme (require plot) (plot (line sin) #:out-file "foo.png") HTH, N. On Mon, Jan 17, 2011 at 12:18 PM, Milan Markovic wrote: > Hello everybody, > I looked several times through the docs a

Re: [racket] Plot to png

2011-01-17 Thread Thomas Chust
2011/1/17 Milan Markovic : > [...] > I was wondering if I could save a plot directly to an image file without > having to "fish" it out of the REPL and right click. > [...] Hello Milan, plot views support the convertible protocol. Try something like this: #lang racket/base (require file/conv

Re: [racket] Plot to png

2011-01-17 Thread Matthias Felleisen
Contrary to the docs, a plot-view inherits from image-snip, which means you should be able to get the bitmap and from there you should be able to write things to a file. (See below.) But this is clearly an oversight and calls for an extension. Then again, perhaps I am overlooking things -- Ma

[racket] Plot to png

2011-01-17 Thread Milan Markovic
Hello everybody, I looked several times through the docs and couldn't find anything to solve my problem. I was wondering if I could save a plot directly to an image file without having to "fish" it out of the REPL and right click. I am looking into automatically creating a series of graphs direct