Re: [racket-users] making games in racket

2016-01-05 Thread Vincent St-Amour
On Tue, 05 Jan 2016 07:39:31 -0600, Alexander Shopov wrote: > > > break up your big function into small ones. > Apart from the obvious maintainability concerns - is there some rule > of thumb - how big a function shoul be in order to be inlined either > compile time or run time. If a code path is

Re: [racket-users] making games in racket

2016-01-05 Thread Matthias Felleisen
On Jan 5, 2016, at 8:39 AM, Alexander Shopov wrote: >> break up your big function into small ones. > Apart from the obvious maintainability concerns - is there some rule > of thumb - how big a function shoul be in order to be inlined either > compile time or run time. If a

Re: [racket-users] making games in racket

2016-01-05 Thread Alexander Shopov
> break up your big function into small ones. Apart from the obvious maintainability concerns - is there some rule of thumb - how big a function shoul be in order to be inlined either compile time or run time. If a code path is hot - what could stop the inlining? Kind regards: al_shopov -- You

Re: [racket-users] making games in racket

2016-01-05 Thread Matthias Felleisen
[[ Please, please break up your big function into small ones. A function per handler would be a good start. -- Matthias ]] On Dec 26, 2015, at 9:52 AM, Taro Annual wrote: > 2015年12月26日土曜日 21時54分52秒 UTC+9 Matthew Flatt: >> At Fri, 25 Dec 2015 22:17:21 -0800 (PST),

Re: [racket-users] making games in racket

2015-12-27 Thread Taro Annual
2015年12月27日日曜日 11時39分10秒 UTC+9 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/ > > > > > > [...] >

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] 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

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

[racket-users] making games in racket

2015-12-25 Thread Taro Annual
Hi, 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 modules/syntaxes are used in action games in Racket language. Thanks, Taro. --