Re: [racket-users] Re: More compile/eval Confusion

2015-12-26 Thread Leif Andersen
Yes, this worked for me, thank you. It also uncovered a bug in my tests where test namespaces where leaking out of the tests, thus affecting future tests. Thank you again. ~Leif Andersen On Sat, Dec 26, 2015 at 6:23 AM, Matthew Flatt wrote: > At Fri, 25 Dec 2015 16:58:53

Re: [racket-users] making games in racket

2015-12-26 Thread Jay McCarthy
Hi Taro, The freezes are probably garbage-collection pauses. Recently (in the snapshot builds) there is a new incremental GC mode that may improve your program. I have a few libraries---lux and mode-lambda---that are designed for higher performance than 2htdp/universe and 2htdp/image but provide

Re: [racket-users] making games in racket

2015-12-26 Thread Taro Annual
2015年12月26日土曜日 21時52分36秒 UTC+9 Jay McCarthy: > Hi Taro, > > The freezes are probably garbage-collection pauses. Recently (in the > snapshot builds) there is a new incremental GC mode that may improve > your program. > > I have a few libraries---lux and mode-lambda---that are designed for >

Re: [racket-users] making games in racket

2015-12-26 Thread Matthew Flatt
At Fri, 25 Dec 2015 22:17:21 -0800 (PST), Taro Annual wrote: > I make "pong" game in big-bang(2hdp/universe). > But, moving a racket(not language!) by keyboard("up", "down", ...), the > racket > freezes in 0.3~0.5s sometimes. > > I think it is due to the beginner's platform. > What

Re: [racket-users] Re: More compile/eval Confusion

2015-12-26 Thread Matthew Flatt
At Fri, 25 Dec 2015 16:58:53 -0700, Leif Andersen wrote: > That's what I thought initially too, but it didn't seem to make a > difference when I used > `expand-syntax-top-level-with-compile-time-evals`, although then I > realized that perhaps a better function to use would be >

Re: [racket-users] making games in racket

2015-12-26 Thread Taro Annual
2015年12月26日土曜日 21時54分52秒 UTC+9 Matthew Flatt: > At Fri, 25 Dec 2015 22:17:21 -0800 (PST), Taro Annual wrote: > > I make "pong" game in big-bang(2hdp/universe). > > But, moving a racket(not language!) by keyboard("up", "down", ...), the > > racket > > freezes in 0.3~0.5s sometimes. > > > > I

[racket-users] Typed/Untyped cost reduction and experience

2015-12-26 Thread JCG
Having just converted a server process of about 1800 lines of untyped Racket to 1900 lines of typed Racket, I'd like to make some comments 1) I highly suggest starting in Typed Racket if you are going to go end up there. I made the mistake of writing it untyped and then retrofitting which

Re: [racket-users] making games in racket

2015-12-26 Thread Matthew Flatt
At Sat, 26 Dec 2015 06:52:19 -0800 (PST), Taro Annual wrote: > 2015年12月26日土曜日 21時54分52秒 UTC+9 Matthew Flatt: > > Can you try a current snapshot to see whether it eliminates pauses?: > > > > http://pre.racket-lang.org/ > > > > [...] > > Sorry, it doesn't work well. Try the follows: Can you

Re: [racket-users] Typed/Untyped cost reduction and experience

2015-12-26 Thread Asumu Takikawa
On 2015-12-26 15:52:38 -0800, JCG wrote: > 3) The end-product appears to be a 50%-performance hybrid due to boundary > contracts, but ameliorated runtime-wise by utilizing the > typed/racket/no-check language after it's all working in type checked mode. If you're using Racket v6.3, another way

Re: [racket-users] Typed/Untyped cost reduction and experience

2015-12-26 Thread JCG
On Saturday, December 26, 2015 at 9:14:10 PM UTC-5, Asumu Takikawa wrote: > > That way at least your types won't bitrot as much. Note that as the name > indicates, this is potentially less safe than untyped Racket if the TR > optimizer is on. > > (you could also write a wrapper macro that