lumbda/www
russell@unturf.com f66124b0bc
streaming: wall-clock flush so low-rate emissions appear immediately
Worker batching used to wait for 64KB / 4096 newlines before
flushing. A program like

  (let loop ((n 0))
    (when (zero? (modulo n 10000))
      (display "Emitted at iteration: ") (display n) (newline))
    (loop (+ n 1)))

emits ~25 bytes every 10K iterations, so the user saw nothing for
several seconds — fox reported "this used to work and doesn't seem
to anymore" because the first emission was buried in the batch
buffer.

Added a 100ms wall-clock check alongside the existing size /
newline thresholds. The first chunk to arrive triggers a flush
(lastFlushTime starts at 0), and low-rate streams cap at ~10
flushes/sec. High-rate streams still hit the byte / newline ceilings
first so chunk batching for tight (display) loops is unaffected.

Verified headlessly: the infinite-emitter program now shows the
first emission within a frame, subsequent ones streaming live as
the loop iterates.
2026-06-15 20:19:39 -04:00
..
fonts/chunkfive www: ChunkFive for logo/titles; normalize asm references to "GNU asm" 2026-04-19 16:08:02 -04:00
playground streaming: wall-clock flush so low-rate emissions appear immediately 2026-06-15 20:19:39 -04:00
repl streaming: wall-clock flush so low-rate emissions appear immediately 2026-06-15 20:19:39 -04:00
404.html www/: static docroot for lumbda.com 2026-04-19 11:21:56 -04:00
bend.html bend: dual-port worker (8320 wire + 8321 http) — playground onramp 2026-06-14 17:32:46 -04:00
index.html playground: free-form code option + encrypted vault, single-scroll layout 2026-06-14 12:56:25 -04:00
lumbda-logo-green.png www + whitepaper: adopt custom λ mark from MPS, green, 3× wordmark size 2026-04-19 17:32:43 -04:00
lumbda-logo.png www + whitepaper: adopt custom λ mark from MPS, green, 3× wordmark size 2026-04-19 17:32:43 -04:00
lumbda-whitepaper.html www: HTML whitepaper + prose rewrite avoiding "to be" and "the" 2026-04-19 16:23:56 -04:00
lumbda-whitepaper.pdf www: canonical slug /lumbda-whitepaper.pdf + embed uncloseai.js 2026-04-19 16:17:43 -04:00
robots.txt www/: static docroot for lumbda.com 2026-04-19 11:21:56 -04:00
style.css logo: revert artwork to source orientation (was over-flipped) 2026-04-19 17:42:14 -04:00