[racket] Implementing delimited continuations using a CPS transform

2011-11-23 Thread Patrick Li
Hello everyone, Does anyone know of a guide on how delimited continuations (reset/shift) can be implemented using a CPS transform? There is a paper for doing this in Scala, but I don't have a CS background and cannot understand the notation. I thought it might be similar to implementing full cont

Re: [racket] Beginner can't get some Macintosh command keys to work

2011-11-23 Thread Nadeem Abdul Hamid
Yes, this seems to happen to me sometimes too. I just tried Cmd+N to create a new file and it wasn't working; but it worked by selecting the "New" menu item. It seems to maybe have something to do with switching desktop "spaces" - because after doing that, the Cmd+N shortcut doesn't work, reliably.

[racket] Beginner can't get some Macintosh command keys to work

2011-11-23 Thread Leonard Cuff
I've just resumed my efforts to learn scheme after a long hiatus, and I can't seem to get to first base: I'm using Racket 5.2 with Macintosh Lion software (version 10.7.2). Many of the command keys don't seem to work. Specifically Cmd-R prints an r in whatever window I'm in, rather than running.

Re: [racket] list splat into variable arity

2011-11-23 Thread Louis-Philippe
great! thanks! 2011/11/23 Neil Van Dyke > Tony Garnock-Jones wrote at 11/23/2011 04:14 PM: > > On 2011-11-23 4:12 PM, Louis-Philippe wrote: >> >> >>> I looked around and couldn't find how to expand a list to fit as >>> multiple function arguments, for variable arity functions rest. >>> >>> >> (

[racket] Google Challenge

2011-11-23 Thread Wayne Iba
Yes, sorry I'm responsible for that abomination of a "starter-package starter". Actually, I could blame Neil for the idea but I wont. Two of my students and I took the Common Lisp starter package and translated that, with a few changes that brought it back closer to the ants.py approach. The las

Re: [racket] list splat into variable arity

2011-11-23 Thread Neil Van Dyke
Tony Garnock-Jones wrote at 11/23/2011 04:14 PM: On 2011-11-23 4:12 PM, Louis-Philippe wrote: I looked around and couldn't find how to expand a list to fit as multiple function arguments, for variable arity functions rest. (apply + '(1 2 3)) ? You can also do: (apply + 1 2 3 '(

Re: [racket] list splat into variable arity

2011-11-23 Thread Tony Garnock-Jones
On 2011-11-23 4:12 PM, Louis-Philippe wrote: > I looked around and couldn't find how to expand a list to fit as > multiple function arguments, for variable arity functions rest. (apply + '(1 2 3)) ? _ For list-related administrative tasks: http:/

[racket] list splat into variable arity

2011-11-23 Thread Louis-Philippe
Hi, I looked around and couldn't find how to expand a list to fit as multiple function arguments, for variable arity functions rest. must be simple... regards, L-P _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/u

Re: [racket] scribble: @verbatim inside macro

2011-11-23 Thread Jon Rafkind
This hack works for now: @(define-syntax-rule (my-example stuff) (begin @para{An example} (verbatim stuff))) On 11/23/2011 12:26 PM, Jon Rafkind wrote: I want to write a macro in scribble that will output a `verbatim' but I keep getting an error about 'expected pre-content? got #'. W

[racket] scribble: @verbatim inside macro

2011-11-23 Thread Jon Rafkind
I want to write a macro in scribble that will output a `verbatim' but I keep getting an error about 'expected pre-content? got #'. What should I do in the macro so that I can output verbatim? I tried various things other than `para' but none seem to work. @(define-syntax-rule (my-example stuff

Re: [racket] Racket Web Server: using passwords and basic auth

2011-11-23 Thread Jay McCarthy
Hi, Take a look at http://docs.racket-lang.org/web-server/http.html#(part._basic-auth) for a basic example of using Basic Auth. If you don't want to define your own password file format, then you can use the helpers in http://docs.racket-lang.org/web-server-internal/dispatch-passwords.html to

[racket] Racket Web Server: using passwords and basic auth

2011-11-23 Thread Данил Анненков
Hi! I'm just start using Racket Web Server for small application to parse, query and display logs via web interface. And I have some troubles with understanding such a thing: can I use password-authentication parameter then I starting my application with serve/servlet? I need basic authentication f

Re: [racket] Google Challenge

2011-11-23 Thread Matthias Felleisen
On Nov 23, 2011, at 9:39 AM, Sam Tobin-Hochstadt wrote: > Here's the overview and existing starter packages: > http://aichallenge.org/starter_packages.php > There's a faq that talks about it here: http://aichallenge.org/faq.php > Here's the guide to creating starter packages: I found all those

Re: [racket] Google Challenge

2011-11-23 Thread Sam Tobin-Hochstadt
Here's the overview and existing starter packages: http://aichallenge.org/starter_packages.php There's a faq that talks about it here: http://aichallenge.org/faq.php Here's the guide to creating starter packages: https://github.com/aichallenge/aichallenge/wiki/Ants-Starter-Pack-Guide On Wed, Nov 2

Re: [racket] Google Challenge

2011-11-23 Thread Matthias Felleisen
The package translates ant.py directly, which is fine. But is there a general description for a 'starter package'. I haven't been able to find one. -- Matthias On Nov 23, 2011, at 2:59 AM, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 22-11-11 19:44, Jordan Schatz