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

2019-09-25 Thread Alex Harsanyi
On Wednesday, September 25, 2019 at 1:37:41 PM UTC+8, Jesse Alama wrote: > > 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. Expr

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

2019-09-25 Thread Jesse Alama
An update to my command line REPL adventures: I'm still unable to get a working REPL, even when adding more and more information to raco exe/distribute. Here's my latest attempt: raco exe ++lang foo ++lang racket/base ++lang racket ++lang brag ++lib racket ++lib racket/base foo.rkt I've even t

Re: [racket-users] handin: how to forbid the use of a certain function

2019-09-25 Thread 'Wayne Harris' via Racket Users
I think my message below neither asked any question nor did it contain the adequate politeness which I so much think every e-mail should have. Looking at it in retrospective, it seems wild that *I* did let a message like that go by. Do believe me that I'm not saying this because I need help, b

[racket-users] Announcing Stripe Integration

2019-09-25 Thread Sage Gerard
Hi all, I didn't see one in a search so I just added a Stripe API integration library to the index: https://pkgd.racket-lang.org/pkgn/package/stripe-integration - Dependencies are all from base - Generates and escalates idempotency keys automatically in the event of network failure - Includes

Re: [racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread David Storrs
On Wed, Sep 25, 2019 at 7:45 PM Alex Harsanyi wrote: > > Is there any tunneling involved for connecting to your AWS instance? > > There is only one copy of the source port in an IP+UDP datagram, and this > needs to be whatever the router is using for NAT, otherwise it would not be > able to rout

Re: [racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread Alex Harsanyi
Is there any tunneling involved for connecting to your AWS instance? There is only one copy of the source port in an IP+UDP datagram, and this needs to be whatever the router is using for NAT, otherwise it would not be able to route replies back to your machine on the local network. If you hav

Re: [racket-users] Confusion with udp-receive!

2019-09-25 Thread David Storrs
Hi Greg, On Wed, Sep 25, 2019 at 3:33 PM George Neuner wrote: > > Hi David, > > On 9/25/2019 1:08 AM, David Storrs wrote: > What you are overlooking is that UDP is a level 4 [end-to-end] protocol, > but you are trying to get level 3 [routing] information. > > Neither UDP nor TCP normally record

Re: [racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread David Storrs
On Wed, Sep 25, 2019 at 2:57 PM Matthew Flatt wrote: > > At Wed, 25 Sep 2019 12:49:36 -0400, David Storrs wrote: > > 1) Is it possible that there is a bug in the underlying C code? > > It's always possible. But if I understand the original problem, it > seems unlikely that a bug manages to exactly

Re: [racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread George Neuner
On 9/25/2019 2:57 PM, Matthew Flatt wrote: At Wed, 25 Sep 2019 12:49:36 -0400, David Storrs wrote: > 1) Is it possible that there is a bug in the underlying C code? It's always possible. But if I understand the original problem, it seems unlikely that a bug manages to exactly reconstruct a po

Re: [racket-users] Confusion with udp-receive!

2019-09-25 Thread George Neuner
Hi David, On 9/25/2019 1:08 AM, David Storrs wrote: 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. NAT

Re: [racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread Matthew Flatt
At Wed, 25 Sep 2019 12:49:36 -0400, David Storrs wrote: > 1) Is it possible that there is a bug in the underlying C code? It's always possible. But if I understand the original problem, it seems unlikely that a bug manages to exactly reconstruct a port number that has been replaced in a UDP packet

Re: [racket-users] scribble/srcdoc raised exception fix and class-doc syntax form

2019-09-25 Thread Dominik Pantůček
On 25. 09. 19 19:32, Ben Greenman wrote: >> Should I include a brief documentation in >> scribble-doc/scribblings/scribble/srcdoc.scrbl within the same PR as well? > > Yes! Btw, looking at the struct-doc and struct*-doc descriptions maybe I should actually provide class-doc and class*-doc forms

Re: [racket-users] scribble/srcdoc raised exception fix and class-doc syntax form

2019-09-25 Thread Ben Greenman
> Should I include a brief documentation in > scribble-doc/scribblings/scribble/srcdoc.scrbl within the same PR as well? Yes! And if there are tests for scribble/srcdoc, it'd be good to add some for `class-doc` before merging -- You received this message because you are subscribed to the Google

Re: [racket-users] scribble/srcdoc raised exception fix and class-doc syntax form

2019-09-25 Thread Dominik Pantůček
Hi, thank you for the quick response. On 25. 09. 19 17:11, Ben Greenman wrote: > These changes look great. Can you open a pull request for the > racket/scribble repo? > opened PR#212. > It looks like: > - `class?` would be a better contract than `any/c` Definitely makes sense, as the result

Re: [racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread David Storrs
We (my business partner and I) ran tcpdump on the router and determined that no, it is not using the local port. At first it bound to 65395 and then after we stopped/started the process it bound to a different port (49428) as expected. After a bit of digging in the racket source code I note that

Re: [racket-users] Interactive Heat Maps

2019-09-25 Thread 'John Clements' via Racket Users
Nice! Many thanks for sharing this. John > On Sep 21, 2019, at 2:06 AM, Alex Harsanyi wrote: > > 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 a

Re: [racket-users] scribble/srcdoc raised exception fix and class-doc syntax form

2019-09-25 Thread Ben Greenman
These changes look great. Can you open a pull request for the racket/scribble repo? https://github.com/racket/scribble Some comments below > Also I implemented a simple defclass wrapper as a provide form named > class-doc: > > class-doc syntax form > (define-provide/doc-transformer cl

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

2019-09-25 Thread Jay McCarthy
The output of `make-servlet-tester` returns the HTTP response object that the servlet returns. `make-servlet-tester` really makes a HTTP connection to your servlet and is checking the actual result that you sent back. If the servlet throws an exception, then probably you have the default exception

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

2019-09-25 Thread Hendrik Boom
On Wed, Sep 25, 2019 at 09:30:07AM -0400, Hendrik Boom wrote: > 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 t

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

2019-09-25 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? > > Failing that I

Re: [racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread David Storrs
On Wed, Sep 25, 2019, 3:16 AM Alex Harsanyi wrote: > Do you know what port the router is using for NAT? Are you sure that the > router is not simply choosing the same port, so 25890 is both your local > port and the port used by the router? > I haven't yet 100% ruled it out, but it doesn't look

[racket-users] scribble/srcdoc raised exception fix and class-doc syntax form

2019-09-25 Thread Dominik Pantůček
Hello, as a heavy user of scribble/srcdoc I've always missed a defclass provide form equivalent. Therefore I wanted to implement my own. I decided to use thing-doc as a starting point and noticed that it raises misleading message if id is not an identifier. Minimal working example follows. M

[racket-users] Re: Confusion with udp-receive!

2019-09-25 Thread Alex Harsanyi
Do you know what port the router is using for NAT? Are you sure that the router is not simply choosing the same port, so 25890 is both your local port and the port used by the router? Alex. On Wednesday, September 25, 2019 at 1:08:16 PM UTC+8, David Storrs wrote: > > udp-receive! is giving me