Re: [racket] current backtrace implications of JIT

2010-06-27 Thread Neil Van Dyke
I've been unable to break JIT backtraces in our large legacy application under PLT 4.2.5. This is great news, since the JIT should be a big win for us. Thanks, Matthew and the rest of PLT. Neil Van Dyke wrote at 06/27/2010 11:38 PM: Thanks, Matthew. Sounds like I should experiment with my ap

Re: [racket] current backtrace implications of JIT

2010-06-27 Thread Neil Van Dyke
Thanks, Matthew. Sounds like I should experiment with my application and try to break JIT backtraces with 4.2.5. Hopefully they just work for me (and in production), because the JIT would be a big win for us. Matthew Flatt wrote at 06/27/2010 11:23 PM: The difference between JIT and non-JIT

Re: [racket] enter! not working?

2010-06-27 Thread Matthew Flatt
Ok --- I'll work on the Guide to try to make it clearer. Thanks, Matthew At Mon, 28 Jun 2010 13:26:33 +1000, Brad Long wrote: > Thankyou. My bad. Me newbie - guess you can tell! > > Quoting Matthew Flatt : > > > Are you working with the `racket' command-line program or within > > DrRacket? > >

[racket] Fwd: Re: Loop in Racket

2010-06-27 Thread Brad Long
Thankyou for your responses re loop. - Forwarded message from b...@longbrothers.net - Date: Mon, 28 Jun 2010 11:44:25 +1000 From: Brad Long Reply-To: Brad Long Subject: Re: [racket] Loop in Racket To: Robby Findler Wow! Sorry, didn't realise they existed. These construc

Re: [racket] enter! not working?

2010-06-27 Thread Brad Long
Thankyou. My bad. Me newbie - guess you can tell! Quoting Matthew Flatt : Are you working with the `racket' command-line program or within DrRacket? Within DrRacket, you don't need `enter!'. At Sun, 27 Jun 2010 22:06:52 +1000, "Brad Long" wrote: I am using DrRacket Version 5 on Windows. When

Re: [racket] current backtrace implications of JIT

2010-06-27 Thread Matthew Flatt
At Sun, 27 Jun 2010 23:07:16 -0400, Neil Van Dyke wrote: > What effect does the JIT currently have on debugging backtraces? Or, > how can one get some or all of the benefit of the JIT, but still > reliably get useful backtraces? The JIT backtraces have gotten slightly better in some corner case

Re: [racket] Loop in Racket

2010-06-27 Thread John Clements
On Jun 27, 2010, at 6:32 PM, Brad Long wrote: > Dear racketeers, > > What is the reason for not offering a looping construct in racket? For > example, something like: > > (loop (i 1 10) (print i)) > It's there: (for/list ([i (in-range 1 10)]) i) prints out '(1 2 3 4 5 6 7 8 9) ... also

Re: [racket] enter! not working?

2010-06-27 Thread Matthew Flatt
Are you working with the `racket' command-line program or within DrRacket? Within DrRacket, you don't need `enter!'. At Sun, 27 Jun 2010 22:06:52 +1000, "Brad Long" wrote: > I am using DrRacket Version 5 on Windows. When I follow the example (see > below) and get to the part where I am suppposed

[racket] current backtrace implications of JIT

2010-06-27 Thread Neil Van Dyke
What effect does the JIT currently have on debugging backtraces? Or, how can one get some or all of the benefit of the JIT, but still reliably get useful backtraces? I see that DrScheme now has an option for disabling some JIT optimizations. Should I just do whatever that checkbox is doing?

Re: [racket] Loop in Racket

2010-06-27 Thread Neil Van Dyke
FWIW, I like to assert that the familiar "FOR A = 1 TO 10" is actually not often needed in idiomatic Scheme. More often, you're processing a sequence, or you're doing functional programming such that you need to recurse anyway to avoid mutation, or you need premature exits sometimes. One poss

Re: [racket] Loop in Racket

2010-06-27 Thread Matthias Felleisen
Plus loops per se are evil -- opium for the masses if you so wish. -- Matthias On Jun 27, 2010, at 9:34 PM, Robby Findler wrote: > Please see 'for' in the docs. Here's the relevant section of the Guide: > > http://docs.racket-lang.org/guide/for.html > > Robby > > On Sun, Jun 27, 2010 at 8:

Re: [racket] Loop in Racket

2010-06-27 Thread Robby Findler
Please see 'for' in the docs. Here's the relevant section of the Guide: http://docs.racket-lang.org/guide/for.html Robby On Sun, Jun 27, 2010 at 8:32 PM, Brad Long wrote: > Dear racketeers, > > What is the reason for not offering a looping construct in racket? For > example, something like: > >

[racket] Loop in Racket

2010-06-27 Thread Brad Long
Dear racketeers, What is the reason for not offering a looping construct in racket? For example, something like: (loop (i 1 10) (print i)) Just for the masses, it seems simpler to use. Any comments? _ For list-related administrative tasks:

Re: [racket] shp.plt 1:2 example fail..

2010-06-27 Thread YC
SHP 1.2 expects the following directory structures in its site - - root (anywhere you specify) - shp - file - js - css - ... So in the example site that you used, the file sub directory does not exist and hence you are seeing the error. If you add the file su

[racket] Planet crashing, hanging upgade during compilation

2010-06-27 Thread synx
So I was installing racket yesterday and noticed that the installation was hanging on the sub-installation of a planet package. I looked at the situation, tried removing any proxies I might have set up, but nothing I could do would install that package. So I used 'raco planet url' to find the URL

Re: [racket] Can I trace calls of a function?

2010-06-27 Thread Sam Tobin-Hochstadt
On Sun, Jun 27, 2010 at 8:40 AM, Laurent wrote: > > > On Sun, Jun 27, 2010 at 14:35, Sam Tobin-Hochstadt > wrote: >> >> #lang racket >> >> (require racket/trace) >> >> (define (f x) >>  (if (zero? x) "done" (f (sub1 x >> >> (trace f) >> >> (f 100) > > > Is it possible to add this example to t

Re: [racket] raco-style command line parsing library?

2010-06-27 Thread Robby Findler
I don't know of one. Planet has some code that might make a good starting point (Jacob wrote it). Robby On Sun, Jun 27, 2010 at 4:49 PM, Richard Cobbe wrote: > Is there an alternative to the `command-line' form that supports the use of > raco-style (svn-style, cvs-style, etc.) command lines, whe

[racket] raco-style command line parsing library?

2010-06-27 Thread Richard Cobbe
Is there an alternative to the `command-line' form that supports the use of raco-style (svn-style, cvs-style, etc.) command lines, where the first argument is a subcommand, and each subcommand takes a different set of arguments and options? I know that in v4, planet had such a library, but it star

[racket] enter! not working?

2010-06-27 Thread Brad Long
I am using DrRacket Version 5 on Windows. When I follow the example (see below) and get to the part where I am suppposed to use "enter!", I get this error: reference to an identifier before its definition: enter! Thanks for any help. Brad. ===> START #lang racket (define (extract str)

[racket] (no subject)

2010-06-27 Thread Sayed
Hello, I am currently working on a website powered by racket and I am at a stage where I am trying to establish an authenticated presence on the website. The way I envision doing so is with an html form, comparing the inputting values (essentially username and password) against what I have in a mys

Re: [racket] procedure get-compiled-file-sha1: expects 1 argument, given 2

2010-06-27 Thread Laurent
> And I don't know what is the problem with the icon. It is a 16x16, 32-bit > file. > the problem was apparently with the ico file itself, which did not include *all* specified format, as said in the docs. (using SimplyIcon solved my problem, if anyone cares) Now remains the question of what the

Re: [racket] procedure get-compiled-file-sha1: expects 1 argument, given 2

2010-06-27 Thread Laurent
> However, from the command line, I get another error: > <<< > E:\Projets\Scheme-svn\towers>racket -S E:\Projets\Scheme-svn compile.rkt > car: expects argument of type ; given '() > > === context === > M:\Program Files\Racket\collects\compiler\private\winicon.rkt:514:44: loop > M:\Program Files\Ra

[racket] procedure get-compiled-file-sha1: expects 1 argument, given 2

2010-06-27 Thread Laurent
Compilation issue again. As Matthew explained, I turned off debugging, also turned off "preserve stack trace". I executed the code in DrRacket and it works fine. Then I tried in the same interaction (if I am not mistaken): > (require compiler/embed) > (create-embedding-executable "towers.exe"

Re: [racket] Compilation and additional collections

2010-06-27 Thread Laurent
On Sat, Jun 19, 2010 at 14:42, Laurent wrote: > Hi all, > > I'm trying to compile a project (Racket 5.0, WinXP) into a distribution > with gracket base. > I get the following error message when compiling: > <<< > e:\projets\scheme-svn\towers\towers-gui.ss:3:9: ATHENS/board2: > standard-module-nam

Re: [racket] Example of statfull and stateless web application

2010-06-27 Thread Jay McCarthy
http://github.com/jeapostrophe/ On Sun, Jun 27, 2010 at 9:01 AM, Sean Allen wrote: >  your github account is? > > On Sun, Jun 27, 2010 at 10:04 AM, Jay McCarthy wrote: >> There are a few packages on PLaneT that are Web applications, you can >> look at my github account, and there's the docs (as

Re: [racket] Example of statfull and stateless web application

2010-06-27 Thread Sean Allen
your github account is? On Sun, Jun 27, 2010 at 10:04 AM, Jay McCarthy wrote: > There are a few packages on PLaneT that are Web applications, you can > look at my github account, and there's the docs (as you mentioned.) > What do you feel is lacking in the documentation and its examples that > y

[racket] shp.plt 1:2 example fail..

2010-06-27 Thread 장유현
I'm using plt-racket.   and I tryed shp.plt example's web.ss to run.   but I encounterd below error:   ..\handler.ss:260:15: make-shp-handler: htdocs path C:\Documents and Settings\Euhyen\Application Data\Racket\planet\300\packages\bzlib\shp.plt\1\2\example\shp\..\file does not ex

Re: [racket] Example of statfull and stateless web application

2010-06-27 Thread Jay McCarthy
There are a few packages on PLaneT that are Web applications, you can look at my github account, and there's the docs (as you mentioned.) What do you feel is lacking in the documentation and its examples that you hope to find elsewhere? (I'd like to know so I can just add something to satisfying yo

Re: [racket] create-embedding-executable

2010-06-27 Thread Laurent
On Sun, Jun 27, 2010 at 15:19, Matthew Flatt wrote: > Does your call to `create-embedding-executable' work if you disable > debugging in DrRacket or if you run from command-line Racket? > It works, thank you! Maybe it could be a good idea to add an example like this one in the docs, because it t

Re: [racket] create-embedding-executable

2010-06-27 Thread Matthew Flatt
Does your call to `create-embedding-executable' work if you disable debugging in DrRacket or if you run from command-line Racket? I think the problem is that DrRacket configures the compiler to add errortrace-debugging instrumentation and to use ".zo" files that are instrumented, and that is inter

Re: [racket] Can I trace calls of a function?

2010-06-27 Thread Laurent
On Sun, Jun 27, 2010 at 14:35, Sam Tobin-Hochstadt wrote: > #lang racket > > (require racket/trace) > > (define (f x) > (if (zero? x) "done" (f (sub1 x > > (trace f) > > (f 100) > Is it possible to add this example to the docs? _ For list-re

Re: [racket] Can I trace calls of a function?

2010-06-27 Thread Sam Tobin-Hochstadt
#lang racket (require racket/trace) (define (f x) (if (zero? x) "done" (f (sub1 x (trace f) (f 100) On Sun, Jun 27, 2010 at 12:54 AM, Insik Cho wrote: > Hi buddies, > I want to trace calls of a function with (require trace), but it doesn't > work. > What can I do to trace calls of a fun

Re: [racket] Racket collections

2010-06-27 Thread Norman Gray
Greetings. On 2010 Jun 27, at 12:31, Laurent wrote: > On Sun, Jun 27, 2010 at 13:25, Mark Carter wrote: > >> Is thee a way of adding a directory to the 'collects' path, or some other >> way of specifying where Racket should look for collections? > > What you are looking for is in the Language

Re: [racket] Racket collections

2010-06-27 Thread Laurent
On Sun, Jun 27, 2010 at 13:25, Mark Carter wrote: > Is thee a way of adding a directory to the 'collects' path, or some other > way of specifying where Racket should look for collections? > What you are looking for is in the Language dialog (bottom left button in DrRacket), advanced parameters.

[racket] Racket collections

2010-06-27 Thread Mark Carter
Is thee a way of adding a directory to the 'collects' path, or some other way of specifying where Racket should look for collections? _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] create-embedding-executable

2010-06-27 Thread Laurent
Hi, I'm trying to use `create-embedding-executable' (DrRacket 5.0, WinXP and Vista), with this little module: #lang racket/gui (define f (new frame% [label "Test"])) (send f show #t) But I don't know exactly how to set the arguments to produce the same result as "raco exe --gui", which works f