On Sun, Nov 10, 2019 at 7:38 PM Jon Zeppieri wrote:
>
> On Sun, Nov 10, 2019 at 4:45 PM Jon Zeppieri wrote:
> >
> > On Sun, Nov 10, 2019 at 3:26 PM Jon Zeppieri wrote:
> > > =
> > > ;; If the tzdata package is installed, put its zoneinfo directory at
> > > ;; the head of the search path.
> >
I verified that the pre-release version 7.4.0.902 resolves my issue with
~between. With that fix I was able to complete the macro I was working on.
Thanks again for the advice and the quick response by the Racket dev team!
-- Jon
On Sunday, October 13, 2019 at 10:57:17 AM UTC-4, Jonathan Simpso
I just wanted to follow up to say that I finally got this working! I
finally re-implemented all of my non-hygienic macros with syntax-parse,
which resolved the unbound identifiers.
Once again, thanks to everyone who offered help and suggestions.
-- Jon
On Sunday, August 18, 2019 at 8:01:36 PM
I feel like I might not understand what you want, but it feels like
you just want to use `make-module-evaluator` from `racket/sandbox`:
```
#lang racket/base
(require racket/sandbox)
(define (read-script s)
(((make-module-evaluator s) 'script) 5))
(module+ test
(read-script
"#lang racket/
On Sun, Nov 10, 2019 at 4:45 PM Jon Zeppieri wrote:
>
> On Sun, Nov 10, 2019 at 3:26 PM Jon Zeppieri wrote:
> > =
> > ;; If the tzdata package is installed, put its zoneinfo directory at
> > ;; the head of the search path.
> > (define-runtime-path-list tzdata-paths
> > (match (find-relevant
Hey Eric! Thanks, I'll try to soak in this a bit tomorrow. :)
Eric Griffis writes:
> This works:
>
> 1. mkdir foo; cd foo; raco pkg install
>
> 2. create foo/main.rkt:
>
> ```
> #lang racket/base
>
> (module reader racket/base
> (require racket/port)
> (provide (rename-out [foo-read read]
>
This works:
1. mkdir foo; cd foo; raco pkg install
2. create foo/main.rkt:
```
#lang racket/base
(module reader racket/base
(require racket/port)
(provide (rename-out [foo-read read]
[foo-read-syntax read-syntax]))
(define (foo-read port)
`(module ,(gensym 'foo)
When I run
```
#lang racket/load
(module p racket/base
(define out (make-parameter 'original-value))
(provide out))
(module a racket/base
(require 'p)
(displayln (list 'a (out)))
(define a 43)
(provide a))
(require 'p)
(displayln (list 'outer (out)))
(out "foo")
(displayln (dynamic-re
On Sun, Nov 10, 2019 at 3:26 PM Jon Zeppieri wrote:
> =
> ;; If the tzdata package is installed, put its zoneinfo directory at
> ;; the head of the search path.
> (define-runtime-path-list tzdata-paths
> (match (find-relevant-directories '(tzdata-zoneinfo-module-path))
> [(cons info-dir
Well, I think I figured out how to get further:
with example1.rkt being:
```
#lang racket/base
;; #lang dungeon/misery
(define ((make-start-game read-save-file) player-name)
(list 'running-this-read-save-file: read-save-file
'on-player-name: player-name
'result: (read-save-file
Thanks, that's helpful. I'll probably take the same route as you with a
build.rkt; it would be nice to have everything self-contained and not
depend on platform-specific shell scripts or another language.
martin
On Fri, Nov 8, 2019 at 7:06 PM Alex Harsanyi wrote:
>
> There is no such raco comma
Background: the gregor date and time library depends on another
library called tzinfo to provide information from the systems zoneinfo
database. However, not all systems have a zoneinfo database installed
(notably, Windows systems, but also some minimal UNIX ones used in
Docker containers, for exam
Hi Eric! Thanks very much for the reply.
Eric Griffis writes:
>> It appears there must be; when I look at `build-program` in
>> sandbox.rkt it also looks like it's wrapping things in a module
>> structure... but I don't see how it then exports from that module or
>> how the code evaluating it im
On Sun, Nov 10, 2019 at 6:45 AM Christopher Lemmer Webber <
cweb...@dustycloud.org> wrote:
>
> It sounds like what I want is the case of the export.
I'll run with this.
> I guess a question remaining then is: if I'm doing this kind of dynamic
> import of the module, is there a way to require from
I have no experience with Redex (it is one of the things I want to get more
familiar with in the future), but I happened to watch this talk:
"Finding bugs without running or even looking at code" by Jay Parlar
https://www.youtube.com/watch?v=FvNRlE4E9QQ
Maybe a tool like this is interesting to yo
> Jay McCarthy writes:
>> Modules don't evaluate to values. They have effects and they have
>> exported symbols. If you want to observe the evaluation of your
>> language's module, you'll have to look at one of those two things.
>> Both are used by existing Racket languages and infrastructure: `rac
Christopher Lemmer Webber writes:
> I guess a question remaining then is: if I'm doing this kind of dynamic
> import of the module, is there a way to require from it (especially if
> it isn't assigned to a "filename" on disk?). It appears there must be;
> when I look at `build-program` in sandbox
Hi All,
How can I set a parameter used in a dynamically required module?
Example:
A parameter `out` is defined in a module p.
Before requiring (dynamically) module a, we want to set the parameter.
The attempt below fails.
(module p racket/base (define out (make-parameter 'original-value))
(
Thanks Jay for the helpful response as usual Jay; I really do appreciate
it.
It sounds like what I want is the case of the export. I think I can
figure out how to modify the #%module-begin to do that.
I guess a question remaining then is: if I'm doing this kind of dynamic
import of the module, i
19 matches
Mail list logo