68 lines
15 KiB
Markdown
68 lines
15 KiB
Markdown
# V2 illustration specifications
|
||
|
||
Owner: `/root/illustrator`; Beads: `webprogcode-v2.5`. V1 acceptance is superseded. These six original vector diagrams explain distinct technical mechanisms. No stock media, copied artwork, external fonts, scripts, animations, or embedded remote resources are used. SVG primitives and text are editable source; authoring uses no raster generation.
|
||
|
||
## Visual direction and rendering
|
||
|
||
Paper `#fbf8f1`, ink `#242824`, burnt orange `#b64d26`, hairline `#d8d0c0`. Green `#327057` is reserved for syntax/identifiers. Diagrams use content-specific forms: compiler execution lanes, folded certificate sheets, a product silhouette and relation graph, a memory topology, fiber lifelines, and a diagnostic workflow. Not generic covers. All have `viewBox`, accessible `title`/`desc`; text is real vector text, not a flattened screenshot.
|
||
|
||
Native width: 640. Test render width: 360. At a 340 px mobile article width, the smallest 21–22 px label becomes 11–12 px; key explanations are 24–28 px. Display at the full article width, never in a thumbnail grid. Images should have `width="640"`, their actual height, `loading="lazy"`, `decoding="async"`, and a prose alt. Use one short subject caption; no creation date, AI badge, restoration label or provenance boilerplate in the ordinary figure caption.
|
||
|
||
## Sources read and semantic boundaries
|
||
|
||
Sources were checked as primary technical references. Read access metadata belongs here, not in image captions.
|
||
|
||
1. **CTFE** — [D language reference, CTFE](https://dlang.org/spec/function.html#interpretation) and [Stefan Koch: The New CTFE Engine](https://blog.dlang.org/2017/04/10/the-new-ctfe-engine/), compared with the archived translated article. CTFE evaluates a function when a compile-time value is required. No assertion that declaring a function `pure` automatically forces every call into CTFE. Runtime branch uses user input, avoiding confusion with optimiser constant folding. The historical NewCTFE bytecode work is not presented as the current compiler implementation.
|
||
2. **TLS** — [curl certificate verification](https://curl.se/docs/sslcerts.html). A leaf certificate and intermediate are normally sent by the server; a trust anchor must already be trusted by the client. Signatures, server name and time are separate validation requirements. Simplification: one intermediate, no revocation/policy detail; more intermediates are possible. Root CA is not trusted merely because a server sends it. Do not caption it as “server has no SSL certificate”.
|
||
3. **Bitrix** — [official product/offer guide](https://docs.1c-bitrix.ru/pages/modules/catalog/products-and-offers.html) and [CCatalogSKU::GetInfoByOfferIBlock](https://mobile.dev.1c-bitrix.ru/api_help/catalog/classes/catalogsku/getinfobyofferiblock.php), compared with actual archived code. The offer stores a property whose value is the parent product element ID. `SKU_PROPERTY_ID` is the ID of that property, not the parent ID or offer ID. Prices and catalog parameters for a variant use its offer ID. The figure separates `catalog: ID=offerId` from price `PRODUCT_ID=offerId`; the price row’s own ID is not implied to equal offerId. All IDs and the T-shirt are clearly illustrative examples, not restored production records.
|
||
4. **D GC** — [D automatic memory management](https://dlang.org/spec/garbage.html) and the recovered [author’s original GC article](https://olshansky.me/posts/2017-06-15-inside-d-gc/), compared with the full archived translation of Dmitry Olshansky's 2017 internals article. A and B are found from roots; C has no discovered path and can be reclaimed. It is an intentionally simplified mark–sweep mental model, not a diagram of a current version's exact allocator data structures. Finalisers and conservative false pointers can affect reclamation. Returning a block to the allocator does not necessarily release pages to the OS. This diagram explains the roots/mark/sweep section; it must not be labelled as an exact reproduction of the two missing 2017 allocator-pool figures.
|
||
5. **vibe.d** — [official features, fiber model and AIO](https://vibed.org/features). A task waiting for I/O yields its thread; another fiber can run; the first resumes with its stack when the event becomes ready. Concurrency on a thread is not CPU parallelism. A long non-yielding CPU computation delays the other fibers. The seven unavailable feature pictograms had heading-marker roles; this substantive I/O diagram replaces their explanatory gap without pretending to recover those historical files.
|
||
6. **Windows task diagnosis** — [Microsoft task triggers](https://learn.microsoft.com/en-us/windows/win32/taskschd/task-triggers), [query/export XML](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-query), [disable task](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-change), [Windows threat protection](https://support.microsoft.com/en-us/windows/security/threat-malware-protection/virus-and-threat-protection-in-the-windows-security-app). A task connects trigger criteria to an action. Diagnose executable path and arguments before changing it; preserve definition, disable only a verified suspicious task, and scan with protection software. Stopping pop-ups does not prove the device is clean. This is a schematic workflow, not a Windows UI screenshot.
|
||
|
||
## Asset / placement contract
|
||
|
||
| Asset | Article | Placement | Alt and short caption |
|
||
|---|---|---|---|
|
||
| `/visuals/v2/ctfe-execution.svg` (640×880) | Новый движок CTFE | After corrected explanation of when CTFE is required, before historical internals | Alt: «Одна функция square: компилятор вычисляет enum, а вызов с пользовательским вводом выполняется после запуска». Caption: «Одна функция, два контекста выполнения». |
|
||
| `/visuals/v2/tls-trust-chain.svg` (640×1040) | Ошибка PHP SSL certificate | After issuer/trust-store diagnosis, before configuration snippet | Alt: «Сертификат сайта и промежуточный CA проверяются до локально доверенного корневого CA; дополнительно проверяются имя и срок». Caption: «Цепочка доверия заканчивается в хранилище клиента». |
|
||
| `/visuals/v2/bitrix-product-offer.svg` (640×1090) | Создание торгового предложения | Before full create-offer code | Alt: «Родительский товар 120 связан SKU-свойством с предложениями 121 и 122; цена каждого варианта привязана к его offerId». Caption: «Связь карточки товара, вариантов и цены». |
|
||
| `/visuals/v2/d-gc-reachability.svg` (640×1040) | Под капотом мусорщика D | At start of collection/mark–sweep explanation | Alt: «Корни ведут к A и B в пуле; C не найден из корней и его блок может вернуться в свободные после обработки сборщиком». Caption: «Достижимость объектов в упрощённой модели mark–sweep». |
|
||
| `/visuals/v2/vibed-fiber-io.svg` (640×1100) | Особенности vibe.d | Immediately after fiber-based pseudo-blocking model | Alt: «Fiber A ждёт read и уступает поток задаче B; цикл событий возобновляет A после готовности I/O». Caption: «Ожидание I/O уступает поток другой задаче». |
|
||
| `/visuals/v2/windows-browser-task.svg` (640×1170) | Самопроизвольный запуск браузера | Before diagnostic steps | Alt: «Триггер вызывает действие задания; проверяем путь и аргументы, сохраняем сведения, отключаем подозрительное задание и сканируем устройство». Caption: «Проверка задания, которое запускает браузер». |
|
||
|
||
## Actual inspection and remaining gate
|
||
|
||
Opened V1 `verification/desktop-home.png` and `verification/mobile-article.png`; inspected actual source bodies rather than page titles alone. Rendered all six SVGs using the project's installed sharp, and opened their 360 px PNG previews with `view_image`. The first Bitrix draft had lines crossing explanatory labels; fixed by moving relation metadata below the catalog row and using explicit `1`/`*` cardinality. Reopened the corrected pixels. No horizontal crop or overlapping labels remain in the asset-only mobile previews.
|
||
|
||
Previews and hashes: `docs/rebuild-v2/evidence/illustrations/asset-manifest.json` and `mobile-contact-sheet.png`. These are asset evidence, not screenshots of article placement or candidate acceptance. Final `webprogcode-v2.5` gate remains BLOCKED until the same illustrator inspects all six actual article placements on mobile/desktop in the final candidate, verifies alt/caption and successful loads, and records its build/commit identity. No claim of exact recovery of unavailable historical screenshots. The author’s GC source was found at a moved URL and contains both original pool figures; the main executor has been notified to recover them directly instead of treating the new mark–sweep graphic as their replacement.
|
||
|
||
|
||
## Additional placement-driven assets
|
||
|
||
The implementer identified two concrete needs after the first six assets: the tall CTFE diagram would be unreadable in a homepage card, and reachability cannot explain the separate allocator-pool section. Two additional original diagrams address those needs, without creating alternate recoloured covers.
|
||
|
||
- `/visuals/v2/ctfe-overview.svg` — 720×260 landscape. For the homepage featured CTFE card. A call, physical compiler-chip metaphor, and enum result; 27–35 px main labels remain readable at 360 px. Alt: «Компилятор вычисляет square(3) для enum и получает n = 9 ещё до запуска программы». Caption optional; card title already supplies article context. It is a synopsis, while the tall CTFE article diagram preserves the compile-time/runtime distinction.
|
||
- `/visuals/v2/d-gc-pools.svg` — 640×1250. For the GC article directly after the two historical small/large pool descriptions. It explicitly describes the 2017 design: small allocations up to 2048 bytes round to size classes; page metadata identifies the class. Example 40 bytes uses a 64-byte slot. The slot strip is labelled as a fragment, not an entire page. Large allocation 9000 bytes spans three 4-KiB pages; per-page metadata points to the starting page. Hatch denotes free memory. Alt: «В малом пуле запрос 40 байт занимает блок класса 64; в большом запрос 9000 байт занимает три страницы по 4 КиБ, связанные с начальной страницей». Caption: «Малые и большие пулы в реализации, описанной в 2017 году».
|
||
|
||
The pool facts were checked against the actual author’s primary text at <https://olshansky.me/posts/2017-06-15-inside-d-gc/>. The publisher is attempting lawful recovery of the two original images. If recovered and legible, prefer the original for historical attribution, retaining this new drawing only if it adds explanatory value. This schematic is newly authored, not a claim that original missing bytes were recovered.
|
||
|
||
Both additional SVGs were rendered to 360 px PNG and actually opened with view_image. Evidence: `ctfe-overview-mobile.png`, `d-gc-pools-mobile.png` in the illustrations evidence directory. Actual final candidate placement review is still pending.
|
||
|
||
## FileInput companion diagram
|
||
|
||
`/visuals/v2/bitrix-file-input.svg` — 640×1100. A new workflow drawing, paired with the actual saved preview screenshot `/assets/archive/b20e82e08bfed8568a90.jpg`, which was opened and inspected. It does not impersonate the unavailable full-editor screenshot `bitrix-foto-editor-2.jpg`.
|
||
|
||
Read primary [FileInput constructor parameters](https://dev.1c-bitrix.ru/api_d7/bitrix/main/ui/fileinput/construct.php), [show](https://mobile.dev.1c-bitrix.ru/api_d7/bitrix/main/ui/fileinput/show.php?print=Y), and [prepareFile](https://dev.1c-bitrix.ru/api_d7/bitrix/main/ui/fileinput/preparefile.php). Public PHP options are `edit => true`, `upload => true`, `allowUpload => 'I'`, `maxCount => 1`, and `name => 'picture'`. `SHOW_EDIT` is not presented as a public constructor option. The image shows conceptual image-edit operations with crop/rotation symbols, not the exact native toolbar; available tools are explicitly version-dependent. `show($id)` outputs the control and does not persist an edited file. Form handling, permission checks and persistence are separate server responsibilities; no backend parameter or automatically successful save is invented.
|
||
|
||
Placement: after the FileInput PHP example and the real preview screenshot, before parameter details or server-side handling discussion. Alt: «Схема FileInput: выбрать изображение, разрешить редактирование через edit, передать значение поля picture и отдельно проверить и сохранить файл в серверном обработчике». Caption: «Выбор и редактирование изображения в FileInput». Ordinary page caption must not say this is a recovered screenshot, AI illustration, or a process artifact.
|
||
|
||
360 px PNG preview `docs/rebuild-v2/evidence/illustrations/bitrix-file-input-mobile.png` was actually opened with view_image. At this width, the options, crop/rotation metaphors, field identity and server boundary are legible without overlaps. Final acceptance still requires actual placement pixels in the candidate article.
|
||
|
||
## Tilix sessions and panes schematic
|
||
|
||
`/visuals/v2/tilix-sessions.svg` — 720×480. New explanatory companion for the Tilix interview, covering the unavailable sidebar screenshot's semantic purpose. Based on Gerald Nunn's answers about tiling, session thumbnails/sidebar, and CSD in the [primary 2017 interview](https://blog.dlang.org/archive/2017/08/11/on-tilix-and-d-an-interview-with-gerald-nunn/) and its archived Russian translation. It shows two sessions with one active session containing three terminal panes: one left, two stacked right. Application-drawn titlebar controls are represented abstractly, not claimed to match exact native icons, positions, labels or a released theme. No fabricated terminal output, measured behaviour, project names or performance numbers.
|
||
|
||
Place next to the explanation of sessions/sidebar; it is a schematic, not an original UI screenshot. Alt: «В боковой панели две сессии; активная сессия содержит три панели терминала — одну слева и две справа; верхнюю CSD-панель рисует приложение». Required caption: «Сессии и панели: схема организации терминалов».
|
||
|
||
Rendered at 360 px, then actually opened with view_image: `docs/rebuild-v2/evidence/illustrations/tilix-sessions-mobile.png`. Panel boundaries and labels remain distinct. Final article placement review is still pending with the other integrated figures. The total asset inventory includes a separate landscape homepage CTFE synopsis, so file count need not equal article-placement count.
|