- 16 Feb, 2026 10 commits
-
-
Roman Alifanov authored
- @test("description") decorator marks functions as tests - assert(condition, message) works in both bash and @awk functions - content test command runs all @test functions - Colored output with timing, pass/fail status - DCE skips @test functions in normal compilation mode - Supports combining @test with other decorators (@awk, @retry, etc.) -
Roman Alifanov authored
-
Roman Alifanov authored
-
Roman Alifanov authored
-
Roman Alifanov authored
- Track which classes are instantiated (new X() or X()) - Track transitive dependencies via class fields - Skip generating unused classes with comment marker Example: if class A is used but class B is not, B is skipped: # DCE: skipped unused class B
-
Roman Alifanov authored
- Add dce.py: UsageAnalyzer that scans AST for used stdlib categories - Modify stdlib.py: emit_stdlib() now accepts used_categories parameter - Modify codegen.py: analyze programs before generating stdlib Categories: core, object, http, fs, json, logger, string, array, dict, regex, math, time, awk, exception, args, misc Results: - Simple "print(Hello)" program: 200+ lines -> 35 lines - Complex programs: minimal change (use most categories anyway)
-
Roman Alifanov authored
-
Roman Alifanov authored
-
Roman Alifanov authored
- Add estrlist.ct: string list operations with @awk acceleration - Add estrlist_noawk.ct: pure bash version for comparison - Add benchmark.sh: performance comparison script - Add BENCHMARK.md: results showing @awk gives 93x speedup on union Codegen fixes: - Fix time.now() and time.ms() calls in dispatch_codegen - Fix math.* namespace calls - Previous fixes for class field assignment and nested constructors
-
Roman Alifanov authored
-