Re: [racket-users] or/c, parametric->/c, and contract-first-order-passes?

2017-11-29 Thread Robby Findler
Maybe this line: https://github.com/racket/racket/blob/master/racket/collects/racket/contract/private/parametric.rkt#L105 should be: #:first-order (λ (c) (if (barrier-contract-positive? c) (barrier-contract-pred c) (λ (x) #t))) ? Robby On Tue, Nov 28, 2017 at 8:02 PM, Ben Greenman

Re: [racket-users] Plot - Choosing the number of mesh lines independently from the number of samples

2017-11-29 Thread Marduk Bolaños
Thank you Ben! I will give it a try. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit

Re: [racket-users] Plot - Choosing the number of mesh lines independently from the number of samples

2017-11-29 Thread Marduk Bolaños
Thank you Ben! I will give it a try. On Wednesday, November 29, 2017 at 6:04:38 PM UTC+1, Ben Greenman wrote: > > I don't think this is currently possible. > > To implement this, I think the `for-2d-sample` loop here needs to change: > >

Re: [racket-users] Include Documentation from a scribble/lp2 File: "identifier `doc' not included [...]" Error

2017-11-29 Thread Ben Greenman
> * Would have never been able to deduce this from the info you referenced... Good point. Here's a pull request for changing the docs: https://github.com/racket/scribble/pull/154 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe

Re: [racket-users] Include Documentation from a scribble/lp2 File: "identifier `doc' not included [...]" Error

2017-11-29 Thread Christian
> > Try changing the include-section to import the `doc` submodule: > > @include-section[(submod "sub-scribble.rkt" doc) > > > I got this idea from the 2nd paragraph of the "scribble/lp2 language" > docs: > http://docs.racket-lang.org/scribble/lp.html#%28mod-path._scribble%2Flp2%29 > *

Re: [racket-users] Include Documentation from a scribble/lp2 File: "identifier `doc' not included [...]" Error

2017-11-29 Thread Ben Greenman
Try changing the include-section to import the `doc` submodule: @include-section[(submod "sub-scribble.rkt" doc) I got this idea from the 2nd paragraph of the "scribble/lp2 language" docs: http://docs.racket-lang.org/scribble/lp.html#%28mod-path._scribble%2Flp2%29 On Wed, Nov 29, 2017 at 7:15

Re: [racket-users] Plot - Choosing the number of mesh lines independently from the number of samples

2017-11-29 Thread Ben Greenman
I don't think this is currently possible. To implement this, I think the `for-2d-sample` loop here needs to change: https://github.com/racket/plot/blob/master/plot-lib/plot/private/plot3d/surface.rkt#L28 (I guess there should be 2 loops, one to draw the surface and one to draw the lines) On

[racket-users] Re: how can I approximate syntax properties with `make-rename-transformer`?

2017-11-29 Thread Matthew Butterick
Seems like this works well enough, where I approximate the rename-transformer rather than the syntax property. (define-syntax (mb stx) (syntax-case stx () [(_ . args) (with-syntax ([args (syntax-property #'args 'key 'value)]) #'(other-module-begin . args))]))

Re: [racket-users] Configuration as main file (was Re: #lang languages and cyclic dependencies)

2017-11-29 Thread Neil Van Dyke
On 11/28/2017 11:58 PM, Jack Firth wrote: What if the configuration file was the main module of your app, instead of something imported by your app? If you want to combine this with per-user customization in Racket code, the 3rd message in the following thread suggests one way to handle

[racket-users] Configuration as main file (was Re: #lang languages and cyclic dependencies)

2017-11-29 Thread Tony Garnock-Jones
On 11/28/2017 11:58 PM, Jack Firth wrote: > What if the configuration file was the main module of your app, instead > of something imported by your app? I've tried this, and it works well. I haven't used a custom config #lang yet, but even with regular old Racket, it works very well. For

[racket-users] Plot - Choosing the number of mesh lines independently from the number of samples

2017-11-29 Thread Marduk Bolaños
Dear all, Recently, I made a 3D plot with surface3d, but had to increase the number of samples from the default value in order to obtain a smooth surface. Unfortunately, this change also increased the number of mesh lines, which resulted in a very dark surface. The appearance improved by painting

[racket-users] Include Documentation from a scribble/lp2 File: "identifier `doc' not included [...]" Error

2017-11-29 Thread Christian
overview.scrbl: #lang scribble/base @include-section["sub-scribble.rkt"] sub-scribble.rkt: #lang scribble/lp2 @title{Sub Scribble!} Oh yeah. @chunk[<*>] gives: only-in: identifier `doc' not included in nested require spec in: "sub-scribble.rkt" * What to do to include the documentation part