Re: [racket-users] Unable to utilize parse-command-line to build command line application

2016-10-12 Thread Ian Thomas
On Wednesday, October 12, 2016 at 10:19:28 AM UTC-4, Ben Greenman wrote: > Alright, here's something that I think does what you want. > > > > #lang racket > > > (require racket/base >  racket/cmdline) > > > (parse-command-line "com_line" >  ;; argv >  (current-command-line-arguments) >  ;;

[racket-users] Re: FUSE filesystem package

2016-10-12 Thread Dupéron Georges
This is great! Thumbs up, and thanks for writing this library. I have a couple of filesystems in my "TODO" list, hopefully this package will motivate me to actually write them one of these days :) . A nice feature would be some simpler API for creating filesystems which work by virtually

[racket-users] Re: FUSE filesystem package

2016-10-12 Thread Scott Moore
On October 12, 2016 at 12:15:38 PM, Dupéron Georges (jahvascriptman...@gmail.com) wrote: This is great! Thumbs up, and thanks for writing this library. I have a couple of filesystems in my "TODO" list, hopefully this package will motivate me to actually write them one of these days :) . 

Re: [racket-users] Re: FUSE filesystem package

2016-10-12 Thread Vincent St-Amour
On Wed, 12 Oct 2016 16:31:46 -0500, Scott Moore wrote: > > PS: is the documentation for use-once/c somewhere? > > I’ll add it to the docs when I get a chance. You can see the definition > here: > https://github.com/thinkmoore/racket-fuse/blob/master/private/filesystem.rkt#L132 > >

Re: [racket-users] Re: FUSE filesystem package

2016-10-12 Thread Ben Greenman
> > > Any connection to Jesse's affine contracts? > > http://planet.racket-lang.org/package-source/tov/affine- > contracts.plt/2/2/planet-docs/manual/index.html Whoa, I didn't know those existed. Cool! -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] Re: FUSE filesystem package

2016-10-12 Thread Scott Moore
On October 12, 2016 at 2:35:37 PM, Vincent St-Amour (stamo...@eecs.northwestern.edu) wrote: On Wed, 12 Oct 2016 16:31:46 -0500,  Scott Moore wrote:  >  > PS: is the documentation for use-once/c somewhere?  >  > I’ll add it to the docs when I get a chance. You can see the definition  > here:  >

Re: [racket-users] Unable to utilize parse-command-line to build command line application

2016-10-12 Thread Ian Thomas
On Tuesday, October 11, 2016 at 9:50:12 PM UTC-4, Ben Greenman wrote: > Indirect answer: could you use `command-line` instead? > > > > #lang racket/base > (require racket/cmdline) > > > (define input-from (make-parameter #f)) > > > (command-line >   #:program "sample" >   #:once-each >  

Re: [racket-users] Unable to utilize parse-command-line to build command line application

2016-10-12 Thread Ian Thomas
On Wednesday, October 12, 2016 at 6:54:45 AM UTC-4, Ian Thomas wrote: > On Tuesday, October 11, 2016 at 9:50:12 PM UTC-4, Ben Greenman wrote: > > Indirect answer: could you use `command-line` instead? > > > > > > > > #lang racket/base > > (require racket/cmdline) > > > > > > (define

[racket-users] How to edit the htdp package from a release?

2016-10-12 Thread Ben Greenman
I've installed Racket 6.6 from download.racket-lang.org and I'd like to submit a change to the HTDP repo. (This question is not really specific to HTDP, anyway) Before I submit the edit, I want to test the change on my machine, so I figure I'll make a clone of the htdp package: $ raco pkg

Re: [racket-users] Unable to utilize parse-command-line to build command line application

2016-10-12 Thread Ben Greenman
Alright, here's something that I think does what you want. #lang racket (require racket/base racket/cmdline) (parse-command-line "com_line" ;; argv (current-command-line-arguments) ;; table `((once-each [("-i" "--input-file") ,(lambda (flag) (displayln "Using "))

Re: [racket-users] How to edit the htdp package from a release?

2016-10-12 Thread 'John Clements' via Racket Users
> On Oct 12, 2016, at 8:34 AM, Ben Greenman wrote: > > I've installed Racket 6.6 from download.racket-lang.org and I'd like to > submit a change to the HTDP repo. > > (This question is not really specific to HTDP, anyway) > > Before I submit the edit, I want to

[racket-users] Properly annotating disappeared uses/bindings for substituted identifiers

2016-10-12 Thread Alexis King
I have a rather strange macro. My macro works just like lambda, except that it only accepts one argument, and inside the body of the lambda, it annotates all uses of that argument with a syntax property. The macro looks like this: (require (for-syntax racket/syntax

Re: [racket-users] How to edit the htdp package from a release?

2016-10-12 Thread Ben Greenman
yes yes yes Thank you! On Wed, Oct 12, 2016 at 12:01 PM, Matthew Flatt wrote: > At Wed, 12 Oct 2016 11:34:06 -0400, Ben Greenman wrote: > > I've installed Racket 6.6 from download.racket-lang.org and I'd like to > > submit a change to the HTDP repo. > > > > (This question is

[racket-users] Re: Properly annotating disappeared uses/bindings for substituted identifiers

2016-10-12 Thread Dupéron Georges
My experience with check-syntax is that several conditions have to be met: * The identifiers must have the correct source locations (actually, you can make arrows point to weird places by faking the source locations) * The properties must be present high enough in the AST. For example, if you

Re: [racket-users] Scribble: Advice for treating content as structured data foremost and as documents secondarily?

2016-10-12 Thread Matthew Butterick
On Oct 12, 2016, at 4:19 PM, CJ Gaconnet wrote: > > To recap, I'm looking to treat my written output as structured datums/syntax > objects/structs foremost, which I can traverse/combine/transform into > documents as needed; I want to extend my ontology of datums easily

Re: [racket-users] Re: FUSE filesystem package

2016-10-12 Thread Scott Moore
Good catch! Thanks Robby. On October 12, 2016 at 4:03:36 PM, Robby Findler (ro...@eecs.northwestern.edu) wrote: Looks like the code has a race-condition. You could either define it away (using thread-cells (ie once per thread)) or add some syncronization. Robby On Wed, Oct 12, 2016 at

Re: [racket-users] Re: FUSE filesystem package

2016-10-12 Thread Robby Findler
Looks like the code has a race-condition. You could either define it away (using thread-cells (ie once per thread)) or add some syncronization. Robby On Wed, Oct 12, 2016 at 4:53 PM, Scott Moore wrote: > On October 12, 2016 at 2:35:37 PM, Vincent St-Amour >

[racket-users] Scribble: Advice for treating content as structured data foremost and as documents secondarily?

2016-10-12 Thread CJ Gaconnet
Hi, I have been seeking a system that will allow me to store all of my written output as structured data. After recently discovering Scribble, I think I may have found it (I really like the @-form syntax)! However, I think I need to make some changes to turn it into what I need, and that's

Re: [racket-users] How to edit the htdp package from a release?

2016-10-12 Thread Matthew Flatt
At Wed, 12 Oct 2016 11:34:06 -0400, Ben Greenman wrote: > I've installed Racket 6.6 from download.racket-lang.org and I'd like to > submit a change to the HTDP repo. > > (This question is not really specific to HTDP, anyway) > > Before I submit the edit, I want to test the change on my machine,

Re: [racket-users] How to edit the htdp package from a release?

2016-10-12 Thread 'John Clements' via Racket Users
> On Oct 12, 2016, at 8:43 AM, 'John Clements' via Racket Users > wrote: > > >> On Oct 12, 2016, at 8:34 AM, Ben Greenman >> wrote: >> >> I've installed Racket 6.6 from download.racket-lang.org and I'd like to >> submit a change

[racket-users] Planet package murphy/protobuf for Protocol Buffers

2016-10-12 Thread David Storrs
I'm trying to use the (require (planet murphy/protobuf)) module to work with Google's Protocol Buffers standard. protobuf comes with a generator tool, http://planet.racket-lang.org/archives/murphy/protobuf.plt/1/1/contents/planet-docs/generator/, which is a plugin for the protoc compiler.