modus
Menu
On this page

The entry hall_of_fame

The source src/modules/demonstrations/hall_of_fame built with the setting DRAWING_THROUGH_MODULE=true. The text after this paragraph is the comment of that source.

The hall of fame: the people whose work inspired modus, each on a card. The design: The hall of fame in the repository.

What it is for. It names the work that this system learned from: the languages, the tools, the engines and the ways of programming that shaped it. A card has the name of a person and one line on what they made. A card with a portrait has the credit of the picture under it: its author and its license. A person with no picture under a free license has a card with no picture.

What a reader sees. Start it from the start menu, or with start("hall_of_fame") in the console. Three columns of cards, in whole rows. The arrows, Home and End move the chosen card; a press of the pointer on a card chooses it. The view moves by whole rows to keep the chosen card in it, and its scroll bar moves it too. The log gets hall_of_fame: ok, the first frame drew <count> of the 16 people in <time> us after the first frame, and hall_of_fame: chose <name> at each choice.

Its grants: none. A window is all that it needs.

hall_of_fame module with an entry

Hash
e7665049de0fa359a7d209e3a761d314f09dd0de16d05ddc51a4342cc573894c
Size
403967 bytes
Exports
0
Imports
1
Imported by
0
License
MIT; All rights reserved by its producers; used as a credited frame (Portrait of Jonathan Blow in the module hall_of_fame); CC-BY-3.0 (Portrait of Andreas Kling in the module hall_of_fame); CC-BY-4.0 (Portrait of Michael Paulson (ThePrimeagen) in the module hall_of_fame); CC-BY-SA-4.0 (Portrait of Linus Torvalds in the module hall_of_fame); CC0-1.0 (Portrait of John Carmack in the module hall_of_fame)

The hall of fame: the people whose work inspired modus, each on a card

FactValue
KindModules with an entry
Sourcesrc/modules/demonstrations/hall_of_fame
Boot imageyes: in the boot image, 403967 bytes in this build
Build settings
  • DRAWING_THROUGH_MODULE=true
Imports
Imported bynone

Neighbours

What it imports, at its left, and what imports it, at its right: the part of the module graph that touches it.

hall_of_fame drawing

Exports

ExportWhat it does
entry()opens the window, prepares the portraits, then draws a frame at each event of the window until the process is stopped

entry

entry()

entry opens the window, prepares the portraits, then draws a frame at each event of the window until the process is stopped. With no window, it stops with Failed.

Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/demonstrations/hall_of_fame/main.odin:375

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

WhatValueAs the root service says
GrantsnoneThe cards of the people whose work inspired the system.
Other terms of its start grant setnone
Budget that it asks for
  • working memory pages 688
  • pages of its threads 72
  • pages of the pictures of its window 5438
  • pages of the module and its imports from the files of the build
  • processes the least
  • threads the least
The least budget of 2048 pages, in which it ran before it stated its window, less that window at the scale 1 (1360 pages): its module, its stack, its tables and its glyph memory. The tool counts the window at the largest scale. See: Module contract: The budget that a module asks for

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 (its line); 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).