The entry wired_writer
The writer of a pair of modules that the start list wires together. The design: Record outputs and record inputs of a module: typed streams of records between processes: The wiring rows of a start list in the repository. The default start list starts wired_reader, then this module, and its wiring row joins numbers to wired_reader.numbers at this start: the root service gives the ring before the first instruction, so the reader reads every record from the serial 0.
It writes NUMBERS_WRITTEN numbers, each with its square, ends numbers with a clean end record, and stops itself with Done. With no reader, as from a console that starts it with no list, each write gives No_Reader and the records go to nothing, with their count.
Start: by the default start policy, or by start("wired_writer"). What a reader sees: no window; one line "wired_writer: wrote 16 numbers to 1 reader, and ended numbers".
wired_writer module with an entry
- Hash
897d8c503348c5b572900f9359cf8462dcd39f54ce0d87a4caf8a2704a78bd18- Size
49152 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The writer of a pair of modules that the start list wires together
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/demonstrations/wired_writer |
| Boot image | yes: in the boot image, 49152 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() |
entry
entry()
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/demonstrations/wired_writer/main.odin:35
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | none | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| No MODULE_BUDGET in its source: it asks for the least budget. |
The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module; the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).
numbers global variable of the package wired_reader
numbers: system.Record_Input(Wired_Number)
The numbers of wired_writer.
