The eventual language documentation should include a short by-example path in the spirit of Rust by Example, Go by Example, tldr, bropages, and the koan style.
The core observation is simple: people often want one small example of a thing they can do, not a long chapter before they can act. A future IR by Example and Idriç / Edric by Example should therefore start with roughly a dozen tiny runnable examples and grow only as the implementations grow.
The companion koan-by-example branch contains a research note comparing Rust by Example and Go by Example, noting similar Python resources, and sketching a first twelve-example ladder. It also proposes pairing each working example with an optional koan: a blank, wrong value, or failing assertion for the learner to repair.
Research branch: https://github.com/isomorphisms/ir/tree/koan-by-example
Important constraint: examples must follow features the implementation can actually run. Do not copy Rust or Go's surface just because their tutorials cover it.
The first pass should emphasize concrete tasks such as hello world, values, bindings/equality, control flow, functions, data types, collections, conversion, errors, files/CLI, structured data or HTTP, and one characteristic runtime/concurrency example where supported.
Companion issues:
The eventual language documentation should include a short by-example path in the spirit of Rust by Example, Go by Example,
tldr, bropages, and the koan style.The core observation is simple: people often want one small example of a thing they can do, not a long chapter before they can act. A future IR by Example and Idriç / Edric by Example should therefore start with roughly a dozen tiny runnable examples and grow only as the implementations grow.
The companion
koan-by-examplebranch contains a research note comparing Rust by Example and Go by Example, noting similar Python resources, and sketching a first twelve-example ladder. It also proposes pairing each working example with an optional koan: a blank, wrong value, or failing assertion for the learner to repair.Research branch: https://github.com/isomorphisms/ir/tree/koan-by-example
Important constraint: examples must follow features the implementation can actually run. Do not copy Rust or Go's surface just because their tutorials cover it.
The first pass should emphasize concrete tasks such as hello world, values, bindings/equality, control flow, functions, data types, collections, conversion, errors, files/CLI, structured data or HTTP, and one characteristic runtime/concurrency example where supported.
Companion issues: