[racket-users] Re: `raco test` seems slower, not caching any compilation results?

2020-03-19 Thread Ryan Kramer
On Wednesday, March 18, 2020 at 7:47:22 PM UTC-5, Ryan Kramer wrote: > > I'm currently using Racket 7.6 (non-CS) on Windows, and it feels like > `raco test` is much slower these days. > My mistake, it seems `raco test` never created the "compiled" directories with the dep and zo files. I found

Re: [racket-users] Load and execute files

2020-03-19 Thread Alexandre Rademaker
Not yet. To be more concrete: % racket --lib racket -t ex-1.2-3.rkt -t ex-1.7.rkt -t ex-1.8.rkt -r check.rkt check.rkt:31:7: sum-of-squares-max3: unbound identifier in: sum-of-squares-max3 location...: check.rkt:31:7 context...: do-raise-syntax-error for-loop [repeats 1 more

Re: [racket-users] Load and execute files

2020-03-19 Thread Ben Greenman
> But I was really expecting that the option -t in the racket command should > replace the explicit (require…) in B.rkt. Something like > >> racket -t A.rkt -f B.rkt > default-load-handler: expected a `module' declaration, but found something > else Yes that almost works, but A.rkt needs to

Re: [racket-users] Load and execute files

2020-03-19 Thread Alexandre Rademaker
Oh… That is great Ben. Thank you. This is very closer to what I am looking for, so I can avoid having to add the (provide …) in A.rkt and (require …) in B.rkt !! I should not be so hard to remove the lines `#lang racket` in all files from the students. But I was really expecting that the

Re: [racket-users] Load and execute files

2020-03-19 Thread Ben Greenman
On 3/19/20, Alexandre Rademaker wrote: > > Suppose I have some functions defined in a file A.rkt and some tests defined > in the file B.rkt. How can I execute the tests in the command line? > > I was expecting to be able to run > >> racket A.rkt B.rkt > > But this does not evaluate the

[racket-users] Re: Load and execute files

2020-03-19 Thread Alex Owens
Hello, this is very possible and you have the right idea. You need to (provide ...) the functions from A.rkt in your case, and (require "A.rkt") in B.rkt. Then you can simply run "racket B.rkt" and the require will get all of the functions that have been provided in A.rkt (assuming these files

[racket-users] Load and execute files

2020-03-19 Thread Alexandre Rademaker
Suppose I have some functions defined in a file A.rkt and some tests defined in the file B.rkt. How can I execute the tests in the command line? I was expecting to be able to run > racket A.rkt B.rkt But this does not evaluate the expressions on B.rkt as I was expecting! 1. Do I need to

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Philip McGrath writes: > For a general solution, I'd take a look at the Citation Style Language ( > https://citationstyles.org/), which is an XML language for defining how to > render citations and bibliographies. A major advantage is that it has libre > style definitions for a dizzying variety

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Philip McGrath writes: > On Thu, Mar 19, 2020 at 12:40 PM Matthew Flatt wrote: > >> At Thu, 19 Mar 2020 12:38:39 -0400, Christopher Lemmer Webber wrote: >> > I will spend the rest of the day looking at what scriblib's bibliography >> > stuff does in further detail and think about how to

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Philip McGrath
On Thu, Mar 19, 2020 at 12:40 PM Matthew Flatt wrote: > At Thu, 19 Mar 2020 12:38:39 -0400, Christopher Lemmer Webber wrote: > > I will spend the rest of the day looking at what scriblib's bibliography > > stuff does in further detail and think about how to accomplish what we > > need. It could

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Matthew Flatt
At Thu, 19 Mar 2020 12:38:39 -0400, Christopher Lemmer Webber wrote: > I will spend the rest of the day looking at what scriblib's bibliography > stuff does in further detail and think about how to accomplish what we > need. It could be that what I do is build a quicker proof of concept > that

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Matthew Flatt writes: > At Thu, 19 Mar 2020 11:46:44 -0400, Christopher Lemmer Webber wrote: >> What I thought was the more "Racket'y way" would be to store it as >> abstract data that then could be rendered to the appropriate style >> (that's what BibTeX and everything else does). > > Well,

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Matthew Flatt
At Thu, 19 Mar 2020 11:46:44 -0400, Christopher Lemmer Webber wrote: > What I thought was the more "Racket'y way" would be to store it as > abstract data that then could be rendered to the appropriate style > (that's what BibTeX and everything else does). Well, perhaps the Rackety way is to store

[racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Christopher Lemmer Webber
Hello, As some of you know (since we talked about it in a racketcon talk a couple of year ago), my spouse Morgan (cc'ed) is writing her art history dissertation in Scribble. She's getting close to finishing it (yay!) and we've been very happy with Scribble for this use in general, except for one

Re: [racket-users] HTDP2e part 4: 20.3 Refining Functions dir.rkt

2020-03-19 Thread Ben Greenman
On 3/19/20, Aron Zvi wrote: > Hey guys, > > In part 4 section 20.3 Refining Functions I am using (require htdp/dir) > and (create-dir DIR-PATH). I get back a Dir instance with name value being > a full path symbol of the folder. ie. (make-dir > '/Users/SSS/Documents/xyz empty empty). > This does

Re: [racket-users] using plai/gc2/{collector,mutator} in one file

2020-03-19 Thread Jay McCarthy
The plai languages pre-date submodules, so you're right that they were not tested or designed to support them. It might be possible, but I am skeptical about it being a quick fix. The problem might just be that they are built on `scheme` but if they were built on `racket` everything would just

[racket-users] HTDP2e part 4: 20.3 Refining Functions dir.rkt

2020-03-19 Thread Aron Zvi
Hey guys, In part 4 section 20.3 Refining Functions I am using (require htdp/dir) and (create-dir DIR-PATH). I get back a Dir instance with name value being a full path symbol of the folder. ie. (make-dir '/Users/SSS/Documents/xyz empty empty). This does not seem to be in line with the