Re: [racket] very general reliability of old stuff question

2011-05-20 Thread Eli Barzilay
Earlier today, Neil Van Dyke wrote: > If someone came to you and said, "We're using PLT 4.2.5 with CGC and > JIT, and we are wondering whether reliability would be improved by > moving to Racket 5.x Probably. Most releases include fixes to crashes... (And of course there's no way to compare the

Re: [racket] very general reliability of old stuff question

2011-05-20 Thread D Herring
On 05/20/2011 10:00 AM, Neil Van Dyke wrote: If someone came to you and said, "We're using PLT 4.2.5 with CGC and JIT, and we are wondering whether reliability would be improved by moving to Racket 5.x and/or moving to 3m and/or disabling 4.2.5's JIT," what would you say? Details... A big instal

Re: [racket] Planet Documentation in Windows

2011-05-20 Thread Patrick King
Works like a charm. Now the errors are clearly mine. Aargh! On Thu, May 19, 2011 at 5:52 PM, Robby Findler wrote: > I've pushed a fix for the next release. In the meantime, here's a diff > that should do the same for you. > > Thanks, > Robby > > diff --git a/collects/planet/private/planet-shared.

[racket] using syntax/modcode and make-base-namespace

2011-05-20 Thread Danny Yoo
I'm using syntax/modcode, and am running across an error that I don't understand yet. Here's test code to demonstrate: ;;; #lang racket (require syntax/modcode) (define collects-dir (normalize-path (let ([p (find-system-path 'collects-dir)]) (cond [(

Re: [racket] I am trying to make little human like text searching program

2011-05-20 Thread John Clements
On May 20, 2011, at 1:48 AM, 김태윤 wrote: > hello > I am trying to make little human like text searching program > but there's bug that I can't catch for many hours > the bug is > when text.txt file contains > explorer > and when I am trying to find > exp > then error arise > when the text.txt cont

[racket] very general reliability of old stuff question

2011-05-20 Thread Neil Van Dyke
If someone came to you and said, "We're using PLT 4.2.5 with CGC and JIT, and we are wondering whether reliability would be improved by moving to Racket 5.x and/or moving to 3m and/or disabling 4.2.5's JIT," what would you say? Details... A big installation of PLT 4.2.5 (with CGC, and with JIT

Re: [racket] commenting out unbalanced parts of Scribble programs

2011-05-20 Thread Prabhakar Ragde
On 5/20/11 9:42 AM, Matthew Flatt wrote: Eli made Scribble's at-exp notation more general: It lets you pick the brackets for a comment after `@;', so you can pick a closer that isn't used in the region to comment out. For example, to comment out a single "}", @;{ } } would not work, b

Re: [racket] commenting out unbalanced parts of Scribble programs

2011-05-20 Thread Matthew Flatt
At Fri, 20 May 2011 09:17:28 -0400, Prabhakar Ragde wrote: > In Scheme I can comment out unfinished, unbalanced code: > > #| > > (define (my-function > > |# > > How do I do this in Scribble? That only works in Scheme/Racket code if no unbalanced "|#" appears in the region that you want to comm

[racket] commenting out unbalanced parts of Scribble programs

2011-05-20 Thread Prabhakar Ragde
In Scheme I can comment out unfinished, unbalanced code: #| (define (my-function |# How do I do this in Scribble? Thanks. --PR _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Literate programming: help with @chunks

2011-05-20 Thread Tim Brown
Robby...k My "<*>" chunk was called "*" (my mistake) and the e.g. I posted was typed straight into the mail, and not properly tested. Thanks for taking the time to respond, despite this accumulated muppetry. Regards, Tim On 20/05/11 13:22, Robby Findler wrote: That should work. When I requir

Re: [racket] Racket 5.1.1 performance issues

2011-05-20 Thread Sam Tobin-Hochstadt
Most likely, you have run 'make', but not 'make install', and so the source files in the collects haven't been precompiled. Try running 'make install' and you should see much better performance. On Fri, May 20, 2011 at 8:20 AM, Janus Troelsen wrote: > Hi guys, > > I'm running a debug build of Ra

Re: [racket] Literate programming: help with @chunks

2011-05-20 Thread Robby Findler
That should work. When I require that file I get this: compile: unbound identifier in module in: define-empty-tokens and then when I fix it like this: @chunk[<*> (require parser-tools/lex) (define-empty-tokens mt-token-group ())] things seem to work fine. Robby On Fri, May 20,

[racket] Racket 5.1.1 performance issues

2011-05-20 Thread Janus Troelsen
Hi guys, I'm running a debug build of Racket 5.1.1. I expected poor performance, but it is almost unusable: oh05keny@client102:/nethome/fire01/disc04/users1/oh05keny/Downloads$ time ~/racket-5.1.1/bin/racket -e '"Hello World"' "Hello World" real2m9.988s user1m19.825s sys 0m0.720s Is

[racket] Literate programming: help with @chunks

2011-05-20 Thread Tim Brown
Hello, I'm writing a literate program which includes a lexer/parser. I am trying to build up the lexer a token at a time... - #lang scribble/lp @section{newlines} A newline is at the end of a line... in fact we'll consume all newlines, since we don't care how many there are. @chunk[ new-

Re: [racket] I am trying to make little human like text searching program

2011-05-20 Thread Nevo
It seems your input data is not right here. I use your code (see below), it works well (besides the overflow problem). #lang racket ;it is list operation though parameter is str ;as little like human, check first and last character first (define count 0) (define data (string->list "explorers")) (d

Re: [racket] I am trying to make little human like text searching program

2011-05-20 Thread Nevo
A quick look. You're not guarding the list end ( (+ index len - 1) should be also less than data-len), that's why you have index overflow error. Then when you tried to search "2explorer" from "2explorers", the first turn of loop failed, then the second turn of loop failed on "(equal? first-char (li

[racket] I am trying to make little human like text searching program

2011-05-20 Thread 김태윤
hello I am trying to make little human like text searching program but there's bug that I can't catch for many hours the bug is when text.txt file contains explorer and when I am trying to find exp then error arise when the text.txt contains explorers and the time I trying to search expl the error