Re: [racket-users] Licensing Details (Is there a Runtime Library Exception?)

2016-02-11 Thread George Bevan
Thanks for the prompt reply. Maybe I didn't look close enough - the license page I landed on was this one: http://docs.racket-lang.org/license/index.html Still, > This page points out that Racket is released under the LGPL (rather > than the GPL) yes, I noticed that, but I'm not sure that make

Re: [racket-users] Licensing Details (Is there a Runtime Library Exception?)

2016-02-11 Thread Leif Andersen
You can find the license that Racket is released under here: https://download.racket-lang.org/license.html This page points out that Racket is released under the LGPL (rather than the GPL), and also says: First, if you distribute your Racket application in source form or as compiled bytecode file

[racket-users] Licensing Details (Is there a Runtime Library Exception?)

2016-02-11 Thread George Bevan
Do programs written in Racket that use the libraries of racket-lang.org's implementation need to be licensed under GPL terms? Much like it is the case with e.g. the libraries in AdaCore's Ada implementation? Or is there a "Runtime Library Exception" or a "Classpath Exception" or similar, like i

Re: [racket-users] splicing conditional results in the surrounding block?

2016-02-11 Thread Matthew Butterick
> Yes, thank you for mentioning them. I was actually thinking of starting with > SXML, but then turning it into a list of string fragments (with spaces left > for the dynamically generated parts) as a simplification step once I've > figured out where everything goes. But there are other language

[racket-users] Re: splicing conditional results in the surrounding block?

2016-02-11 Thread Nota Poin
okay, I got it I think. (begin-for-syntax (define/contract (quotify stx) (-> (syntax/c (listof any/c)) (listof syntax?)) (map (λ (stx) (syntax-case stx () (e #'(quote e (syntax->list stx))) (define/contract (splice-tf stx) (-> syntax? syntax?) (

Re: [racket-users] Call for Google Summer of Code Project Suggestions

2016-02-11 Thread Daniel Prager
Great list! Suggestion: * #lang web/racket: Compilation from a Racket subset to compact JS / webassembly (+ HTML & CSS) Concept: Develop / debug in Racket, deploy to the web. Problem: The current approach using Whalesong is heavy / slow-loading for practical use. [Please correct me if I'm being

[racket-users] Re: Call for Google Summer of Code Project Suggestions

2016-02-11 Thread Lehi Toskin
On Thursday, February 11, 2016 at 12:51:00 PM UTC-8, Leif Andersen wrote: > Hello All, > > We are in the process of submitting a Google Summer of Code > application for Racket. If you have an idea for a self contained > project that would benefit the community, please let us know. These > should b

Re: [racket-users] How to profile compilation and macro expansion?

2016-02-11 Thread Matthias Felleisen
Thanks. Yes, compilation time is slow and profiling it is slower. -- Matthias On Feb 11, 2016, at 1:20 PM, stef wrote: > On Thursday, February 11, 2016 at 3:08:16 PM UTC, Matthias Felleisen wrote: >> On Feb 10, 2016, at 4:58 PM, stef wrote: >> >>> Typed Racket has similar huge performance pr

[racket-users] Call for Google Summer of Code Project Suggestions

2016-02-11 Thread Leif Andersen
Hello All, We are in the process of submitting a Google Summer of Code application for Racket. If you have an idea for a self contained project that would benefit the community, please let us know. These should be projects that a student would be able to complete in about 3 months. We will curate

Re: [racket-users] splicing conditional results in the surrounding block?

2016-02-11 Thread Nota Poin
On Thursday, February 11, 2016 at 9:08:33 AM UTC-8, Matthew Butterick wrote: > I'm supposing you know that Racket has at least two native representations > (X-expression and SXML) for HTML-like structures, so hacking HTML tags by > hand is unnecessary. Yes, thank you for mentioning them. I was

Re: [racket-users] rebinding a macro-introduced identifier from afar?

2016-02-11 Thread Benjamin Greenman
Generic path sounds good. When I sent the first message I didn't think through how to set the flags for #%module-begin, but I'd definitely use a config file with a generic path (unless there's a way to set compile-time parameters from the command line). On Thu, Feb 11, 2016 at 1:22 PM, Matthew But

Re: [racket-users] rebinding a macro-introduced identifier from afar?

2016-02-11 Thread Matthew Butterick
I like your idea, but unless I misunderstand, I'd still end up with a value (namely the module-picking condition) that I have to influence from afar (to produce different results when the #%module-begin runs). But it suggests another idea, which is to have the #%module-begin load a generic rela

Re: [racket-users] How to profile compilation and macro expansion?

2016-02-11 Thread stef
On Thursday, February 11, 2016 at 3:08:16 PM UTC, Matthias Felleisen wrote: > On Feb 10, 2016, at 4:58 PM, stef wrote: > > > Typed Racket has similar huge performance problems, so I'm actually > > worried about fundamental limitations of Racket as a host. > > > I am sorry but I take offense he

Re: [racket-users] rebinding a macro-introduced identifier from afar?

2016-02-11 Thread Benjamin Greenman
Could you put the dialect values in separate modules and have the #%module-begin conditionally pick which dialect modules to require? On Thu, Feb 11, 2016 at 11:18 AM, Matthew Butterick wrote: > > Why don't you put the val-id into the module via foo? Why is bar > supposed to do that? > > > This

Re: [racket-users] macro stepper

2016-02-11 Thread Robby Findler
It is probably best of all modifications to the gui objects happen on the eventspace main thread. Robby On Thursday, February 11, 2016, Gustavo Massaccesi wrote: > I've seen similar errors many times too (perhaps it's more common in > my machine that is slow and has windows ...) > > Once I trac

Re: [racket-users] splicing conditional results in the surrounding block?

2016-02-11 Thread Matthew Butterick
> Nota Poin wrote on 02/11/2016 04:48 AM: >> But there's no way I've ever been able to figure to produce generated text >> that is just a flat list of strings, if I ever want to have conditional >> decisions about what to go in that list. I'm supposing you know that Racket has at least two nativ

Re: [racket-users] macro stepper

2016-02-11 Thread Gustavo Massaccesi
I've seen similar errors many times too (perhaps it's more common in my machine that is slow and has windows ...) Once I tracked it, but I never got enough details to fix it. It was a few months ago, ... Perhaps it was another error, In case this is useful ... IIRC the problem is that two th

Re: [racket-users] macro stepper

2016-02-11 Thread Sam Caldwell
Yes, I mention seeing this in a bug report I filed last week: https://github.com/racket/macro-debugger/issues/13 - Sam Caldwell On Thu, Feb 11, 2016 at 11:37 AM, Scott Moore wrote: > Yes, around 80% of the time if I disable macro hiding, and sometimes even > with macro hiding if I’m moving bac

Re: [racket-users] macro stepper

2016-02-11 Thread Scott Moore
Yes, around 80% of the time if I disable macro hiding, and sometimes even with macro hiding if I’m moving back and forth through a long sequence of steps. I had been meaning to file a report... On February 11, 2016 at 11:27:21 AM, Matthias Felleisen (matth...@ccs.neu.edu) wrote: ... has anyone

[racket-users] macro stepper

2016-02-11 Thread Matthias Felleisen
... has anyone seen this error message from stepping thru macros: [:~/svn/2HtDP] matthias% sequence-contract-violation: negative: method set-max-width cannot be called, except in states (unlocked write-lock), args 834 context...: /Users/matthias/plt/racket/collects/racket/private/more-sche

Re: [racket-users] rebinding a macro-introduced identifier from afar?

2016-02-11 Thread Matthew Butterick
> Why don't you put the val-id into the module via foo? Why is bar supposed to > do that? This is part of a larger pattern where I've got a basic `#%module-begin` for my #lang that I want to spin out into dialect-specific versions. The dialects only vary in certain values. Sure, I can make a

Re: [racket-users] Using scribble to print BSL output

2016-02-11 Thread Matthias Felleisen
On Feb 9, 2016, at 7:53 PM, Matthew Flatt wrote: > I think the main issue is that `htdp/bsl/runtime` changed the way it > configures the printer. Instead of setting `current-print`, it sets > `global-port-print-handler`. Meanwhile, `interaction` prints within the > sandbox only if `current-print

Re: [racket-users] Web server: can't get radio-group formlet to process

2016-02-11 Thread Marc Kaufmann
Hi again, I just realized that I never figured out how to get radio-groups not to raise an error when no option is selected. I manage to put defaults for input-string and so on, by doing what Jay suggested and redefining my own through the use of 'default and 'input. In the case of radio-group, w

Re: [racket-users] How to profile compilation and macro expansion?

2016-02-11 Thread Matthias Felleisen
On Feb 10, 2016, at 4:58 PM, stef wrote: > Typed Racket has similar huge performance problems, so I'm actually worried > about fundamental limitations of Racket as a host. I am sorry but I take offense here. What could that even remotely mean? -- Matthias -- You received this message beca

Re: [racket-users] rebinding a macro-introduced identifier from afar?

2016-02-11 Thread Matthias Felleisen
Why don't you put the val-id into the module via foo? Why is bar supposed to do that? On Feb 10, 2016, at 7:13 PM, Matthew Butterick wrote: >>> You really want to parametrize foo over x for such things. (Or use a syntax >>> parameter.) > > > Of course, though I see now that my example

Re: [racket-users] splicing conditional results in the surrounding block?

2016-02-11 Thread Neil Van Dyke
Nota Poin wrote on 02/11/2016 04:48 AM: But there's no way I've ever been able to figure to produce generated text that is just a flat list of strings, if I ever want to have conditional decisions about what to go in that list. You might like `quasiquote` and `unquote-splicing`: `("a" "b"

[racket-users] Re: splicing conditional results in the surrounding block?

2016-02-11 Thread Nota Poin
I guess this transformation is what I'm looking for: (transform (list stuff ... (if test (list yes ...) (list no ...)) more ...)) => (if test (transform (list stuff ... yes ... more ...)) (transform (list stuff ... no ... more ...))) but of course you can't

[racket-users] splicing conditional results in the surrounding block?

2016-02-11 Thread Nota Poin
I run into this problem a lot whenever I'm generating some text. I'll be making what amounts to a sequence of strings being appended, and do something like this: (apply string-append (list "" something "")) Compared to un-parsing a representation of a document tree every single time, simpli