[racket-users] raco exe & distribute, and namespace-require'ing a module: missing racket/base?

2019-09-24 Thread Jesse Alama
I'm working on building a standalone executable for a #lang that can be used in two ways: 1. foo awesome.foo: execute file awesome.foo, which is written in #lang foo 2. foo (no arguments): fire up a REPL. Expressions are to be written in the foo language. I can get (1) to work, after wrestling

[racket-users] Confusion with udp-receive!

2019-09-24 Thread David Storrs
udp-receive! is giving me unexpected results when my local machine -> router -> server shows the UDP port of the process running on the local machine instead of the one from the router. I'm not sure how to get the router's port instead. The AWS server does this: (define-values (len senders-hos

Re: [racket-users] read-eval-print-loop, #%top-interaction, and define

2019-09-24 Thread Alexis King
> On Sep 24, 2019, at 23:01, Jesse Alama wrote: > > The question is: we do we get the error with define if we know that step is > undefined? Shouldn't we learn, first, that step is undefined? The top level is hopeless. Unlike in a module, an unbound identifier at the top level is not a syntax

Re: [racket-users] read-eval-print-loop, #%top-interaction, and define

2019-09-24 Thread Jesse Alama
I managed to solve my problem, thanks to the suggestion that #%top-interaction should work as I expect (that is, allow define); your example shows that I was going down the wrong path in my thinking about the issue. What I found is a simple mistake: my expander wraps the define in another form

Re: [racket-users] NOT SOLVED: texture mapping on pict3d

2019-09-24 Thread Hendrik Boom
On Tue, Sep 24, 2019 at 08:59:31PM +0100, Stephen De Gabrielle wrote: > I'm building it now so have a go. Not hopeful because the none of the > tests/examples include any files that could be used as bitmap textures. I'm > going to dig deeper because maybe the textures are picts? Sounds like a plau

Re: [racket-users] NOT SOLVED: texture mapping on pict3d

2019-09-24 Thread Stephen De Gabrielle
I'm building it now so have a go. Not hopeful because the none of the tests/examples include any files that could be used as bitmap textures. I'm going to dig deeper because maybe the textures are picts? Failing that It might be possible to add textures. Not my area of expertise, but worth a look.

[racket-users] General ways and concrete examples of approaching web dev

2019-09-24 Thread Marc Kaufmann
Hi all, TL;DR: What are some patterns/approaches for web sites for which Racket is particularly suited *and* for which you can point at decently written up examples in Racket or other languages that share such features? Much longer me: I spent much of summer implementing online web sites with

Re: [racket-users] Can someone help me understand why my tokenizer (made with Brag) doesn't work?

2019-09-24 Thread Cistian Alejandro Alvarado Vázquez
I do understand why any-char wouldn't work. Thanks! I don't really understand why :seq didn't work, maybe because I want to require one or more chars (thus :+)? Anyway, it works now! Thanks a lot! You're a legend. On Tuesday, 24 September 2019 00:57:17 UTC-5, Matthew Butterick wrote: > > > On 23

Re: [racket-users] read-eval-print-loop, #%top-interaction, and define

2019-09-24 Thread Sam Tobin-Hochstadt
It's fine to have `#%top-interaction` around a `define`: ``` Welcome to Racket v7.4.0.10. > (#%top-interaction . (define x 1)) > x 1 ``` My guess is that your `#%top-interaction` is doing something that puts it in an expression context. Sam On Tue, Sep 24, 2019 at 8:34 AM Jesse Alama wrote: >

[racket-users] Testing Servlets: exceptions not raised/passed through; how to pass extra arguments to tested servlet

2019-09-24 Thread Marc Kaufmann
Hi all, I have gone through https://docs.racket-lang.org/web-server/test.html to finally stop manually checking whether I didn't introduce new bugs in one of my servlets. I think that I have figured out most of the wrinkles for this, except one. I run my tests via `raco test server.rkt`, and

[racket-users] read-eval-print-loop, #%top-interaction, and define

2019-09-24 Thread Jesse Alama
I'm working on a REPL for a #lang in which one can make definitions. One writes $x := 5 and this gets parsed into an S-expression like (assignment "x" 5) The #lang is not based on S-expressions, but I believe that that's irrelevant (though I may be wrong). Naturally enough, I've set up the

[racket-users] NOT SOLVED: texture mapping on pict3d

2019-09-24 Thread Hendrik Boom
On Tue, Sep 24, 2019 at 01:58:35AM -0700, Stephen De Gabrielle wrote: > Hi Hendrik > > Did you work out how to do this ? I’m also interested. No. Not at all. I'm starting to look at using am OpenGL binding instead for my projects .. but that looks much more difficult. I'm still hoping for a

[racket-users] pict3d and pixel maps for textures

2019-09-24 Thread Stephen De Gabrielle
Hi Hendrik Did you work out how to do this ? I’m also interested. Kr Stephen -- 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...@googlegr