IgorCielniak
d639c63fd3
added 'rfind'
2026-03-25 11:12:32 +01:00
IgorCielniak
ab613e644a
small fix to 'contains' and added 'find'
2026-03-25 11:05:55 +01:00
IgorCielniak
75b01b9635
added contains, 3dup and 4dup
2026-03-25 10:38:43 +01:00
IgorCielniak
b263e7d0de
added startswith and endswith
2026-03-25 10:10:14 +01:00
IgorCielniak
bc3a894737
added trim functions
2026-03-25 08:59:35 +01:00
IgorCielniak
e8271895fb
fixed a mistake in a stack effect comment
2026-03-24 16:35:00 +01:00
IgorCielniak
5dd361e563
added strdup
2026-03-20 21:23:45 +01:00
IgorCielniak
e2159bbca2
added memset_bytes, fixed some stack comments, fixed splitby_char and finally implemented splitby_str so splitby if now fully functional
2026-03-20 21:09:44 +01:00
igor
f4d688cac1
small fixes
2026-03-20 15:37:12 +01:00
IgorCielniak
4508433206
added 'ret' and implemented a proper 'strcmp'
2026-03-19 13:29:49 +01:00
igor
cda34e61bd
added some functions to the stdlib
2026-03-18 15:27:01 +01:00
igor
2a1ae2f774
compiler: add -O0/-O2 flags, -v 1..4, whole-word JIT, lazy init, auto-inline control
...
- Add -O0 (no opts) and -O2 (no opts + no checks) CLI flags
- Add -v 1..4 verbosity: timing, per-function stats, debug dump, optimization diffs
- Whole-word JIT: compile Definition bodies to native x86-64 for CT VM
- Lazy CTMemory/JIT/ctype init (defer ctypes until first CT execution)
- Stack-effect comment parsing for stack-checks
- Peephole rules refactored to module-level dicts with O(1) lookup
- _emitted_start short-circuit (O(1) vs O(n) scan)
- Add --no-auto-inline to disable auto-inlining of small asm bodies
- Fix --ct-run-main to execute after linking (prevent SIGSEGV)
- Stdlib: small optimizations like swap + drop -> nip
2026-03-09 14:04:45 +01:00
igor
b0de836beb
general update
2026-02-18 13:58:08 +01:00
IgorCielniak
adfc941538
added formating functions
2026-02-17 12:59:34 +01:00
IgorCielniak
5fb36ac9bc
standardized the system of stack effect comments and updated/corrected the existing comments in stdlib and added some that were lacking
2026-02-05 21:36:03 +01:00
IgorCielniak
c2fcaf8f8d
ported dynamic arrays and strlen to l2
2026-02-03 09:41:11 +01:00
IgorCielniak
5ea020100e
implemented realloc as well as a bunch of fixes and some small changes like changing the order of arguments for !, making alloc drop etc.
2026-02-02 15:51:58 +01:00
IgorCielniak
fa6e42292d
proper cleanup of the return stack in the toint function
2026-01-13 09:26:05 +01:00
IgorCielniak
47a45c050e
quite a few fixes, overall repo cleanup and some restructurization in the stdlib
2026-01-12 19:03:49 +01:00