book: Guide chapter first project (slice of #587) #607
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#587 book: Guide chapters (first project, modelling data, collections, files and formats, testing, native programs, design choices)
torbscript/language
#588 book: Guide, coming from another language
torbscript/language
#608 book: Guide, coming from Go and Python (slice of #588)
torbscript/language
Reference
torbscript/language#607
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Slice of #587 (Guide chapters), which is a slice of the epic #582. Starts after nothing; #585 is merged. Governing note:
book/CONCEPT.md("How a page is written", "What CI checks"). Touches the seed: no (documentation only; no syntax change, no native, no driver flag, no std name looked up by the compiler).Goal
Write the Guide chapter
book/guide/first-project.md: installing the toolchain, running a file, making a project withtorb new, growing it into a small program with a test, turning it into a workspace of several members, and adding a dependency. Read likebook/guide/handling-errors.md(the merged vertical slice from #585): one example that grows across the sections.Replaces in
docs/docs/guide/installing-and-running.mddocs/guide/a-small-program.mddocs/how-to/set-up-a-workspace.mddocs/how-to/add-a-dependency.mdAbout 450 lines of old material, one chapter; no further narrowing needed.
Acceptance criteria
book/guide/first-project.mdexists with kindpage,status: stable, front matter in the shape of the other guide chapters (title,summary,order,keywords), and is written asbook/CONCEPT.md, "How a page is written", says: the first paragraph says in two to four sentences what the page covers, headings name ideas, prose first, no history words, no internal references (no issue numbers, no links intodocs/design,docs/contributing,docs/internals,CONCEPT.md), no Related/Next/See also sections, lists of at most seven items, every section starts with a sentencetrb runandtrb errorblock is followed by itsoutputblock with the real output (atrb errorblock shows whattorb checkprints, fromerror:on); aproject.trbis shown as a baretrbblock; no fragments, no// printscommentstorb new, the layout of a project (project.trb,src/, tests),torb test, a workspace with members and a sibling dependency by name, and adding a dependency (declare inproject.trb, runtime vs development dependency,project.lock.trb, what the imports of a dependency say it can reach)torb runandtorb buildon the same code, one binary that also tests and formats) and "Every case is handled" or "No null and no exceptions" in the example program that growsbook/guide/index.mdlists the new chapter (generated block viatorb docs index book);torb docs check book,torb docs index --check bookandtorb docs site book --checkpass, andtools/gates.shpasses in CIskills/torbscript-projectsandskills/torbscriptare generated bytorb docs skill docs skillsand linkset-up-a-workspace.md,add-a-dependency.mdandinstalling-and-running.md; for every old page a skill still needs, it stays indocs/unpublished and the PR description names it and why; the others are deleted together with every link to them, and the skills are regenerated sodocs skill --checkstays greentour/,start/,reference/,std/) is changed except the links that must follow from the deletion; the other six chapters of #587 are not startedNotes for the implementer
book/CONCEPT.md,book/guide/handling-errors.mdandbook/guide/your-own-constructs.mdfirst; run the examples withtorbbefore pasting their output.docs(book): guide chapter first projectand, if needed,docs: retire the pages the chapter replaces.[loop:torbscript] claim implement by session:loop-torbscript-20261029-0858 until 2026-10-30T02:50Z
orion referenced this issue2026-10-29 20:51:55 +00:00
[loop:torbscript] release implement: PR #619 opened, head
c066bd706c