Re: [racket-users] How to watch the filesystem

2017-01-20 Thread Dupéron Georges
Le vendredi 20 janvier 2017 19:47:11 UTC+1, David K. Storrs a écrit : > I see that I can get the event telling me that something changed. As > far as I can tell the event contains no information about *what* > changed, it simply alerts that *something* changed. Likewise, the > monitor is only

[racket-users] Re: parameterize during compile

2017-01-20 Thread Dupéron Georges
Hi Dan, Try with this: main.rkt: #lang racket (require racket/stxparam "macro.rkt" "param.rkt") (syntax-parameterize ([dirs 123]) (mymacro)) macro.rkt: #lang racket (require racket/stxparam "param.rkt") (provide mymacro) (define-syntax (mymacro stx) #`(printf "dirs was ~a\n"

[racket-users] Re: Custom define macro

2017-01-20 Thread Lehi Toskin
That's perfect, Thank you! On Friday, January 20, 2017 at 2:46:49 PM UTC-8, Matthew Butterick wrote: > Perhaps a job for `normalize-definition`? It handles all the syntactic > disentangling in a `define`-like macro. -- You received this message because you are subscribed to the Google Groups

[racket-users] Re: Custom define macro

2017-01-20 Thread Matthew Butterick
On Friday, January 20, 2017 at 1:49:12 PM UTC-8, Lehi Toskin wrote: > I have created a macro[1] that operates like regular define, but wraps the > definition around a struct with prop:procedure. This struct contains the > procedure to be used and a list representation of its definition. I've

[racket-users] Announcing (seventh RacketCon)

2017-01-20 Thread Vincent St-Amour
Racketeers, (seventh RacketCon) will be held on October 7th, followed by Racketeer Office Hours on October 8th. This year, RacketCon will be in Seattle, WA, with support from the Racket group at the University of Washington. RacketCon is a yearly event where members of the Racket community get

[racket-users] Re: Creating and publishing modules

2017-01-20 Thread David Storrs
On Fri, Jan 20, 2017 at 3:01 PM, David Storrs wrote: > Since I'm going to need this filesystem-watching code, I figured I > would package it up and make it available to other people as well. > > I know that planet is no longer the preferred package repository. Is > this

[racket-users] parameterize during compile

2017-01-20 Thread Dan Liebgold
Hi - I have a module "env" that is required for-syntax by several other modules. I'd like to precompile those other modules into .zo files, but my initial for-syntax module ("env") has a parameter that I need to set (essentially I'm writing my own 'require' lines at compile-time, and I need to

Re: [racket-users] Creating and publishing modules

2017-01-20 Thread Asumu Takikawa
Hi David, On 2017-01-20 15:01:47 -0500, David Storrs wrote: > I know that planet is no longer the preferred package repository. Is > this still the correct documentation for how to publish modules?: > https://docs.racket-lang.org/planet/Developing_Packages_for_PLaneT.html The preferred system

[racket-users] Creating and publishing modules

2017-01-20 Thread David Storrs
Since I'm going to need this filesystem-watching code, I figured I would package it up and make it available to other people as well. I know that planet is no longer the preferred package repository. Is this still the correct documentation for how to publish modules?:

Re: [racket-users] How to watch the filesystem

2017-01-20 Thread David Storrs
[realized I sent my prior response to Neil alone. Summary was: Thank you!] I see that I can get the event telling me that something changed. As far as I can tell the event contains no information about *what* changed, it simply alerts that *something* changed. Likewise, the monitor is only

Re: [racket-users] Paths in Dr Racket do not match paths in shell

2017-01-20 Thread David Storrs
On Fri, Jan 20, 2017 at 10:02 AM, Robby Findler wrote: > On Thu, Jan 19, 2017 at 7:29 PM, David Storrs wrote: >> On Thu, Jan 19, 2017 at 6:45 PM, Robby Findler >> wrote: >>> In DrRacet, current-directory in

Re: [racket-users] Typed Racket & Higher Kinded Types

2017-01-20 Thread Anthony Carrico
On 01/17/2017 04:34 AM, Sam Tobin-Hochstadt wrote: > No, unfortunately you can't just higher kinds in Typed Racket. This is > a limitation we hope to lift eventually, though. I'm going to take a non-ranting stab at Matthias' compatibility objection, slightly formalizing the proposal. Robert

Re: [racket-users] Paths in Dr Racket do not match paths in shell

2017-01-20 Thread Robby Findler
On Thu, Jan 19, 2017 at 7:29 PM, David Storrs wrote: > On Thu, Jan 19, 2017 at 6:45 PM, Robby Findler > wrote: >> In DrRacet, current-directory in initialized to the directory >> containing the file where you hit "Run" and in the shell it is

Re: [racket-users] Serializing macro transformer procedures

2017-01-20 Thread Ben Greenman
I can do this in the normal Racket repl: (define (f x) (define-syntax-rule (rev-apply x g) (g x)) (rev-apply x add1)) (f 3) ;; ==> 4 I'd like to put a `(debug-repl)` inside the definition of `f` and call `rev-apply` in that debug repl too. On Fri, Jan 20, 2017 at 6:52 AM, Philip

[racket-users] 2017: Final call for workshop, symposium, demo & poster submissions

2017-01-20 Thread timmolderez
--- 2017 : The Art, Science, and Engineering of Programming April 3-6, 2017, Brussels, Belgium http://2017.programming-conference.org --- Final call

Re: [racket-users] Serializing macro transformer procedures

2017-01-20 Thread Philip McGrath
How would you intend to use the macro transformer functions in the debug-repl? Do you intend to call them as functions on syntax objects? I'm not sure I understand what you're trying to achieve. -Philip On Fri, Jan 20, 2017 at 3:40 AM, Alex Knauth wrote: > > On Jan 19,

Re: [racket-users] Serializing macro transformer procedures

2017-01-20 Thread Alex Knauth
> On Jan 19, 2017, at 8:44 PM, Philip McGrath wrote: > > It might help if you could explain in more detail what you're trying to do: > I'm not sure I understand what you mean by "bring macro transformer > procedures down to run-time". My goal is to have a debug-repl