raz / src / Sym.raz

history · 24 commits · the file

dafe42afLuis <42945842+ldiaz94@users.noreply.github.com>raz -q def: a module is its name in its module line, and an import's name answers too
d70fd8f0Luis <42945842+ldiaz94@users.noreply.github.com>raz -q def: where the name at the cursor is declared
5afc418bLuis <42945842+ldiaz94@users.noreply.github.com>raz -q: check and words, for an editor's language server
04d8e1a9Luis <42945842+ldiaz94@users.noreply.github.com>src/ held to report 2026-10.37 whole: import SYSTEM where it reaches memory so
e0d008cdLuis <42945842+ldiaz94@users.noreply.github.com>lib/ held to report 2026-10.37 whole: import SYSTEM, []const, atomics on a variable
81cb2aeeLuis <42945842+ldiaz94@users.noreply.github.com>raz -strict: report 2026-10.37 held whole, until v0.24.0 makes it the rule
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
b7667d81Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.37: an array a call returns lives to the end of its procedure
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)
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
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)
3fee2db6Luis <42945842+ldiaz94@users.noreply.github.com>Buf, Files, Fmt and Str take the Buf by var (report 2026-10.33)
b13f87f8Luis <42945842+ldiaz94@users.noreply.github.com>The compiler: const parameters (report 2026-10.33, section 8)
3e1c4e5bLuis <42945842+ldiaz94@users.noreply.github.com>Enumerations' names with their types (report 2026-10.31)
787085c3Luis <42945842+ldiaz94@users.noreply.github.com>A square root in place of a call
596c810aLuis <42945842+ldiaz94@users.noreply.github.com>src/ is the compiler in raz; the Pascal seed moves to seed/