[racket-users] namespace-variable-value thinks functions are bound to syntax

2017-10-29 Thread Junsong Li
Hello list, In the following program, racket thinks foo2, and foo3 are bound to syntax. Is this expected behavior? -- File: go.rkt #lang racket (module p racket (provide (all-defined-out)) (define (foo0 a b) (+ a b)) (define (foo1 a b [c 3]) (+ a b c)) (define (foo2 a b [c 3] #

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread Robby Findler
Yes, I can see that. That said, I think that good GUI design is probably best conducted not in brainstorming sessions on a mailing list, however. At the risk of repeating myself, I think it makes sense to see if we can get good information first and then decide where to put it second. I still thin

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread Neil Van Dyke
How about a progress bar in the status bar (like some Web browsers used to have, and Thunderbird still does), accept that it will be non-monotonic and not an accurate wall-clock-time % for some compilation tasks, and overlay it with some simple metric like "Compiled 8 / 12 files..."? If you c

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread 'John Clements' via Racket Users
> On Oct 29, 2017, at 15:35, Robby Findler wrote: > > On Sun, Oct 29, 2017 at 5:31 PM, John Clements > wrote: >> >>> On Oct 29, 2017, at 15:27, Robby Findler >>> wrote: >>> >>> I think it is a bad idea to dump output into the interactions that >>> isn't being printed by the program. >> >>

Re: [racket-users] Open source projects

2017-10-29 Thread Neil Van Dyke
When you're first learning Racket, wanting to contribute to the community is very admirable, but I think your *first* priority should be to get experience with Racket.  I think this prioritization will tend to make you more useful to everyone, sooner. I suggest getting experience with Racket b

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread Robby Findler
On Sun, Oct 29, 2017 at 5:31 PM, John Clements wrote: > >> On Oct 29, 2017, at 15:27, Robby Findler wrote: >> >> I think it is a bad idea to dump output into the interactions that >> isn't being printed by the program. > > We currently print “Welcome to DrRacket” at the start of each interaction,

Re: [racket-users] `raco pkg install` from private GitHub repo?

2017-10-29 Thread Matthew Butterick
I think I found the problem. On this line: https://github.com/racket/racket/blob/master/racket/collects/pkg/private/checkout-credentials.rkt#L10 The variable `credentials-list` starts out as

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread 'John Clements' via Racket Users
> On Oct 29, 2017, at 15:27, Robby Findler wrote: > > I think it is a bad idea to dump output into the interactions that > isn't being printed by the program. We currently print “Welcome to DrRacket” at the start of each interaction, so it’s not as if *all* of the output is generated by the pr

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread Robby Findler
I think it is a bad idea to dump output into the interactions that isn't being printed by the program. There is a logging window, perhaps that can be used? Robby On Sun, Oct 29, 2017 at 5:25 PM, 'John Clements' via Racket Users wrote: > This is a great idea: I feel like this change would deliv

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread 'John Clements' via Racket Users
This is a great idea: I feel like this change would deliver 80% of what I want, and be easy to implement. It would give a concrete and recognizable visual “path” of the compilation. I would not be inclined to delete it when finished. Could it ever be long? Would it make other people unhappy to s

Re: [racket-users] Open source projects

2017-10-29 Thread 'Royall Spence' via Racket Users
The docs are located in the main repository here: https://github.com/racket/racket/tree/master/pkgs/racket-doc/scribblingsIt's not always easy to find the page you're looking for via the source tree, so I recommend using a string search on Github to find the sections of documentation you'd like to

Re: [racket-users] Open source projects

2017-10-29 Thread Guthrie Price
It was recommended to me by a friend that while I am still learning Racket perhaps I can contribute to any documentation issues. This sounds like a good idea to me, but I am not sure how I can get started. Any help getting the ball rolling would be greatly appreciated. Thank you, Guthrie

Re: [racket-users] namespace-require a submodule

2017-10-29 Thread Junsong Li
That explains. Thanks! On Sun, Oct 29, 2017 at 11:20 AM, Sam Tobin-Hochstadt wrote: > If you look at what `(quote-module-path food)` produces, it's just > `(submod "/path/to/go.rkt" food)`. The issue is just that > `namespace-require` needs a reference that it can resolve without > knowing what f

Re: [racket-users] namespace-require a submodule

2017-10-29 Thread Sam Tobin-Hochstadt
If you look at what `(quote-module-path food)` produces, it's just `(submod "/path/to/go.rkt" food)`. The issue is just that `namespace-require` needs a reference that it can resolve without knowing what file it's in -- `namespace-require`, unlike `require`, is a just a function and doesn't know an

Re: [racket-users] namespace-require a submodule

2017-10-29 Thread Junsong Li
Thanks! That works. I am still not sure what is the thing that I don't know. Why do we need a compile-time reference here? On Sun, Oct 29, 2017 at 9:59 AM, Sam Tobin-Hochstadt wrote: > I think you want to use `quote-module-path` here: > > #lang racket > > (require syntax/location) > > (module f

Re: [racket-users] namespace-require a submodule

2017-10-29 Thread Sam Tobin-Hochstadt
I think you want to use `quote-module-path` here: #lang racket (require syntax/location) (module food racket (provide apple) (define apple "pie")) (parameterize ([current-namespace (make-base-namespace)]) (namespace-require (quote-module-path food)) (eval 'apple)) On Sun, Oct 29, 2

[racket-users] namespace-require a submodule

2017-10-29 Thread Junsong Li
Hello list, I am trying to do namespace-require to a submodule, racket complains about unknown module, as below: $ cat go.rkt #lang racket (module food racket (provide apple) (define apple "pie")) (parameterize ([current-namespace (make-base-namespace)]) (namespace-require ''food) (

Re: [racket-users] DrR compilation progress bar

2017-10-29 Thread Stephen De Gabrielle
What about a simple timer and an indicator of compilation time compared to the previous compilation? The reasoning is that for a small project compilation time is short so it doesn’t matter that it will be wildly inaccurate, but for longer projects where compilation time is long, the number of chan