[racket] Fwd: Re: DrRacket problems, please help (I need it for homework)!

2012-02-08 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Copying the list. - Original Message Subject: Re: [racket] DrRacket problems, please help (I need it for homework)! Date: Tue, 7 Feb 2012 19:07:42 + (UTC) From: enzimmer...@frontier.com To: Marijn hk...@gentoo.org Racket

Re: [racket] Program runs fine in console , but not in drracket.

2012-02-08 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08-02-12 08:51, Veer Singh wrote: I just recently downloaded racket version 5.2.1. Now when running a particular program in drracket I get following error : compile: unbound identifier in the transformer environment (and no #%app syntax

Re: [racket] Program runs fine in console , but not in drracket.

2012-02-08 Thread Neil Van Dyke
What happens if you make the first line of the file be #lang racket, and you make sure that the control in the lower left of the DrRacket window says Determine language from source? -- http://www.neilvandyke.org/ Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Program runs fine in console , but not in drracket.

2012-02-08 Thread Veer Singh
My First line is #lang racket and the control in the lower left of the DrRacket window says Determine language from source custom? On Wed, Feb 8, 2012 at 2:48 PM, Neil Van Dyke n...@neilvandyke.org wrote: What happens if you make the first line of the file be #lang racket, and you make sure

Re: [racket] Program runs fine in console , but not in drracket.

2012-02-08 Thread Veer Singh
Well actual program is here : https://github.com/veer-public/Predicate-Dispatch Running example1.rkt produces the error in DrRacket , but runs fine in console. Thanks. On Wed, Feb 8, 2012 at 2:41 PM, Marijn hk...@gentoo.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On

Re: [racket] Program runs fine in console , but not in drracket.

2012-02-08 Thread Neil Van Dyke
Veer Singh wrote at 02/08/2012 04:27 AM: Well actual program is here : https://github.com/veer-public/Predicate-Dispatch Running example1.rkt produces the error in DrRacket , but runs fine in console. You can temporarily make this error go away by selecting DrRacket menu item Language -

Re: [racket] Program runs fine in console , but not in drracket.

2012-02-08 Thread Veer Singh
Hurray! it works just fine now . Thanks a lot Neil. On Wed, Feb 8, 2012 at 3:16 PM, Neil Van Dyke n...@neilvandyke.org wrote: Veer Singh wrote at 02/08/2012 04:27 AM: Well actual program is here :

Re: [racket] plot3d canvas question

2012-02-08 Thread Nikolaus Klepp
Am Dienstag, 7. Februar 2012 schrieb Neil Toronto: The relevant code is in racket-dir/collects/plot/common/gui.rkt, specifically the `make-snip-frame' function. The basic idea is to make a canvas containing a single read-only-text% that is initially writable, insert the snip (which you get

Re: [racket] plot3d canvas question

2012-02-08 Thread Neil Toronto
On 02/07/2012 03:56 PM, Nikolaus Klepp wrote: Am Dienstag, 7. Februar 2012 schrieb Neil Toronto: The relevant code is in racket-dir/collects/plot/common/gui.rkt, specifically the `make-snip-frame' function. The basic idea is to make a canvas containing a single read-only-text% that is

Re: [racket] Porter stemming algorithm

2012-02-08 Thread John Clements
On Feb 4, 2012, at 1:38 PM, John Sampson wrote: Hello - I have found code for a Scheme version of the Porter stemming algorithm. Supposedly it has been tested on PLT Scheme but when loaded into DrRacket there are many unreadable characters and syntax errors. Is there an implemention

Re: [racket] plot3d canvas question

2012-02-08 Thread Neil Toronto
On 02/08/2012 09:42 AM, Neil Toronto wrote: On 02/07/2012 03:56 PM, Nikolaus Klepp wrote: Am Dienstag, 7. Februar 2012 schrieb Neil Toronto: The relevant code is in racket-dir/collects/plot/common/gui.rkt, specifically the `make-snip-frame' function. The basic idea is to make a canvas

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-08 Thread Jay McCarthy
web-server/templates uses scribble/text So, if you return a function, then it will be called. We could also change scribble/text to support a struct/class property for JIT transformation. Does that sound good? Is that okay with you, Eli? Jay On Tue, Feb 7, 2012 at 4:50 PM, Jordan Johnson

Re: [racket] Porter stemming algorithm

2012-02-08 Thread Danny Yoo
On Sun, Feb 5, 2012 at 3:42 AM, John Sampson jrs@ntlworld.com wrote: Hello - see http://programmingpraxis.com/2009/09/08/porter-stemming/ Awesome. Ok, I've taken the code there and put it up as a Racket PLaneT package to make it easier to use. For example:

Re: [racket] Porter stemming algorithm

2012-02-08 Thread Phil Bewig
If you're looking at the suggested solution, the easiest way to get the code is to follow the links to the codepad page and copy the code from there. If you're looking at the program in the comments, you may want to view source and scroll down to the program. You'll have to delete the html tags

Re: [racket] plot3d canvas question

2012-02-08 Thread Nikolaus Klepp
Am Mittwoch, 8. Februar 2012 schrieb Neil Toronto: Unfortunately, you can't. You'll have to delete the old one from the read-only-text% and insert a new one. I was afraid, you'd say that. If this is for resizing, you have another problem: creating a new plot will reset the viewing angles. I

[racket] Porter stemming algorithm

2012-02-08 Thread John Sampson
Hello - Many thanks for your interest. I have used the version just uploaded to PLaneT and it works. For a Racket ignoramus like me this is a buzz! Many thanks to all. Regards _John Sampson_ On 08/02/2012 18:22, Phil Bewig wrote: If you're looking at the suggested solution, the easiest way

Re: [racket] Porter stemming algorithm

2012-02-08 Thread Danny Yoo
On Wed, Feb 8, 2012 at 4:59 PM, John Sampson jrs@ntlworld.com wrote: Hello - Many thanks for your interest. I have used the version just uploaded to PLaneT and it works. For a Racket ignoramus like me this is a buzz! Many thanks to all. No problem! Currently, I've got no time to write

Re: [racket] Why no string function to replace substring based on content in Racket

2012-02-08 Thread Harry Spier
Thanks Neil, Sam and Matthias You guys are great. Matthias wrote: 2. I ran this stupid little program below. The timing for a file of 19990186 chars over 9896 lines, with 9922 occurrences of abc clocks in like this: cpu time: 4570 real time: 4629 gc time: 2164 How much too slow is this?

Re: [racket] Why no string function to replace substring based on content in Racket

2012-02-08 Thread Neil Van Dyke
Harry Spier wrote at 02/08/2012 10:45 PM: Neil wrote: You could do it by hand, using reading primitives ... Do you mean by creating a new readtable? I wasn't clear. I meant things like read-char. -- http://www.neilvandyke.org/ Racket Users list: