3
votes

On Linux and Racket v5.3, next program runs as expected,

#lang racket

(let loop ([i 0])
    (printf "~a\n" i)
    (sleep 0.01)
    (loop (add1 i)))

But this hangs after printing up to around 200,

#lang racket
(require racket/gui)

(let loop ([i 0])
    (printf "~a\n" i)
    (sleep 0.01)
    (loop (add1 i)))

This problem does not arise when running inside DrRacket. Is this a bug or am I missing something? If a bug, is there a workaround?

2
FWIW this might be platform specific. The programs works for me in OS X. - soegaard

2 Answers

3
votes

It looks like a bug -- do you mind filing a bug report using the web page, or preferably using DrRacket?

2
votes

This has now been fixed in the latest development version, see this commit.