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?