release 0.1.0

This commit is contained in:
rus07tam 2026-05-06 12:21:06 +03:00
commit 30d94536a9
90 changed files with 7722 additions and 0 deletions

View file

@ -0,0 +1,8 @@
(seq
(def fib (lambda [n]
(match n
(0 0)
(1 1)
(_ (+ (this (- n 1)) (this (- n 2)))))))
(trace (fib 12))
)

9
benchmarks/case1/main.py Normal file
View file

@ -0,0 +1,9 @@
def fib(n):
if n == 0:
return 0
if n == 1:
return 1
return fib(n - 1) + fib(n - 2)
print(fib(12))

View file

@ -0,0 +1,8 @@
(builtins.seq
(builtins.def fib (builtins.lambda [n]
(builtins.cond.match n
(0 0)
(1 1)
(_ (builtins.math.add (this (builtins.math.sub n 1)) (this (builtins.math.sub n 2)))))))
(builtins.trace (fib 12))
)

View file

@ -0,0 +1,5 @@
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `python3.14 D:\Tools\Projects\owa-rs\benchmarks/case1/main.py` | 40.5 ± 0.7 | 39.5 | 43.1 | 2.38 ± 0.36 |
| `.\target\release\owa-rs.exe run D:\Tools\Projects\owa-rs\benchmarks/case1/main.owa` | 53.3 ± 1.2 | 51.5 | 57.6 | 3.14 ± 0.48 |
| `.\target\release\owa-rs.exe --no-owu D:\Tools\Projects\owa-rs\benchmarks/case1/no_owu.owa` | 17.0 ± 2.6 | 15.3 | 37.5 | 1.00 |