Re: [racket-users] Module dependencies

2018-05-28 Thread 韋嘉誠
(require) binds at compile time and creates a cycle, but by using (dynamic-require) you can get past compilation and only load the file at runtime, where the seemingly circular reference really isn't. -- /c On Sun, May 27, 2018, 23:48 Matthias Felleisen wrote: > > Modules cannot refer to ea

[racket-users] Unmap failed

2018-05-28 Thread pavelrodzevich
Hello, my name is Pavel and I'm new to Racket :) I'm playing with macros right now and get a strange error: "unmap failed". What I'm trying to achieve in this program: expand (step x) into (+ (expt 2 0) (expt 2 1) ...) For small numbers everything is OK, but I get an error for (step 100) W

Re: [racket-users] Questions on functional-setter generator macro

2018-05-28 Thread David Storrs
On Sat, May 26, 2018 at 3:11 PM, Alexis King wrote: > This isn’t a direct answer to your question, but as Matthias notes, my > struct-update package already implements a macro that generates > functional setters from structure definitions. Here’s a link to the > documentation: > O *cours

Re: [racket-users] Questions on functional-setter generator macro

2018-05-28 Thread Greg Hendershott
On Mon, May 28, 2018 at 9:58 AM, David Storrs wrote: > O *course* there is. Lord know, why should I have an original idea > now? :P The Racket package ecosystem is growing to where we need some volunteers to form a mathic order of Lorites (like in Neal Stephenson's novel, Anathem). --

Re: [racket-users] Module dependencies

2018-05-28 Thread Laurent
You could also have a third file, test-a-and-b.rkt, that requires both a.rkt and b.rkt and includes the test that depend on both files. On Mon, May 28, 2018 at 10:08 AM Claes Wallin (韋嘉誠) wrote: > (require) binds at compile time and creates a cycle, but by using > (dynamic-require) you can get

Re: [racket-users] Unmap failed

2018-05-28 Thread Philip McGrath
I was able to run your code successfully, so I can't help with the specific error message you're seeing, but there were a number of issues. In DrRacket, with `(step 50)`, expansion reaches the memory limit I've set before it's able to compile the program. I could run it at the command-line (and