Re: [racket] Metaprogramming with scheme

2010-06-22 Thread Valeriya Pudova
> (with-input-from-file "foo.ss" > (lambda () >(parameterize ([error-display-handler (lambda (name . stuff) > (printf "Got ~a ~a\n" name stuff))]) > (eval-syntax (read-syntax 'foo.ss) Last quoestion. Is there any way to define error-display-handler to printout the back trace eve

Re: [racket] Web Application Deployment

2010-06-22 Thread synx
I looked over the FastCGI and SCGI protocols, and concluded that they weren't much more efficient than a protocol known as HTTP. Why not proxy your data to a webserver, using apache's proxy module? My apache2.conf has a lot of these in it: ProxyPass http://127.0.0.1:/ retry=10 If

Re: [racket] Web Application Deployment

2010-06-22 Thread Anton van Straaten
Karl Winterling wrote: I'm a college student in California, so I can't afford a World of Warcraft account. However, I might try to design and "sell" a Racket application to my Co-op. so I'll need to avoid sounding mentally disturbed to the central IT staff. Be aware that IT staff might be a bit

Re: [racket] Web Application Deployment

2010-06-22 Thread Matthias Felleisen
Go for the CGI library then, it works well and patches are welcome On Jun 22, 2010, at 3:40 PM, Karl Winterling wrote: I'm a college student in California, so I can't afford a World of Warcraft account. However, I might try to design and "sell" a Racket application to my Co-op. so I'll need t

Re: [racket] Web Application Deployment

2010-06-22 Thread Karl Winterling
I'm a college student in California, so I can't afford a World of Warcraft account. However, I might try to design and "sell" a Racket application to my Co-op. so I'll need to avoid sounding mentally disturbed to the central IT staff. On Tue, Jun 22, 2010 at 12:21 PM, Neil Van Dyke wrote: > Racke

Re: [racket] Web Application Deployment

2010-06-22 Thread Neil Van Dyke
Racket comes with a CGI library. I recently ported a large legacy Racket (PLT Scheme) CGI-based application to SCGI using "http://www.neilvandyke.org/scgi-scheme/";. For new development, consider using the PLT Web Server instead of SCGI or old CGI. Nowadays, virtual servers like Amazon EC2 a

Re: [racket] [plt-scheme] [redex] matching question

2010-06-22 Thread Casey Klein
On Fri, Jun 4, 2010 at 1:48 PM, Casey Klein wrote: > On Fri, Jun 4, 2010 at 1:14 PM, Eric Tanter wrote: >> Hi, >> >> I have a subtype? metafunction where one clause is as follows: >> >> ((subtype? C_0 C_1 CT) >>   #t >>   (side-condition (not (equal? (term C_0) (term Object >>   (where (C_0 C

[racket] Web Application Deployment

2010-06-22 Thread Karl Winterling
It appears that you need a PLT Web server running on your site's host to deploy Web applications. Is it possible to deploy applications on shared hosting with Apache and something like CGI or FastCGI? _ For list-related administrative tasks: http:

[racket] DrRacket and snippets

2010-06-22 Thread Groshev Dmitry
Is there any tool for add some snippets to DrRacket? I use some packets from PLaneT quite frequently, and it's very boring to copy and paste (require... ) again and again. Is there any way to make this more simple? _ For list-related administrativ

Re: [racket] Metaprogramming with scheme

2010-06-22 Thread Valeriya Pudova
On 22.06.2010 11:34, Eli Barzilay wrote: (define (foo3 x) (/ x "1")) (define (foo2 x) (foo3 x)) (define (foo1 x) (list (foo2 x))) (define (foo0 x) (car (foo1 x))) (+ 1 (foo0 3))

Re: [racket] Metaprogramming with scheme

2010-06-22 Thread Eli Barzilay
On Jun 22, Valeriya Pudova wrote: > > (define (foo a b) >(for-each (lambda (e) (display e)(newline)) > (continuation-mark-set->context (current-continuation-marks > > (define (bar a b) >(foo a b)) > > (bar 1 2) > [...] > > Interesting. There are no the function bar in the backtrace

Re: [racket] Metaprogramming with scheme

2010-06-22 Thread Valeriya Pudova
The continuation marks included in the exception are effectively a stack trace, and you can convert them into locations. See the docs. :) Reading about continuation marks. Great feature those continuation marks. But does not looks helpful this case. To be able to get mark i should set

Re: [racket] Metaprogramming with scheme

2010-06-22 Thread Noel Welsh
On Mon, Jun 21, 2010 at 4:25 PM, Valeriya Pudova wrote: > That the problem. The location will be location inside foo but not location > where foo was called from The continuation marks included in the exception are effectively a stack trace, and you can convert them into locations. See the docs.

Re: [racket] Metaprogramming with scheme

2010-06-22 Thread Valeriya Pudova
On 22.06.2010 10:40, Valeriya Pudova wrote: The continuation marks included in the exception are effectively a stack trace, and you can convert them into locations. See the docs. :) Reading about continuation marks. Great feature those continuation marks. But does not looks helpful thi

Re: [racket] Metaprogramming with scheme

2010-06-22 Thread Valeriya Pudova
On 22.06.2010 9:31, Noel Welsh wrote: On Mon, Jun 21, 2010 at 4:25 PM, Valeriya Pudova wrote: > That the problem. The location will be location inside foo but not location > where foo was called from The continuation marks included in the exception are effectively a stack trace, a