Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Deren Dohoda
I am not opposed to working with my tools rather than against them. Sometimes it just takes a head-slap. Thanks for your help. Deren On Mon, Apr 23, 2012 at 9:36 PM, Robby Findler wrote: > Here's a way to write your second example: > > - > @chunk[ >      (let loop ((cs c-primes) >  

Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Robby Findler
Here's a way to write your second example: - @chunk[ (let loop ((cs c-primes) (ds d-primes) (xs empty) (last-d )) (if (empty? cs) ... We initialize @racket[last-d] to one @chunk[ 1] because ... - and I be

Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Deren Dohoda
Hi Robby, Yes, you are right, it isn't a critical problem. Truth be told, Racket itself is nice enough to make it less of a problem, and certainly #lang scribble/lp being run directly rather than extracted to a separate file makes a lot of comments superfluous. An enormous number of them. Using no

Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Robby Findler
I think that the intention with literate programming is that you don't really want to use comments in the chunks. Instead, you can actually write what would be comments in the running text that gets produced when you render the document with Scribble (and dropped when evaluated). If that's not mak

Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Matthias Felleisen
Some more investigation: If you remove the hack mentioned below, your comments in chunks disappear: #lang scribble/lp Literate programs have chunks of code, like this one: @chunk[ (define (f x) ;; hello world disappears )] and this one: @chunk[ (* x x)] t

Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Matthias Felleisen
This > 91100:commit a1f9a6f1abc5dc278fbe43b25d9d7c547665f1c6 > 91101-Author: Matthias Felleisen > 91102-Date: Tue May 19 22:23:17 2009 + > 91103- > 91104-added hack to allow some comments in LP > 91105- looks like Eli submitted something in my name :-) I just don't use the word '

Re: [racket] Typed Racket and GUI development

2012-04-23 Thread Sam Tobin-Hochstadt
On Mon, Apr 23, 2012 at 5:43 PM, Patrick Mahoney wrote: > Hello All, > > Is it currently possible to type gui elements racket/gui/base in typed > racket? I'm interested in migrating a small gui app to typed racket, but > there isn't a typed/racket/gui/base module. I guess what I am really looking

Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Robby Findler
I see that commit a1f9a6f1 seems to have been done by you, Matthias, and is related to this issue. Does that job any memories? Robby On Sun, Apr 22, 2012 at 2:36 PM, Matthias Felleisen wrote: > > I haven't used /lp myself. I am stuck here -- Matthias > > > > On Apr 22, 2012, at 12:25 AM, Deren D

[racket] Typed Racket and GUI development

2012-04-23 Thread Patrick Mahoney
Hello All, Is it currently possible to type gui elements racket/gui/base in typed racket? I'm interested in migrating a small gui app to typed racket, but there isn't a typed/racket/gui/base module. I guess what I am really looking to determine is whether it is going to be possible to type objects

[racket] Stateless Web Server: Generating a response on a stuffer error

2012-04-23 Thread Galler
Description: the stateless webserver allows a user to generate a stuffer to manipulate the encoding of the ANF sent to the client in the URL For example (stuffer-chain serialize-stuffer (stuffer-compose base64-stuffer (HMAC-SHA1-stuffer #"mysupersecretkey"))) will prepend a digest to the b

Re: [racket] scribble/lp: comments stripped, how to stop?

2012-04-23 Thread Deren Dohoda
I've never gotten into anything but trivial syntax operations. I'd be happy to dig further if anyone can get me started on stepping though expansions of included files. Sounds like a good learning opportunity. On Apr 22, 2012 3:34 PM, "Matthias Felleisen" wrote: > > I haven't used /lp myself. I

Re: [racket] PLT-Web-Server unter Apache

2012-04-23 Thread J G Cho
Thank you. It seems to work. To recap: On Ubuntu edit /etc/apache2/sites-enabled/default ProxyPass /apps/ http://localhost:8080/apps/ ProxyPassReverse /apps/ http://localhost:8080/apps/ #:servlet-path "/apps/" I did not have the trailing / in my tests and Apache did not forward apps;k-url to

Re: [racket] help with building racket on Solaris-Sparc

2012-04-23 Thread HP Wei
On the Solaris-Sparc machine, I tried 'configure with --enable-sgc' and was stuck when make was compiling racket/src/port.c: gcc -I -DUSE_SENORA_GC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMZ_USES_SHARED_LIB -fPIC -DPIC port.c:792 error: invalid application of 'sizeof' to incompl

[racket] Exciting Postdoc Opportunity: Formal Correctness Methods in Parallel Computational Frameworks

2012-04-23 Thread Ganesh Gopalakrishnan
We are seeking Post-doctoral Research Fellows to work on an exciting new project at the University of Utah, Salt Lake City, UT, USA. The project offers unique opportunities to bring formal correctness methods during the advancement of a computational framework called Uintah that currently runs o