raz / conform / run

history · 57 commits · the directory

fa4b6510Luis <42945842+ldiaz94@users.noreply.github.com>conform: a program at each of section 10's least limits, compiled and run
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
e33d4214Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: import SYSTEM, and what reaches memory other than through a variable
b5e76eabLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: []const T, a slice whose elements can't be written through it
4d6f1bcaLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: CAS, XCHG and XADD take a variable
b7667d81Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: an array a call returns lives to the end of its procedure
201d9da2Luis <42945842+ldiaz94@users.noreply.github.com>and and or skip their right side after a constant that decides them
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
1a0e8ddeLuis <42945842+ldiaz94@users.noreply.github.com>ABS: a number without its sign, as report 2026-10.36 has it
bbc103ebLuis <42945842+ldiaz94@users.noreply.github.com>A procedure type's parameter or result may name a type declared later in its type section, as report 2026-10.36 has it: laterType gives a placeholder, as a pointer's base had, and resolveLaters puts the type in its place at the section's end, laying several results out again; Sym.Type's fwd is gone
e19ed1d8Luis <42945842+ldiaz94@users.noreply.github.com>FILL(d, x): every element of an array or slice set to x, as report 2026-10.36 has it: rep stos of the element's width, a loop of stores for a short slice, a store each for a short array, and a record copied forward by rep movsb (10M fills of 10 U32s 52 ms to 37 against the loop, of 1,000 2,500 to 490)
74519995Luis <42945842+ldiaz94@users.noreply.github.com>conform: a const parameter's slice returned, of the caller's array and of a temporary used within the statement, as report 2026-10.36's 7.3 has it
73c1f3acLuis <42945842+ldiaz94@users.noreply.github.com>An ERROR constant given another is that same error, its chunk, so const Short*: ERROR = PictBase.Short; makes Short = PictBase.Short hold, as report 2026-10.36 has it
3fb27192Luis <42945842+ldiaz94@users.noreply.github.com>A constant's slice part written as an array literal, an array constant of its own in a chunk with no name, nested to any depth, as report 2026-10.36 has it
16ccda37Luis <42945842+ldiaz94@users.noreply.github.com>A match arm names its case alone or qualified as anywhere else, Kind.done, Xml.done or Xml.Kind.done, read by qualIdent and checked against the matched type, as report 2026-10.36 has it
3994272cLuis <42945842+ldiaz94@users.noreply.github.com>COPY goes backwards only when the destination starts inside the source, and then by words, not a byte-at-a-time std rep movsb (10M upward copies of 1,000 U32s 10,900 ms to 410)
8e0ec9ceLuis <42945842+ldiaz94@users.noreply.github.com>BYTES(x): a variable's bytes as a []U8, as report 2026-10.36 has them
32b1a75bLuis <42945842+ldiaz94@users.noreply.github.com>OFFSET(T, f) and SIZE(T.f): a field's place and size, as report 2026-10.36 has them
eaa6cf3cLuis <42945842+ldiaz94@users.noreply.github.com>INT(b): a BOOL as an integer, as report 2026-10.36 has it
597cec35Luis <42945842+ldiaz94@users.noreply.github.com>CLZ, CTZ and POPCOUNT: counts of bits, as report 2026-10.36 has them
f1ef1ab0Luis <42945842+ldiaz94@users.noreply.github.com>MIN and MAX: the limits of an integer type, as report 2026-10.36 has them
61fa4786Luis <42945842+ldiaz94@users.noreply.github.com>ROL and ROR: rotations, as report 2026-10.35 has them
0d0c6bb1Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: PTR(s) (report 2026-10.34, section 6.8)
71a95b30Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: a variant in a constant (report 2026-10.33, section 4)
b13f87f8Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: const parameters (report 2026-10.33, section 8)
0081856cLuis <42945842+ldiaz94@users.noreply.github.com>A constant's slice part may name another module's array constant
ae6fc91dLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.32, the eighth thaw: the empty slice constant
3e1c4e5bLuis <42945842+ldiaz94@users.noreply.github.com>Enumerations' names with their types (report 2026-10.31)
bfb7ab7cLuis <42945842+ldiaz94@users.noreply.github.com>continue (report 2026-10.31)
b5aa492dLuis <42945842+ldiaz94@users.noreply.github.com>U8, I8 and I16 widen to INT, U8 and U16 to UINT (report 2026-10.31)
fa020166Luis <42945842+ldiaz94@users.noreply.github.com>[] as the empty slice, tested (report 2026-10.30); the compiler follows 2026-10.31
182251daLuis <42945842+ldiaz94@users.noreply.github.com>An array constant typed []T takes its literal's length (report 2026-10.29)
f784f531Luis <42945842+ldiaz94@users.noreply.github.com>Views, v.(T): the bytes of a variable read and written as another type
f4ad1385Luis <42945842+ldiaz94@users.noreply.github.com>An INT widens to an I64 wherever it goes to one, in an expression too
72b1a71dLuis <42945842+ldiaz94@users.noreply.github.com>A var real parameter's address in an integer register
768afb54Luis <42945842+ldiaz94@users.noreply.github.com>match on a string
fc966ca0Luis <42945842+ldiaz94@users.noreply.github.com>Raw strings, indented with the code
b38de572Luis <42945842+ldiaz94@users.noreply.github.com>Conformance tests for the rules of the report that had none; F32 constants as the compiler reads them; the atExit hang noted
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
57a5dff9Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.21: an enumeration's match arm may name several names
7916b9fdLuis <42945842+ldiaz94@users.noreply.github.com>try: return an error that is not nil from the procedure it stands in
969b2572Luis <42945842+ldiaz94@users.noreply.github.com>A blank among results from memory; plainer code where review asked
f627f570Luis <42945842+ldiaz94@users.noreply.github.com>for loops stepped at the top, tested at the bottom
11681e72Luis <42945842+ldiaz94@users.noreply.github.com>Conditions as jumps
dd5e5a98Luis <42945842+ldiaz94@users.noreply.github.com>Two results left on the stack; values popped where they go
69fbd033Luis <42945842+ldiaz94@users.noreply.github.com>Two words of results in rax and rdx
d8137081Luis <42945842+ldiaz94@users.noreply.github.com>COPY
6089fb3bLuis <42945842+ldiaz94@users.noreply.github.com>Record constants, constant tables, and Str.copy
9ca6cfc3Luis <42945842+ldiaz94@users.noreply.github.com>The blank, and a warning for a dropped result
2a226448Luis <42945842+ldiaz94@users.noreply.github.com>Step 6c: match on integers
8465197cLuis <42945842+ldiaz94@users.noreply.github.com>Step 6b: array constants
c6f0123eLuis <42945842+ldiaz94@users.noreply.github.com>Step 6a: + joins string constants
74792a82Luis <42945842+ldiaz94@users.noreply.github.com>Step 6: optional reals
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