[racket-users] pict3d and pixel maps for textures

2019-09-21 Thread Hendrik Boom
Is there a way to paste a pixel map (such as a .png ?) to a face of one of the objects in pict3d? If so, I haven't found it. I'd like to paint the objects with interesting textures. -- hendrik -- You received this message because you are subscribed to the Google Groups "Racket Users" group.

Re: [racket-users] syntax-parse and iterecursion

2019-09-21 Thread Hendrik Boom
On Sat, Sep 21, 2019 at 08:01:16PM -0400, Hendrik Boom wrote: > On Sat, Sep 21, 2019 at 04:44:47PM -0400, Philip McGrath wrote: > > I'm not sure if I understand your question; do you mean something like this? > > #lang racket > > (require syntax/parse/define) > > (define-syntax-parser macro-list >

Re: [racket-users] syntax-parse and iterecursion

2019-09-21 Thread Hendrik Boom
On Sat, Sep 21, 2019 at 04:44:47PM -0400, Philip McGrath wrote: > I'm not sure if I understand your question; do you mean something like this? > #lang racket > (require syntax/parse/define) > (define-syntax-parser macro-list > [(_) >#'null] > [(_ x0 x ...) >#'(cons x0 (macro-list x

Re: [racket-users] schism - scheme to wasm compiler

2019-09-21 Thread Neil Van Dyke
Correction: "see which Scheme implementations come out with *Wasm* backends" -- 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

Re: [racket-users] syntax-parse ellipsis question

2019-09-21 Thread Jonathan Simpson
Thanks. I'm currently running 6.12, so this may be what convinces me to go ahead and upgrade. -- Jonathan On Sat, Sep 21, 2019 at 4:28 PM Philip McGrath wrote: > Use `~@` (sine Racket 7.0): > (syntax-parse #'(1 2 2 a 2 2 b 2 c) > [(1 (~seq n:nat ...+ x) ...) >#'((~@ n ... x) ...)]) > >

Re: [racket-users] syntax-parse ellipsis question

2019-09-21 Thread Ryan Culpepper
On 9/21/19 10:15 PM, Jonathan Simpson wrote: Given this macro that I'm experimenting with: (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((n ... x) ...)]) How would I change it so that it returns #'(2 2 a 2 2 b 2 c) instead of #'((2 2 a) (2 2 b) (2 c)) ? I don't want

Re: [racket-users] schism - scheme to wasm compiler

2019-09-21 Thread Neil Van Dyke
caleb wrote on 9/21/19 11:27 AM I'm a bit of a Racket noob--how extensive of a project is it to get Racket running on x R6RS scheme? I think there's a number of ways to do that, and to scope it, and I want to just put some initial thoughts out there, rather than propose requirements and

Re: [racket-users] syntax-parse and iterecursion

2019-09-21 Thread Philip McGrath
I'm not sure if I understand your question; do you mean something like this? #lang racket (require syntax/parse/define) (define-syntax-parser macro-list [(_) #'null] [(_ x0 x ...) #'(cons x0 (macro-list x ...))]) (macro-list 1 2 3 4 5) -Philip On Sat, Sep 21, 2019 at 4:29 PM Hendrik

[racket-users] syntax-parse and iterecursion

2019-09-21 Thread Hendrik Boom
I've read the syntax-parse and its documentation, and I'd like to know if there's a way for a macro to accept a varying number of parameters without them having to be handled in a uniform way, spliced into a list. I'd like to be able to expand (foo a1 a2 a3 a4 a5) into something like (bar a1

Re: [racket-users] syntax-parse ellipsis question

2019-09-21 Thread Jens Axel Søgaard
Den lør. 21. sep. 2019 kl. 22.15 skrev Jonathan Simpson : > Given this macro that I'm experimenting with: > > (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((n ... > x) ...)]) > > How would I change it so that it returns #'(2 2 a 2 2 b 2 c) instead of > #'((2 2 a) (2 2 b) (2

Re: [racket-users] syntax-parse ellipsis question

2019-09-21 Thread Philip McGrath
Use `~@` (sine Racket 7.0): (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((~@ n ... x) ...)]) -Philip On Sat, Sep 21, 2019 at 4:15 PM Jonathan Simpson wrote: > Given this macro that I'm experimenting with: > > (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+

[racket-users] syntax-parse ellipsis question

2019-09-21 Thread Jonathan Simpson
Given this macro that I'm experimenting with: (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((n ... x) ...)]) How would I change it so that it returns #'(2 2 a 2 2 b 2 c) instead of #'((2 2 a) (2 2 b) (2 c)) ? I don't want the parens around the individual sequences that

RE: [racket-users] scribble defproc looses parenthesis

2019-09-21 Thread jos.koot
Thanks, Your report shows even weirder things. Best wishes, Jos De: Gustavo Massaccesi Enviado el: 21 September 2019 13:33 Para: Jos Koot CC: Racket-Users List Asunto: Re: [racket-users] scribble defproc looses parenthesis It looks like an error to me. I made a bug report in

Re: [racket-users] schism - scheme to wasm compiler

2019-09-21 Thread Hendrik Boom
On Sat, Sep 21, 2019 at 09:27:04AM -0600, caleb wrote: > This is awesome. > > I'm a bit of a Racket noob--how extensive of a project is it to get > Racket running on x R6RS scheme? If you mean running R6RS scheme on Racket, I suspect it's as simple as starting with #lang r6rs instead of

Re: [racket-users] schism - scheme to wasm compiler

2019-09-21 Thread caleb
This is awesome. I'm a bit of a Racket noob--how extensive of a project is it to get Racket running on x R6RS scheme? Neil Van Dyke writes: > FYI, a proof-of-concept of compiling a good subset of Scheme to WebAssembly: > > https://github.com/google/schism > > It relies on two experimental(?)

Re: [racket-users] Re: drracket: disabling tools in edit -> preferences -> tools

2019-09-21 Thread 'Wayne Harris' via Racket Users
‐‐‐ Original Message ‐‐‐ On Friday, September 20, 2019 3:04 PM, gfb wrote: > Yes, the How To Design Programs (and possibly DeinProgramm ) tool relies > on the Test Engine tool. > > If you have a moment to do so, I'd encourage filing this consequence as an > issue on GitHub. Done.

Re: [racket-users] scribble defproc looses parenthesis

2019-09-21 Thread Gustavo Massaccesi
It looks like an error to me. I made a bug report in https://github.com/racket/scribble/issues/211 because it is easy to track the problem there. You can subscribe to the issue to get any update, or I can try to remember to post any (big) update here. Gustavo On Sat, Sep 14, 2019 at 2:05 PM Jos

Re: [racket-users] How to disable back button in web application

2019-09-21 Thread Jens Axel Søgaard
Den lør. 21. sep. 2019 kl. 10.05 skrev Marc Kaufmann < marc.kaufman...@gmail.com>: > Could I use the send/forward to essentially disable forms if I use as the > `action` attribute on the form an (embed-url ...), which will no longer > work later on? This will probably through an error if people

Re: [racket-users] How to disable back button in web application

2019-09-21 Thread Marc Kaufmann
I haven't had the time to test it, but I am wondering if calling (clear-continuations-table!) which send/forward does will delete all continuations, even those of other users. So suddenly links that other users want to use will also get wiped out. I probably won't have time to test today, but

[racket-users] Interactive Heat Maps

2019-09-21 Thread Alex Harsanyi
A few days ago I posted about adding maps to the DrRacket REPL -- while a nice demo, this is not why I implemented the `map-snip%` object. The reason I implemented it is because I wanted to add maps to an interface which was designed for displaying plots produced by `plot-snip`. While this

Re: [racket-users] How to disable back button in web application

2019-09-21 Thread Marc Kaufmann
Could I use the send/forward to essentially disable forms if I use as the `action` attribute on the form an (embed-url ...), which will no longer work later on? This will probably through an error if people do the 'Go back, resubmit' cycle, but I don't mind throwing an error on that, rather than