Re: [racket-users] [racket] Racket 6.3(.0.7) breaks old code

2015-12-02 Thread Matthew Flatt
Thanks for the example! The problem is a bug in `namespace-mapped-symbols` (due to changes related to the new macro expander). I will push a repair later today. At Mon, 30 Nov 2015 20:16:44 +0800, WarGrey Gyoudmon Ju wrote: > Thank you, Matthew. > > The project itself is organized as a multi

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

2015-12-02 Thread Matthew Flatt
At Wed, 2 Dec 2015 11:26:05 -0500, Matt Jadud wrote: > "Dad, when are you going to push that incremental GC? I want to move > Space Orbs out of alpha..." Exactly. And there was a game before Space Orbs. He's been waiting for a couple of years. -- You received this message because you are

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

2015-12-02 Thread Neil Van Dyke
This is awesome, Matthew. Best Christmas ever! Neil V. -- 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

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

2015-12-02 Thread Jay McCarthy
Awesome Matthew! Jay On Wed, Dec 2, 2015 at 10:44 AM, Matthew Flatt wrote: > The development version of Racket now supports an incremental > garbage-collection mode that can eliminate long pauses in a program. > For example, incremental mode is useful for avoiding pauses in

[racket-users] reducing pauses with incremental GC

2015-12-02 Thread Matthew Flatt
The development version of Racket now supports an incremental garbage-collection mode that can eliminate long pauses in a program. For example, incremental mode is useful for avoiding pauses in games and animations. For more information, see http://goo.gl/rYjTIi You can try out incremental

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

2015-12-02 Thread Jack Firth
Absolutely fantastic! I wonder how often language designers implement features useful to game developers because of their children. -- 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

[racket-users] Help with a bewildering bug.

2015-12-02 Thread John Berry
I've been working on a new feature for Heresy and I've run into a bug I cannot even begin to track down the actual cause of. There's a Github issue here: https://github.com/jarcane/heresy/issues/37 I've tried a few naive solutions, but to be honest I really don't even know where to start because

Re: [racket-users] Help with a bewildering bug.

2015-12-02 Thread Vincent St-Amour
As a follow-up for the list, it looks like the issue was resolved following a discussion on the github issue. Vincent On Wed, 02 Dec 2015 03:25:55 -0600, John Berry wrote: > > I've been working on a new feature for Heresy and I've run into a bug I > cannot even begin to track down the actual

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

2015-12-02 Thread JCG
On Wednesday, December 2, 2015 at 10:44:47 AM UTC-5, Matthew Flatt wrote: > The development version of Racket now supports an incremental > garbage-collection mode that can eliminate long pauses in a program. > For example, incremental mode is useful for avoiding pauses in games > and animations.

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

2015-12-02 Thread WarGrey Gyoudmon Ju
I think, always. Because they like games too. On Thu, Dec 3, 2015 at 2:35 AM, Jack Firth wrote: > Absolutely fantastic! I wonder how often language designers implement > features useful to game developers because of their children. > > -- > You received this message

Re: [racket-users] Re: [racket] How to extend image-snip% with a new field

2015-12-02 Thread Robby Findler
Ah, right: that code didn't actually save the bitmap itself. How do you like this code? Robby #lang racket/gui (require (prefix-in - racket/base)) (provide (rename-out [image-data-snip-class snip-class]) image-data-snip%) (define image-data-snip% (class image-snip% (inherit

[racket-users] Windows show-scrollbars forcing call to on-paint

2015-12-02 Thread Lehi Toskin
Short version: show-scrollbars seems to be forcing my canvas object to call on-paint. The problem is that on-paint contains calls to show-scrollbars and thus creates an infinite loop. Long version: I have a canvas that displays an image and will enable or disable the scrollbars based on how

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

2015-12-02 Thread Alexis King
Wow, this is great. I just tried it with one of my games that I made with big-bang, and the pauses I was having are completely gone, as far as I can tell. (I was doing quite a bit of copying, so I think the GC was triggering fairly often.) Thanks a lot for this; it’s definitely a big

Re: [racket-users] web-server dispatch and places

2015-12-02 Thread George Neuner
On 12/2/2015 7:47 AM, Jay McCarthy wrote: Hi George, The output port (and input port) that a response gets is the real port, meaning that it has a file-descriptor and can be shared across places. I suggest having one serve/servlet place that does the dispatching, forwards the port (perhaps

Re: [racket-users] Re: [racket] How to extend image-snip% with a new field

2015-12-02 Thread Guilherme Ferreira
quarta-feira, 2 de Dezembro de 2015 às 13:34:21 UTC, Robby Findler escreveu: > I think this code is doing what you want. > > Robby > > #lang racket/gui > > (require (prefix-in - racket/base)) > (provide (rename-out [image-data-snip-class snip-class]) > image-data-snip%) > > (define

Re: [racket-users] web-server dispatch and places

2015-12-02 Thread Jay McCarthy
Hi George, The output port (and input port) that a response gets is the real port, meaning that it has a file-descriptor and can be shared across places. I suggest having one serve/servlet place that does the dispatching, forwards the port (perhaps using response/output if you know the headers

Re: [racket-users] "bad variable linkage" after restarting handin server under load

2015-12-02 Thread Robby Findler
Thanks: I've pushed the syncronization code to the handin repo. And yes, you're right that `thread` (which is what I think the handin server uses) doesn't make use of multiple cores. Places sound like the right construct to use here, but I can already predict one problem: 2htdp/universe depends

Re: [racket-users] Re: [racket] How to extend image-snip% with a new field

2015-12-02 Thread Robby Findler
I think this code is doing what you want. Robby #lang racket/gui (require (prefix-in - racket/base)) (provide (rename-out [image-data-snip-class snip-class]) image-data-snip%) (define image-data-snip% (class image-snip% (inherit set-snipclass get-flags set-flags