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

2012-02-07 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07-02-12 07:41, enzimmer...@frontier.com wrote: Recently I've been having trouble with the DrRacket executable hanging. When I attempt to launch it, the window will pop up, the menu bar will display...and then nothing else happens - except

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

2012-02-07 Thread Robby Findler
Is this a windows machine? Assuming so, if you start DrRacket from a windows command.com shell window and then, after it gets busy hit control-c, do you get any output in the shell window? Robby On Tue, Feb 7, 2012 at 12:41 AM, enzimmer...@frontier.com wrote: Recently I've been having trouble

[racket] racket in the cloud

2012-02-07 Thread Răzvan Rotaru
Hi, Does anyone know if racket can be deployed in the cloud? (Is there a cloud service that support racket?). And if yes, how? :) Thanks, Razvan Racket Users list: http://lists.racket-lang.org/users

Re: [racket] racket in the cloud

2012-02-07 Thread Sam Tobin-Hochstadt
There are many things that might be meant by the cloud, but on the simplest interpretation, the answer is definitely yes. For example, Eric Hanchrow (offby1) run the irc bot rudybot [1] from an Amazon EC2 Linux image. There are also two Racket bindings to the AWS service api, in various states

Re: [racket] comparing structure types through contracts

2012-02-07 Thread Danny Yoo
Would a structure type property be a viable alternative? Example: ;; #lang racket/load (module a racket (define-values (prop:S S? S-ref) (make-struct-type-property 'S)) (provide S?) (define-struct s (a b)

Re: [racket] comparing structure types through contracts

2012-02-07 Thread Robby Findler
That's a bug. I've looked into it a little bit, enough to say that I can't fix it this morning. Sorry. Robby On Tue, Feb 7, 2012 at 1:19 AM, John Clements cleme...@brinckerhoff.org wrote: I'm working with Dave Herman's JavaScript package. I've found a problem and a workaround, but I want to

[racket] Change DrRacket autosave/backup file locations?

2012-02-07 Thread Jordan Johnson
Hi all, Is it possible, via .racketrc, preferences, or some other mechanism, to change where DrRacket saves backup and preference files? Reason: Using DrRacket to edit programs stored in Dropbox, the presence of such temp files in my Dropbox folder is introducing a lot of noise in the Dropbox

Re: [racket] racket in the cloud

2012-02-07 Thread Eric Hanchrow
 https://github.com/offby1/doodles/tree/master/plt-scheme/web/amazon (currently 404 -- does anyone know the new location?) It should now be visible at that URL; I'd made that repo private for no particularly good reason, and have now re-published it. Racket Users list:

Re: [racket] plot3d canvas question

2012-02-07 Thread Doug Williams
I made a plot-canvas% class that I use. The new plot package made it pretty easy. But it doesn't support the rotation, etc functionality from the snip. It does, however, support printing which is nice. On Monday, February 6, 2012, Neil Toronto neil.toro...@gmail.com wrote: Yes, because a plot is

Re: [racket] sync on OS semaphore on Unix

2012-02-07 Thread Berthold Baeuml
On 07.02.2012, at 00:35, Matthew Flatt wrote: While calling most scheme_...() function is out, can the real-time thread call scheme_signal_received(), which amounts to a write() on an native OS pipe? Unfortunately not. On Linux, this would work well, because the footprint of a write() to a

Re: [racket] plot3d canvas question

2012-02-07 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] sync on OS semaphore on Unix

2012-02-07 Thread Matthew Flatt
At Tue, 7 Feb 2012 23:07:15 +0100, Berthold Baeuml wrote: On 07.02.2012, at 00:35, Matthew Flatt wrote: While calling most scheme_...() function is out, can the real-time thread call scheme_signal_received(), which amounts to a write() on an native OS pipe? Unfortunately not. Ok.

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

2012-02-07 Thread Jordan Johnson
Hi all, I'm using web-server/templates to generate text, and the data in variables I reference in the template include s-exps that may, in some cases, contain image% objects. I want it to render the image%s as plain text; even just the string IMAGE or similar would be adequate. So, my

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

2012-02-07 Thread Neil Van Dyke
Jordan Johnson wrote at 02/07/2012 06:50 PM: I'm using web-server/templates to generate text, and the data in variables I reference in the template include s-exps that may, in some cases, contain image% objects. I want it to render the image%s as plain text; even just the string IMAGE or

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

2012-02-07 Thread Harry Spier
I wasn't able to find in the Racket documentation a string function that replaces substrings in a string based on the content of the substring. Something similar to Python's string replace method . s = abcdefabcdef s.replace(abc 123) - 123def123def But more surprising, I also wasn't able to

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

2012-02-07 Thread Neil Van Dyke
Harry Spier wrote at 02/07/2012 08:05 PM: I have Python programs which convert Indian language book length etexts from one transliteration scheme to another so I'm calling the Python replace function hundreds of thousands of times per e-text and doing multiple replaces with each call.

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

2012-02-07 Thread Sam Tobin-Hochstadt
On Tue, Feb 7, 2012 at 8:05 PM, Harry Spier vasishtha.sp...@gmail.com wrote: I'd like to convert these programs to Racket, but using regular expressions might be too slow. I find that my intuitions about what might or might not be too slow are usually wrong. Have you tried measuring this? --

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

2012-02-07 Thread Matthias Felleisen
1. I am surprised that regexp-replace* does not work on input-ports like all other regexp- functions. I assume Matthew has a rationale but my quick look didn't discover it in the docs. 2. I ran this stupid little program below. The timing for a file of 19990186 chars over 9896 lines, with

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

2012-02-07 Thread Veer Singh
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 transformer is bound) in: #%require But when same program is run in console , it works just