raz / test / run

history · 88 commits · the directory

e009eff1Luis <42945842+ldiaz94@users.noreply.github.com>compiler.md: the recipe for an interrupt's entry, and test/run/Interrupt, which runs it on Linux
a072a400Luis <42945842+ldiaz94@users.noreply.github.com>Assembler: a procedure or a module variable stands for its address in call p, jmp p and lea r, [v]
b95e2655Luis <42945842+ldiaz94@users.noreply.github.com>Limits: statements, expressions and types nested stop at 256, the stack of values says its limit and ends the compile, a ninth type argument names its limit; tests and compiler.md
013c05d6Luis <42945842+ldiaz94@users.noreply.github.com>Assembler: the rule for when an instruction joins; paddd, punpcklqdq, punpckhqdq, pshufb, palignr and the SHA-NI three
94283193Luis <42945842+ldiaz94@users.noreply.github.com>Assembler: push of a constant, cld and std
264716cbLuis <42945842+ldiaz94@users.noreply.github.com>The tests, conform/, examples/ and the docs' examples held to report 2026-10.37 whole
e0d008cdLuis <42945842+ldiaz94@users.noreply.github.com>lib/ held to report 2026-10.37 whole: import SYSTEM, []const, atomics on a variable
ef0484e1Luis <42945842+ldiaz94@users.noreply.github.com>Heap's debugging mode: RAZ_HEAP=debug or Heap.debug(true)
823ebfd6Luis <42945842+ldiaz94@users.noreply.github.com>Library: Task(T), a thread given a value with no cast; Guarded(T), a value with its lock
88e6b860Luis <42945842+ldiaz94@users.noreply.github.com>Inlining a procedure that only returns: a call of one whose body is return e, with no locals and a single value its result, is made in place (Parse.inlined): the arguments as for a call into temporaries, each once and in order, then e read again in its own module's scope with its checks; imported and generic procedures too, a recursion ending in a call; a failed check in e told at e's line in its file (Gen's check works out the place as it is made); KeptCheck and KeptNil call through a procedure value, the tutorial's Fail through a procedure with no result; word count 887 ms to 638, Grep 268 to 199, the compiler 3% fewer instructions; conform/run/Inline, test/run/InlineCheck
16eaf7cbLuis <42945842+ldiaz94@users.noreply.github.com>A parameter kept in rdi or rsi that a copy wants takes callee-saved registers no variable has, if it is used enough for one, not memory: unkeep, on lost (ChaCha's block that starts out := st 1,132 ms to 684)
87e3c487Luis <42945842+ldiaz94@users.noreply.github.com>An element of a var or const array parameter, of 1, 2, 4 or 8 bytes, is the operand [pointer + index * size], as one in the frame is: indexArray takes bPtr's register as the base (a sum over const s: [N]INT 145 ms to 82, a slice's speed; ChaCha's quarter on var x: [16]U32 560 ms to 283)
e8ec426bLuis <42945842+ldiaz94@users.noreply.github.com>Math.divMod: 128 bits divided by 64, by one div instruction; hi >= d stops with a message
947d70f3Luis <42945842+ldiaz94@users.noreply.github.com>Arena.mark and release; Vec.insert and remove: freeing back to a mark, and opening and closing a gap in the middle of a Vec
a700688dLuis <42945842+ldiaz94@users.noreply.github.com>Fmt: short is a procedure writing into a ShortMost array, not an Arg, so programs that don't call it don't carry its tables (hello world 49,200 to 40,504 bytes)
22233765Luis <42945842+ldiaz94@users.noreply.github.com>Sys: mapRead and protect; open, openMode, openRead, create and openDir close on exec
7924cbb7Luis <42945842+ldiaz94@users.noreply.github.com>Sys: ignored, findEnv and processors; Rt: exitStatus
59f8ade1Luis <42945842+ldiaz94@users.noreply.github.com>Fmt: short, a real in the fewest digits that read back
302c3acdLuis <42945842+ldiaz94@users.noreply.github.com>Heap: sure, the heap that stops the program when memory runs out
2e254a62Luis <42945842+ldiaz94@users.noreply.github.com>X64: a jump to the end of a procedure keeps the return's jmp it lands after
e73bb952Luis <42945842+ldiaz94@users.noreply.github.com>Gen: a loop condition taken back takes back its jumps to the exit
065335aaLuis <42945842+ldiaz94@users.noreply.github.com>Parse: a named record or array constant as an element of a constant
ac3c464aLuis <42945842+ldiaz94@users.noreply.github.com>X64: jmp to a register
c9a30772Luis <42945842+ldiaz94@users.noreply.github.com>Gen: a var or const parameter on the stack, in a register, is its address
280d4d6fLuis <42945842+ldiaz94@users.noreply.github.com>Check: a test's checks, said on standard error, its status at exit
c57f87eeLuis <42945842+ldiaz94@users.noreply.github.com>The assembler knows a kernel's instructions
0d0c6bb1Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: PTR(s) (report 2026-10.34, section 6.8)
0ad25c63Luis <42945842+ldiaz94@users.noreply.github.com>Lock and Thread's Mutex are taken and given by var (report 2026-10.33)
0f4a4cddLuis <42945842+ldiaz94@users.noreply.github.com>Vec, Map and List take what they work on by var, and const to read it
821f83e6Luis <42945842+ldiaz94@users.noreply.github.com>Arena takes the arena by var (report 2026-10.33)
3fee2db6Luis <42945842+ldiaz94@users.noreply.github.com>Buf, Files, Fmt and Str take the Buf by var (report 2026-10.33)
716e2b8eLuis <42945842+ldiaz94@users.noreply.github.com>Thread.signal: a signal to one thread
6e2a4e15Luis <42945842+ldiaz94@users.noreply.github.com>Out.lines: the buffer written at each line feed, through a pipe too
0bc2d2a8Luis <42945842+ldiaz94@users.noreply.github.com>Buf.cut: only the first n bytes kept
c2092414Luis <42945842+ldiaz94@users.noreply.github.com>Vec.pop: the last element, taken off
35fa926dLuis <42945842+ldiaz94@users.noreply.github.com>Sys: execve, the kernel's, for a shell
870ce969Luis <42945842+ldiaz94@users.noreply.github.com>Sys: setEnv, for this program and those it starts
bc0ed42cLuis <42945842+ldiaz94@users.noreply.github.com>Fmt: eprint, to standard error once Out is flushed
d3185b32Luis <42945842+ldiaz94@users.noreply.github.com>test/run/VecFull: the lines of Vec, one down
2818832eLuis <42945842+ldiaz94@users.noreply.github.com>Vec: tryPush and tryAdd
ac9d3e89Luis <42945842+ldiaz94@users.noreply.github.com>Sys: what a shell needs, for concha, over Linux and over C
fe7939cdLuis <42945842+ldiaz94@users.noreply.github.com>Map.done: its slots given back, leaving it empty
8b97e6ceLuis <42945842+ldiaz94@users.noreply.github.com>Vec(T): a growable array, in the standard library
9b4fd42fLuis <42945842+ldiaz94@users.noreply.github.com>Buf: out of memory stops; Buf.spare to read into
0519c7d5Luis <42945842+ldiaz94@users.noreply.github.com>Buf: a Buf used before Buf.init says so
f871b244Luis <42945842+ldiaz94@users.noreply.github.com>Thread in a program with C, by C's pthread_create
7e721e08Luis <42945842+ldiaz94@users.noreply.github.com>Every stop of a running program exits with status 2; conformance tests for stops, zero start, evaluation order, variant match, defers and Str's byte order
51c3b8b8Luis <42945842+ldiaz94@users.noreply.github.com>conform/ needs only the core: library tests go to test/run, generic tests use local modules
ae086c9aLuis <42945842+ldiaz94@users.noreply.github.com>Seed: match on an integer or an enumeration by a jump table
413478c6Luis <42945842+ldiaz94@users.noreply.github.com>Code procedures take and return slices (report 2026-10.18)
7176b227Luis <42945842+ldiaz94@users.noreply.github.com>A scale is one factor: [rdi + rsi * 4 + 16] assembles
b1472f5dLuis <42945842+ldiaz94@users.noreply.github.com>The assembler knows SSE2's integer instructions and the bit scans
cee2693cLuis <42945842+ldiaz94@users.noreply.github.com>while tested at the bottom
654579f9Luis <42945842+ldiaz94@users.noreply.github.com>Parameters left where they arrive
e224225dLuis <42945842+ldiaz94@users.noreply.github.com>Slices in registers
3e451d8eLuis <42945842+ldiaz94@users.noreply.github.com>Slices in two registers, arguments on the stack
46597e23Luis <42945842+ldiaz94@users.noreply.github.com>Register variables
9ca6cfc3Luis <42945842+ldiaz94@users.noreply.github.com>The blank, and a warning for a dropped result
aa755916Luis <42945842+ldiaz94@users.noreply.github.com>Comments: the review's gaps in src and lib
ce8052e0Luis <42945842+ldiaz94@users.noreply.github.com>Diagnostics: say more of what went wrong
a5915c27Luis <42945842+ldiaz94@users.noreply.github.com>Step 9d: the trap report
e514b239Luis <42945842+ldiaz94@users.noreply.github.com>Step 9b: assembly procedures in place of byte procedures
3a4fb62bLuis <42945842+ldiaz94@users.noreply.github.com>Step 9a: failures the code tests for where the machine can't
36efcd0fLuis <42945842+ldiaz94@users.noreply.github.com>Step 8: Wirth's register stack in gen
2411fde8Luis <42945842+ldiaz94@users.noreply.github.com>Step 5: the system integer
1d7484feLuis <42945842+ldiaz94@users.noreply.github.com>Step 4: the conformance suite, conform/, apart from this compiler's tests
fa546d68Luis <42945842+ldiaz94@users.noreply.github.com>StackOverflow test: a frame big enough to fault in its prologue
76f10fb8Luis <42945842+ldiaz94@users.noreply.github.com>Packed fields have no address; byte order; Out's buffer is the target's
1cef5331Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.10: constants don't overflow, pointer slices don't run backwards
eae54d46Luis <42945842+ldiaz94@users.noreply.github.com>Reals read to the nearest F64, exactly
f28bc869Luis <42945842+ldiaz94@users.noreply.github.com>Str's UTF-8 and toInt, Map's remove and next, Sort, Math, Fmt.real
043eac0aLuis <42945842+ldiaz94@users.noreply.github.com>Generic instances made where first used
bc22ce64Luis <42945842+ldiaz94@users.noreply.github.com>Operators: and, or, not for BOOLs below the relations; &, |, ~ for bits
95cc648aLuis <42945842+ldiaz94@users.noreply.github.com>= and # on arrays inline, with repe cmpsb; Rt.eq goes
71fdfd58Luis <42945842+ldiaz94@users.noreply.github.com>return f(x) passes on f's several results
566b557bLuis <42945842+ldiaz94@users.noreply.github.com>Thread: a stack for the signal handlers in each thread's mapping
389c4f3aLuis <42945842+ldiaz94@users.noreply.github.com>Run-time messages: failed checks say what and with what values, signals say where and why
71b16e4fLuis <42945842+ldiaz94@users.noreply.github.com>Shifts for *, div and mod by a power of two
3116a647Luis <42945842+ldiaz94@users.noreply.github.com>Stop tracking the programs make check builds v0.3.0
ba7f6657Luis <42945842+ldiaz94@users.noreply.github.com>Rename jed to raz; add an ISC license
115239adLuis <42945842+ldiaz94@users.noreply.github.com>Step 13: a thread-safe heap with block markers, native threads
37e1ec36Luis <42945842+ldiaz94@users.noreply.github.com>Step 12: F32, and real constants that take F32 or F64
1e15c9a2Luis <42945842+ldiaz94@users.noreply.github.com>Step 11: extern proc and var, link, dynamic ELF; Rt.exit, Rt.atExit, buffered Out
82a614f3Luis <42945842+ldiaz94@users.noreply.github.com>Step 10: generic modules; Str, Buf, Fmt, List, Map
8c6df0eeLuis <42945842+ldiaz94@users.noreply.github.com>Step 9: NEW, and the allocators
03224cabLuis <42945842+ldiaz94@users.noreply.github.com>Step 8: enumerations and sets, record literals, defer
39a17b57Luis <42945842+ldiaz94@users.noreply.github.com>Step 7: multiple results, errors, INC and DEC
bc1240a7Luis <42945842+ldiaz94@users.noreply.github.com>Step 6: first library, examples, check and bench