Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

new examples

6 views
Skip to first unread message

Jens Rieks

unread,
Sep 6, 2004, 12:55:51 PM9/6/04
to perl6-i...@perl.org
Hi all,

there are now two new examples:

examples/sdl/lcd/clock.imc, which uses a simple SDL LCD object and
examples/sdl/minesweeper/mines.imc, a full functional minesweeper clone with
nice graphics (taken over from KMines screenshots).

Minesweeper freezes after you have created some new fields (by clicking onto
the smiley). I think it is a GC bug, because minesweeper does not even start
with --gc-debug.

Feedback welcome!

jens

Leopold Toetsch

unread,
Sep 7, 2004, 4:37:51 AM9/7/04
to Jens Rieks, perl6-i...@perl.org
Jens Rieks <par...@jensbeimsurfen.de> wrote:
> Hi all,

> there are now two new examples:

Great.

> Minesweeper freezes after you have created some new fields (by clicking onto
> the smiley). I think it is a GC bug, because minesweeper does not even start
> with --gc-debug.

Repeatedly clicking the smiley seems to go into some recursive calls in
the stopwatch code (the timer gets started first and then reset). On the
sixth or so click the timer starts running and the program stops with a
"Maximum recursion depth exceeded" exception (the limit is at 1000).

Removing the watch."start"() at field.imc:1007 seems to cure this
problem.

Running it with --gc-debug takes already ~27000 DOD runs during
initialization. Drawing the whole field takes a ~minute here, but it
succeeds finally. --gc-debug isn't usable for programs doing real work.

> jens

leo

0 new messages