Re: [racket] Keeping DrRacket from closing plot window

2014-02-26 Thread Neil Toronto
On 02/23/2014 05:17 PM, Harry Spier wrote: In DrRacket I'm generating some simulations using the random function and plotting the results using the Racket Plot routines. I put the plot results in a new window using "(plot-new-window? #t)". This works fine but everytime I run a new simulation

[racket] Racket v6.0

2014-02-26 Thread Ryan Culpepper
Racket version 6.0 is now available from http://racket-lang.org/ Racket 6.0 has a new package system, including a catalog of hundreds of already-available packages. Please visit http://pkgs.racket-lang.org/ for an overview of the packages. Racket versions 5.3.4 through 5.3.6 included "

Re: [racket] rudimentary macro Q.

2014-02-26 Thread Matthew Flatt
I'm not sure what you mean by "adopt the binding of `private-proc`", but besides the directions mentioned by others, it sounds like `rename-out` might be relevant: #lang racket (module inner racket (provide (rename-out [private-proc public-proc])) (define (private-proc x) (format "Inner p

Re: [racket] Overload #%module-begin

2014-02-26 Thread Ryan Culpepper
'syntax-parameterize' is an *expression* form that takes a sequence of internal definitions and a non-empty sequence of expressions---like lambda. It requires a final expression, and it can't contain requires, provides, etc. You probably want 'splicing-syntax-parameterize' instead. It can be u

[racket] Overload #%module-begin

2014-02-26 Thread antoine
Hello, I would like to change the expansion of a given module. I tested: ;; abc.rkt #lang racket (require racket/stxparam) (define-syntax-parameter param-abc #f) (define-syntax-rule (enable-abc body ...) (#%plain-module-begin (syntax-parameterize ([param-abc #t]) bo

Re: [racket] rudimentary macro Q.

2014-02-26 Thread Greg Hendershott
p.s. I didn't mean my reply to disregard what Matthias showed. In fact, item 2 on my list might simply amount to a more-convenient way of wrapping just that in a form that's a bit more convenient on the provider side, and if necessary cooperates automatically on the require/typed side?? ___

Re: [racket] rudimentary macro Q.

2014-02-26 Thread Greg Hendershott
On Wed, Feb 26, 2014 at 3:18 PM, David Vanderson wrote: > > On 02/26/2014 01:54 PM, Matthew Butterick wrote: >> Q: How could I invoke 'public-proc' for its syntax-generating effect in >> the main module, yet have it adopt the binding of 'private-proc' in the main >> module? >> >> I gather roughly

Re: [racket] rudimentary macro Q.

2014-02-26 Thread David Vanderson
On 02/26/2014 01:54 PM, Matthew Butterick wrote: Thank you. Maybe I can make the question a tiny bit less dumb (though still really dumb). In this example, when I use the syntax macro 'public-proc', it keeps the 'private-proc' binding from the 'inner' submodule. Q: How could I invoke 'public

Re: [racket] rudimentary macro Q.

2014-02-26 Thread Matthias Felleisen
Instead of manipulating the lexical information I would explicitly pass macros around to inform the reader of my program what's happening: ; #lang racket (module inner racket (provide public-proc) (define-syntax public-proc (syntax-rules () [(public-proc x pri

Re: [racket] rudimentary macro Q.

2014-02-26 Thread Matthew Butterick
Thank you. Maybe I can make the question a tiny bit less dumb (though still really dumb). In this example, when I use the syntax macro 'public-proc', it keeps the 'private-proc' binding from the 'inner' submodule. Q: How could I invoke 'public-proc' for its syntax-generating effect in the ma

Re: [racket] rudimentary macro Q.

2014-02-26 Thread Matthias Felleisen
That's precisely the behavior you want: -- what's exported is the public name, which would usually check/do things before it calls private -- while the unprotected private one is not provided and should not be visilble. How does the mechanics work? Well it delivers path names to these priv

[racket] rudimentary macro Q.

2014-02-26 Thread Matthew Butterick
In this example, why can syntax produced via macro reach the private function, while the ordinary syntax cannot? ;; one.rkt #lang racket/base (provide public-proc) (define (private-proc x) (format "The private proc says ~a" x)) (define-syntax-rule (public-proc x)

Re: [racket] Teaching position at a school in Los Angeles for Programming by Design

2014-02-26 Thread Asumu Takikawa
On 2014-02-18 22:30:54 +, Anderson, Dan wrote: >For those of you interested, there is an opening for a Math/Computer >Science teaching position at a private school in Santa Monica. Looks like your original link may have gotten mangled, here's the URL for anyone else who couldn't access

Re: [racket] help me

2014-02-26 Thread zbyszek
Remove else from if expression in subset? definition. ZJ Dnia 2014-02-25, wto o godzinie 22:32 +0200, Gizem Toldare pisze: > Hello my name is Gizem. I live in Turkey and I am a student at izmir > University. I am learning DrRacket. > > > I hava a problem. I am trying to create "subset" and > "

[racket] help me

2014-02-26 Thread Gizem Toldare
Hello my name is Gizem. I live in Turkey and I am a student at izmir University. I am learning DrRacket. I hava a problem. I am trying to create "subset" and "intersection-set" but program gives this error: "if: expected a question and two answers, but found 4 parts" This is my program. --

[racket] Teaching position at a school in Los Angeles for Programming by Design

2014-02-26 Thread Anderson, Dan
Hello, For those of you interested, there is an opening for a Math/Computer Science teaching position at a private school in Santa Monica. Enjoy! Dan Anderson Viewpoint School https://mail.viewpoint.org/owa/redir.aspx?C=Mt0xEHTgP0KpEJLVZPVaxqpdG-mNANEIbRmYEsiOIUULf_MAkQeOt9sZFP8z0YOkNCWjzILwP

Re: [racket] #lang racket vs. racket/base

2014-02-26 Thread Yuhao Dong
> My impression is that `raco exe` predates the rise of "scripting > languages" like Python and Ruby, in which it's common to tell users, > "Make sure you have version X of Python or Ruby, then install my app". I would say that "raco exe" is rather useless, and I don't see the point really. It st

Re: [racket] Default icon for rkt file type

2014-02-26 Thread Janos Tobias Locsei
Hi Christian, I had the same problem and I set the icon manually using a free program called filetypesman, using these instructions: http://www.sevenforums.com/tutorials/57455-file-extension-icon-change-default-icon.html Hope this helps Tobias On 15 February 2014 17:45, Cristian Baboi wrote

Re: [racket] help me

2014-02-26 Thread Gizem Toldare
thank you for your attention. 2014-02-25 22:32 GMT+02:00 Gizem Toldare : > Hello my name is Gizem. I live in Turkey and I am a student at izmir > University. I am learning DrRacket. > > I hava a problem. I am trying to create "subset" and "intersection-set" > but program gives this error: "if:

Re: [racket] racket on arm/armel linux

2014-02-26 Thread Franco Raimondi
If it can be of any help: here at Middlesex University we managed to compile the standard sources for 5.93 on a Raspberry Pi (standard raspbian distro). The only thing we had to do was to disable documentation in the configuration step (configure --disable-docs). And then wait a few hours. Rega

Re: [racket] Is racket suitable for such a project?

2014-02-26 Thread Yuhao Dong
On Tue, 2014-02-11 at 10:11 -0500, Neil Van Dyke wrote: > I can't answer the question in the Subject header off-the-cuff, but I > can comment on some of the details... > For an onion router that has to handle lots of traffic at high speed, my > first guess would be C or maybe C++ (not Go or Java)