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

2019-09-27 Thread Jesse Alama
On Friday, September 27, 2019 at 2:47:06 PM UTC+2, Matthew Flatt wrote: At Fri, 27 Sep 2019 05:39:23 -0700 (PDT), Jesse Alama wrote: > > On Friday, September 27, 2019 at 2:25:17 PM UTC+2, Matthew Flatt wrote: > > > > > > > > > It looks like `lazy-require` as used by `racket/match` isn't > com

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

2019-09-27 Thread Matthew Flatt
At Fri, 27 Sep 2019 05:39:23 -0700 (PDT), Jesse Alama wrote: > On Friday, September 27, 2019 at 2:25:17 PM UTC+2, Matthew Flatt wrote: > > > > > > It looks like `lazy-require` as used by `racket/match` isn't compatible > > with creating a new namespace and attaching `racket/match` to that > > nam

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

2019-09-27 Thread Jesse Alama
On Friday, September 27, 2019 at 2:25:17 PM UTC+2, Matthew Flatt wrote: > > > It looks like `lazy-require` as used by `racket/match` isn't compatible > with creating a new namespace and attaching `racket/match` to that > namespace. More generally, `define-runtime-module-path-index` doesn't > coo

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

2019-09-27 Thread Matthew Flatt
At Thu, 26 Sep 2019 23:06:28 -0700 (PDT), Jesse Alama wrote: > On Thursday, September 26, 2019 at 3:37:43 PM UTC+2, Matthew Flatt wrote: > Thanks! This helps. I didn't know I was sailing into deep namespace waters. > But another error has reared its head: when, in the REPL, I evaluate an > expres

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

2019-09-26 Thread Jesse Alama
On Thursday, September 26, 2019 at 3:37:43 PM UTC+2, Matthew Flatt wrote: At Tue, 24 Sep 2019 22:37:41 -0700 (PDT), Jesse Alama wrote: > > This works for making a standalone executable that can exectute foo > > programs specified on the command line, but doesn't work for a REPL. The > > difficu

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

2019-09-26 Thread Matthew Flatt
At Tue, 24 Sep 2019 22:37:41 -0700 (PDT), Jesse Alama wrote: > This works for making a standalone executable that can exectute foo > programs specified on the command line, but doesn't work for a REPL. The > difficulty seems to be the `namespace-require` part of `run-repl`, defined > like this:

[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