[racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
So, I was under the impression that the REPL was the toplevel (unless you entered a module context or something like that). But I just had something challenge that assumption and so now I'm a bit confused. I have the following top level program: (begin (require (for-meta 1 racket)

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
Ah, okay, that makes sense. Thank you. I didn't realize begin was evaluating each expression as it went. Thank you. ~Leif Andersen On Mon, Dec 21, 2015 at 5:47 PM, Matthew Flatt wrote: > In the REPL, `begin` splices at the granularity of expansion and > evaluation. That

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Matthew Flatt
In the REPL, `begin` splices at the granularity of expansion and evaluation. That is, the first of the two forms grouped by `begin` is compiled and evaluated, and only afterward the second one is compiled and evaluated. The `compile` function can't do that, because it's only supposed to compile

Re: [racket-users] rotate and union of a list of list of points

2015-12-21 Thread Matthias Felleisen
Can you describe an elliptical path in mathematical terms? Why do you want a list of list of points when a shape description is usually just a list of points? Also I have never heard of a Union of lists. If this is a homework problem, can you ask your instructor for clarification? On

[racket-users] rotate and union of a list of list of points

2015-12-21 Thread Raquel Oliveira
I'm a beginner at racket and I am finding it difficult to make a list of lists of points follow an elliptical path and also rotate them so that the shape that they make it's facing the centre of the ellipse. I can't make a union on this list either. Can anyone explain me a procedure to do this,

Re: [racket-users] Re: [racket-dev] Re: Happy Module Day!

2015-12-21 Thread Paolo Giarrusso
On Friday, December 11, 2015 at 3:22:59 PM UTC+1, Brian Adkins wrote: > On Friday, December 11, 2015 at 9:06:16 AM UTC-5, Matthew Flatt wrote: > I think maybe an xargs limit is being reached or something - when I scroll > up, I see another total line is displayed for .rkt, so it's: Yes, that's

[racket-users] FLOPS 2016: First call for participation

2015-12-21 Thread Sam Tobin-Hochstadt
Including a paper from our very own McCarthy/New/Fetscher/Findler. :) --- FLOPS 2016: 13th International Symposium on Functional and Logic Programming March 4-6, 2016, Kochi, Japanhttp://www.info.kochi-tech.ac.jp/FLOPS2016/ Call for Participation and Posters/Demos Registration will

[racket-users] Independent data structures

2015-12-21 Thread Héctor Mc
Hey guys, I have a big problem, when I started this project I completely ignored split the data for each user, and the results of that is the manage of one user for time, really bad. Now I try resolve this and all ideas result very dificult (at least in code). I can resolve a part of this

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Alex Knauth
> On Dec 21, 2015, at 10:53 PM, Leif Andersen wrote: > But `compile` is not supposed to evaluate any code, it just compiles > it. Which is why it fails to compile that code. But if you interleave > it with evals, it will run the require code, which gives the phase > level

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
Ah, that's a good question. One that I don't really know the answer too, because when I do: > (compile #'(begin (define-syntax (foo stx) (displayln "hello") #'5) foo)) I get back the compiled object. Also foo is not displayed. And

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
So, the way I understand it (and please correct me if I'm wrong), is that require is a macro for #%require, which is converted by the compiler to either a top level require form, or part of the module's require field. (Depending on where it goes). When you put a `begin-for-syntax` or a

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Leif Andersen
Wait, now I'm even more confused. If expand does the splicing and compile time evals song and dance, why do we need a separate function for: expand-syntax-top-level-with-compile-time-evals ? ~Leif Andersen On Mon, Dec 21, 2015 at 9:48 PM, Robby Findler wrote: > I

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Robby Findler
I believe that's because expand does the splicing dance, but compile doesn't (which is why you need the funny-named function ... "need" is perhaps a poor choice of words here :). Robby On Mon, Dec 21, 2015 at 10:30 PM, Leif Andersen wrote: > Ah, that's a good question.

Re: [racket-users] Confused about the difference between the REPL and the toplevel.

2015-12-21 Thread Alex Knauth
I get that `compile` doesn't evaluate the require form, but why doesn't it evaluate what's needed for compile time? I thought that was the reason for needing require as a macro instead of a function. Or am I getting the purpose of compile wrong? Alex Knauth > On Dec 21, 2015, at 7:47 PM,

[racket-users] Re: rotate and union of a list of list of points

2015-12-21 Thread Raquel Oliveira
segunda-feira, 21 de Dezembro de 2015 às 14:09:30 UTC, Raquel Oliveira escreveu: > I'm a beginner at racket and I am finding it difficult to make a list of > lists of points follow an elliptical path and also rotate them so that the > shape that they make it's facing the centre of the ellipse. I

Re: [racket-users] reducing pauses with incremental GC

2015-12-21 Thread Matthew Flatt
An update on incremental mode as of today's snapshot: DrRacket now enables incremental mode when you're editing. Specifically, the editor classes now request incremental mode when you click or type in the editor. This is an experiment to see whether incremental mode improves DrRacket's behavior

[racket-users] Re: rotate and union of a list of list of points

2015-12-21 Thread Raquel Oliveira
segunda-feira, 21 de Dezembro de 2015 às 14:09:30 UTC, Raquel Oliveira escreveu: > I'm a beginner at racket and I am finding it difficult to make a list of > lists of points follow an elliptical path and also rotate them so that the > shape that they make it's facing the centre of the ellipse. I

Re: [racket-users] Re: rotate and union of a list of list of points

2015-12-21 Thread Matthias Felleisen
On Dec 21, 2015, at 10:29 AM, Raquel Oliveira wrote: > segunda-feira, 21 de Dezembro de 2015 às 14:09:30 UTC, Raquel Oliveira > escreveu: >> I'm a beginner at racket and I am finding it difficult to make a list of >> lists of points follow an elliptical path and also

Re: [racket-users] DrRacket crashes on simple pict3d script

2015-12-21 Thread Jay McCarthy
Hi Greg, Can you update and check if you still get the same error? If you do, or if you get a different one, can you send me the output of racket -l pict3d/tests/shaders Thanks! Jay On Sun, Dec 20, 2015 at 6:04 PM, Greg Trzeciak wrote: > Thanks guys for such a quick