From 0a13f5210756e5a42ebf983943d87a1922cda0e3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 20:41:07 -0300 Subject: design: what a real program asked of the language The SQLite scene needed blocks the catalogue had no name for; each is placed. A dump is read by its type or by fields a scene gives it, rows without one folding into a row that counts them; bytes that are no field are loose; what a stop did not read is unread and what the kernel took is given. Addresses and line numbers are as wide as the program needs. The backtrace can be a lens's drawing, and a lens can change in place. A continue is a verb of its own: registers strike in a wave, far windows fade through and arrive without marks, frames two stops share slide. The kernel's answer is filled before it travels. The calls tree has sizes past ten leaves and folds past thirteen. Mocks 13 and 14 are two stops of the SQLite recording. Co-Authored-By: Claude Fable 5.2 --- design/mock/13-sqlite-row.svg | 434 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 434 insertions(+) create mode 100644 design/mock/13-sqlite-row.svg (limited to 'design/mock/13-sqlite-row.svg') diff --git a/design/mock/13-sqlite-row.svg b/design/mock/13-sqlite-row.svg new file mode 100644 index 0000000..7161b31 --- /dev/null +++ b/design/mock/13-sqlite-row.svg @@ -0,0 +1,434 @@ + + + + + + +sqlite3.c +lines 80890 to 80899 of 262899 +80890 +SQLITE_PRIVATE +int +sqlite3BtreeInsert +( +80891 +BtCursor +* +pCur +, +/* Insert data into the table +… +80892 +const +BtreePayload +* +pX +, +/* Content of the row to be in +… +80893 +int +flags +, +/* True if this is likely an a +… +80894 +int +seekResult +/* Result of prior IndexMoveto +… + + +80895 +) +{ +80896 +int +rc +; +80897 +int +loc += +seekResult +; +/* -1: before desired location +… +80898 +int +szNew += +0 +; +80899 +int +idx +; + + + +disassembly +sqlite3BtreeInsert +448d +80 +80895 +push +rbp +448d +81 +mov +rbp, rsp + + + +448d +84 +push +r15 +448d +86 +push +r14 +448d +88 +push +r13 +448d +8a +push +r12 +448d +8c +push +rbx +448d +8d +sub +rsp, 0xa8 +448d +94 +mov +r14d, ecx + + + +registers +stack +heap +code +data +rwx + +read-only +rax + +5226d0 + + +0 +rbx +1 + +rcx +0 + +rdx +8 + +rsi + +7fffffffea60 + + +0 +rdi + +521978 + + +0x101 +257 +rbp + +7fffffffe980 + + +7fffffffeb90 + + +7fffffffec60 + + +7fffffffece0 + + + + + +rsp + +7fffffffe980 + + +7fffffffeb90 + + +7fffffffec60 + + +7fffffffece0 + + + + + +r8 +0x38 +56 + +r9 +0 + +r10 +7 + +r11 +0xffffffff + +r12 +0 +r13 + +5222d0 + + +0x39fb80 +r14 + +5218f8 + + +0x40100010000 +r15 +0 + + + +rip +448d84 +sqlite3BtreeInsert+4 +cf + +pf +af + +zf +sf + +IF +df +of + + + +stack +six words from rsp · the frames they belong to +rbp rsp + +7fffffffe9 +80 + + +7fffffffeb90 + + +7fffffffec60 + + + + + +7fffffffe9 +88 + + +43e029 +sqlite3VdbeExec+18905 +7fffffffe9 +90 + + +7ffff7c0ed60 + + +0xd001200000f05 +7fffffffe9 +98 + + +7fffffffea18 + + +517378 + + +513010 + + + + + +7fffffffe9 +a0 + + +521ed0 + + +0 +7fffffffe9 +a8 + + +7fffffffea18 + + +517378 + + +513010 + + + + + + + + +sqlite3BtreeInsert + + +sqlite3VdbeExec + + + +backtrace +newest on top + + +#0 +sqlite3BtreeInsert+4 +sqlite3.c:80895 +#1 +sqlite3VdbeExec+18905 +#2 +sqlite3_step+910 +#3 +sqlite3_exec+394 +#4 +main+56 +#5 +libc.so.6+27781 +#6 +__libc_start_main+137 +#7 +_start+37 + + + +its bytes +pX, the row: a BtreePayload, at rsi + + + +7fffffffea +60 + +00 +00 +00 +00 +00 +00 +00 +00 +NULL + + +01 +00 +00 +00 +00 +00 +00 +00 +1 + + + +7fffffffea +70 + +88 +4d +52 +00 +00 +00 +00 +00 + + +524d88 + +00 +00 +00 +00 +00 +00 +00 +00 +NULL + + + +7fffffffea +80 + +00 +00 +0 +00 +00 + + +07 +00 +00 +00 +7 + +00 +00 +00 +00 +0 +01 +00 +00 +00 + + +moment 9 of 58 +sqlite3VdbeExec, the bytecode's loop, calls the B-tree: rdi is +the table's cursor, rsi the row: rowid 1, a record of 7 bytes. + + + + + + + + -- cgit v1.3