Re: [racket-users] Reducing Program Startup Time

2016-12-04 Thread Lehi Toskin
Dupéron Georges I did what you suggested and placed a displayln at the beginning. There's a wait time between when I execute the program and then everything happens all at once - the displayln occurs at the same time as when the GUI spawns. > On Sunday, December 4, 2016 at 10:05:23 AM UTC-8, Ma

Re: [racket-users] Reducing Program Startup Time

2016-12-04 Thread Matthias Felleisen
> On Dec 3, 2016, at 9:40 PM, Dupéron Georges > wrote: > > A few ideas: > > 1) Loading a lot of modules can be slow. You are already avoiding that by > using racket/base and racket/gui/base, so that's good, but it already takes > me 0.5s just to require these :-( . I don't know it there is

Re: [racket-users] Language-provided bindings and arrows in DrRacket

2016-12-04 Thread Alex Knauth
> On Dec 4, 2016, at 10:27 AM, Dupéron Georges > wrote: > > I think I found a solution which allows me to inject the (#%require lng) > without causing conflicts with other required module: applying an extra scope > to the whole body makes the other (require) forms more specific, and they can

Re: [racket-users] Re: Language-provided bindings and arrows in DrRacket

2016-12-04 Thread Dupéron Georges
I think I found a solution which allows me to inject the (#%require lng) without causing conflicts with other required module: applying an extra scope to the whole body makes the other (require) forms more specific, and they can shadow bindings imported by (#%require lng). Here is the modified

Re: [racket-users] Re: Language-provided bindings and arrows in DrRacket

2016-12-04 Thread Dupéron Georges
Le dimanche 4 décembre 2016 04:18:44 UTC+1, Robby Findler a écrit : > The fully expanded form of the original program doesn't have a require > that brings in displayln? Indeed, if I use (#%require lng) the arrows get drawn. However, the body can require libraries which shadow some of the languag

Re: [racket-users] Animation-problem

2016-12-04 Thread Daniel Prager
Hi Janiho This should help get you get going ... The function big-bang takes minimally: * an initial "state of the world", * a function that that takes the current world state and evolves it with every tick of a notional clock, and * a function that takes the state of the world and draws it. I

[racket-users] Animation-problem

2016-12-04 Thread Janiho
Hello! The animation in this Pet Shop boys music video (LINK: https://www.youtube.com/watch?v=lNLkcOqQSBM (very good song btw!)) gave me a inspiration try to make it with the Racket. I'm very novice using the Racket, so I got to dead-end early. I get this far: (require 2htdp/universe) (requ