book: Guide, coming from Go and Python (slice of #588) #608
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#588 book: Guide, coming from another language
torbscript/language
#607 book: Guide chapter first project (slice of #587)
torbscript/language
Reference
torbscript/language#608
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 #588 (Guide, coming from another language), which is a slice of the epic #582. First of three: this one starts the folder and writes the Go and Python pages; Rust with TypeScript and JavaScript, then Kotlin and Swift, follow just in time. Starts after #607 is merged (both change
book/guide/index.mdand regenerate the same skills). 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
book/guide/coming-from/index.md(kindindex, the folder's overview, generated list viatorb docs index book) and the two pagesbook/guide/coming-from/go.mdandbook/guide/coming-from/python.md. A reader who knows Go or Python gets, on one page, the three or four things they trip over first, each with a TorbScript example and its output. Read likebook/guide/handling-errors.md(the merged vertical slice): prose first, headings name ideas.Replaces in
docs/docs/guide/coming-from/go.mddocs/guide/coming-from/python.mdAbout 140 lines of old material. The old
docs/guide/coming-from/index.mdstays until the last slice; regenerate its list (torb docs index docs) so it no longer links the two deleted pages.Acceptance criteria
book/guide/coming-from/index.md(kindindex,status: stable, a first paragraph of two to four sentences saying who the chapter is for) andgo.md,python.md(kindpage,status: stable,title,summary,order,keywords) exist, written asbook/CONCEPT.md, "How a page is written", says: first paragraph says 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 sentenceniland zero values,(value, error)againstResultand?, interfaces by accident againstwith,goand channels against tasks; Python: values against references and the copy on assignment, noNoneand no exceptions, indentation-free blocks andconst/var, types that are checked before the program runs), each with a TorbScript example and its outputtrb runandtrb errorblock is followed by itsoutputblock with the real output (atrb errorblock shows whattorb checkprints, fromerror:on); no fragments, no// printscomments; the code of the other language is a plaingoorpythonblock that is not runtorb docs check book,torb docs index --check bookandtorb docs site book --checkpass,book/guide/index.mdlists the new folder (generated block), andtools/gates.shpasses in CI; the site builds the folder (the sidebar shows the chapter and its pages); iftorb docs sitedoes not yet handle a nested guide folder, the PR fixes the generator in a separate commitskills/torbscriptis generated bytorb docs skill docs skillsand links them; 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 (docs/guide/index.md,docs/guide/tour.md, the old coming-from index), and the skills are regenerated sodocs skill --checkstays greenNotes for the implementer
book/CONCEPT.md,book/guide/handling-errors.mdand the two old pages first; run the examples withtorbbefore pasting their output. The old pages use// printscomments and a table; rewrite as prose andoutputblocks, do not copy the table. Drop "not built yet" statements (history words): say only what is true now, and leave out what the language does not have yet.docs(book): guide coming from Go and Pythonand, if needed,docs: retire the coming-from pages the book replaces.[loop:torbscript] claim implement by session:loop-torbscript-20261030 until 2026-10-30T05:10Z
[loop:torbscript] checkpoint: go.md, python.md and coming-from/index.md written and every example run with a nightly torb; old docs pages deleted, indexes and skills regenerated. In flight: commit, push branch loop/608-coming-from-go-python, open PR. Next: forge CI.
[loop:torbscript] release implement: the worker timed out after opening PR #635 (head
e7e54344, CI pending, mergeable). The item is in review; CI and Argus decide.[loop:torbscript] wait until 2026-10-30T09:00Z: PR #635 (head
e7e54344) is in review. Forge statusesgatesandtier Ashow failure from run 2344, which the runs API lists as cancelled, so they look stale from CI congestion, not a real red; the job log is not readable (404). Needs a CI re-run or a fresh push before Argus can judge. No worker now.