Tracking issue for additional demos that fit the current Tinytalk v0
dialect (24-bit tagged SmallInteger refs, 14 bytecodes, hand-assembled
drivers via POKE / DATA-loader image init). All work without new
bytecodes, strings, blocks, or collections — result is one integer in
stdout, matching D1..D7.
Backlog
Driver-authoring cost
Each demo costs ~30-60 lines of fragile hand-assembly in BASIC
(POKE bytecodes + class-table init + DATA loaders). Worth weighing
against deferring some of these until a v1+ Smalltalk-source
compiler exists (see the dialect roadmap issue) so future demos
become `.st` files instead of bootloaders.
Web demo coverage
`web-sw-cor24-smalltalk`'s
`build.rs` auto-picks up `examples/dN_*.bas` + `src/image_dN.bas`,
so each demo lands in CLI and browser together.
Tracking issue for additional demos that fit the current Tinytalk v0
dialect (24-bit tagged SmallInteger refs, 14 bytecodes, hand-assembled
drivers via POKE / DATA-loader image init). All work without new
bytecodes, strings, blocks, or collections — result is one integer in
stdout, matching D1..D7.
Backlog
SmallInteger>>fib. Two recursive calls perframe; validates frame stack on a different recursion shape than
D6
fact.7 fib → 13.Integer>>gcd:Euclidean. Two-arg recursion.12 gcd: 18 → 6.Integer>>raisedTo:, tail-recursive accumulatorwith early exit at
e=0.2 raisedTo: 7 → 128.SmallInteger>>isPrime, trial division. Returns1 or 0 (or reuse the D3 True/False objects).
ackermann: 2 with: 3 → 9.print the count: `5 hanoi → 31`).
walks the chain. First demo with a heap of cooperating user
objects beyond Counter.
polymorphic `next` method.
override `<`, inherit `<=` / `>` / `between:and:` from
super. Exercises the D7 inheritance walk across multiple
selectors.
Driver-authoring cost
Each demo costs ~30-60 lines of fragile hand-assembly in BASIC
(POKE bytecodes + class-table init + DATA loaders). Worth weighing
against deferring some of these until a v1+ Smalltalk-source
compiler exists (see the dialect roadmap issue) so future demos
become `.st` files instead of bootloaders.
Web demo coverage
`web-sw-cor24-smalltalk`'s
`build.rs` auto-picks up `examples/dN_*.bas` + `src/image_dN.bas`,
so each demo lands in CLI and browser together.