Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-07 Thread 'John Clements' via Racket Users
> On Apr 7, 2016, at 7:58 AM, Jay McCarthy wrote: > > mode-lambda is intended for this kind of work load. Try taking the demo, > going to the "rand" workload (line 140) and change in the in-range for W to > something like (* 10 W) (which would be 2.5k) and evaluating the performance. > I also

Re: [racket-users] What do you use macros for?

2016-04-07 Thread David Storrs
That's very cool, Dan. Thanks for the example. (Although, shouldn't -4^2 + 4^2 = 32, not 31?) If/when you do the 'further challenges' section, could you post the result here? It looks like it would be useful. Dave On Thu, Apr 7, 2016 at 1:53 PM, Daniel Prager wrote: > On Thu, Apr 7, 2016 a

Re: [racket-users] Trying to kill process created by process

2016-04-07 Thread Matthew Flatt
When you use `system` or `process`, the immediate new process runs a shell. The shell process then starts another one to run the command that you give it. I recommend using `process*` to avoid the shell process and to avoid encoding issues when passing arguments: (define racket (find-executable-

Re: [racket-users] What do you use macros for?

2016-04-07 Thread Daniel Prager
On Thu, Apr 7, 2016 at 4:13 PM, Rickard Andersson < rickard.m.anders...@gmail.com> wrote: > > What have you used them for? > > https://github.com/GoNZooo/gonz/blob/master/gonz/define-test.rkt > > It's a macro that allows me to bundle expected inputs with expected > outputs for those inputs togethe

[racket-users] Trying to kill process created by process

2016-04-07 Thread Wayne Iba
I'm having trouble with two interacting processes and am hoping someone can point out whatever it is that I'm missing. Process A starts process B and interacts with it but conditionally needs to kill it. But using the procedure of one argument returned (as the fifth element of a list) by pro

Re: [racket-users] mode-lambda example doesn't work?

2016-04-07 Thread Neil Van Dyke
Maybe someone should verbalize what many of us know: DrRacket is useful, and pretty neat. I'm a long-time Emacs person, but DrRacket has some conveniences and killer features that keep me coming back. (One of these days, I should get off my posterior, and learn how to make various personal-p

Re: [racket-users] 6.4 + universe has mouse-based hiccups

2016-04-07 Thread Matthew Flatt
At Thu, 07 Apr 2016 15:05:12 -0400, "'John Clements' via Racket Users" wrote: > > On Apr 7, 2016, at 8:34 AM, Matthew Flatt wrote: > > It looks like it's not a question of running DrRacket for a while, but > > of having multiple tabs in DrRacket. And, more specifically, it's not > > about DrRacket

Re: [racket-users] 6.4 + universe has mouse-based hiccups

2016-04-07 Thread 'John Clements' via Racket Users
> On Apr 7, 2016, at 8:34 AM, Matthew Flatt wrote: > > It looks like it's not a question of running DrRacket for a while, but > of having multiple tabs in DrRacket. And, more specifically, it's not > about DrRacket, but about showing a window containing a `tab-panel%` > instance that uses the 'n

Re: [racket-users] mode-lambda example doesn't work?

2016-04-07 Thread Robby Findler
On Thu, Apr 7, 2016 at 9:52 AM, Jay McCarthy wrote: > On Wed, Apr 6, 2016 at 8:18 PM, John Clements >> FWIW, I also notice exactly the same problem that I reported earlier when >> using 2htdp; on a long-running DrR process, swirling the mouse while the >> program is running reduces the frame rate

Re: [racket-users] What do you use macros for?

2016-04-07 Thread David Storrs
That makes sense. Thank you, Rickard. On Wed, Apr 6, 2016 at 11:13 PM, Rickard Andersson < rickard.m.anders...@gmail.com> wrote: > > What have you used them for? > > While it's certainly not the most impactful macro in the world, I was > pretty pleased with being able to do this: > > https://git

Re: [racket-users] 6.4 + universe has mouse-based hiccups

2016-04-07 Thread Matthew Flatt
It looks like it's not a question of running DrRacket for a while, but of having multiple tabs in DrRacket. And, more specifically, it's not about DrRacket, but about showing a window containing a `tab-panel%` instance that uses the 'no-border style on OS X. For example, start DrRacket with your p

Re: [racket-users] mode-lambda example doesn't work?

2016-04-07 Thread Jay McCarthy
On Thu, Apr 7, 2016 at 10:52 AM, Jay McCarthy wrote: > As we see over and over on the mailing list, DrRacket is not a reliable > way to run Racket programs. I don't recommend using it with mode-lambda. > I should have been more positive. It could be and is on the path to improving, but I think i

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-07 Thread Jay McCarthy
mode-lambda is intended for this kind of work load. Try taking the demo, going to the "rand" workload (line 140) and change in the in-range for W to something like (* 10 W) (which would be 2.5k) and evaluating the performance. I also just recently discovered an optimization I can make in mode-lambd

Re: [racket-users] mode-lambda example doesn't work?

2016-04-07 Thread Jay McCarthy
On Wed, Apr 6, 2016 at 8:18 PM, John Clements wrote: > > > On Apr 6, 2016, at 2:43 AM, Jay McCarthy wrote: > > > > Hi John, > > > > I'd like to debug the glClear error with you. I'll have to look up the > error to figure out where to go on it though, so I'll get back to you. > > > > However, the

[racket-users] Re: macros within expressions.

2016-04-07 Thread 'Richard Adler' via Racket Users
Thanks everyone for your help. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups

[racket-users] Re: macros within expressions.

2016-04-07 Thread 'Richard Adler' via Racket Users
This is a simplified example. I trying to learn how macros work inside expressions as well as at the start of expressions. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send a

Re: [racket-users] quoting in posts to this email list

2016-04-07 Thread Norman Gray
Greetings. On 7 Apr 2016, at 5:13, Neil Van Dyke wrote: I suggest that people posting replies to posts on this email list try to *minimize* quoting of the previous post(s). add1 Oh, for the sake of my poor heart, and the strain on it from my dark mutterings when disentangling top-posting: