-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
91,286 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
| Test | Rust MeTTa | MeTTaLog | | ||
|-------------------------------|-----------------------------|------------------------| | ||
| nils_if_control_test_3.metta | 0m11.563s | 0m11.563s | | ||
| fibo_hang_10.metta | 0m3.911s | 0m0.412s | | ||
| fibo_hang_20.metta | 0m1.564s | 0m1.427s | | ||
| fibo_hang_80.metta | 0m1.549s | 0m21.317s | | ||
| fibo_hang_900.metta | 0m1.600s | <Still Running> | | ||
|
||
``` | ||
# time metta nils_if_control_test_3.metta 2>&1 > /dev/null | ||
real 0m49.559s | ||
user 0m49.468s | ||
sys 0m0.088s | ||
# time MeTTa nils_if_control_test_3.metta 2>&1 > /dev/null | ||
real 0m11.563s | ||
user 0m11.511s | ||
sys 0m0.070s | ||
# time MeTTa --v_old nils_if_control_test_3.metta 2>&1 > /dev/null | ||
real 0m8.552s | ||
user 0m8.609s | ||
sys 0m0.091s | ||
``` | ||
|
||
|
||
|
||
|
||
``` | ||
# time metta fibo_hang_10.metta | ||
55 | ||
[()] | ||
real 0m0.412s | ||
user 0m0.388s | ||
sys 0m0.024s | ||
# time MeTTa fibo_hang_10.metta | ||
[55] | ||
real 0m3.911s | ||
user 0m3.874s | ||
sys 0m0.056s | ||
``` | ||
|
||
``` | ||
# time metta fibo_hang_20.metta | ||
6765 | ||
[()] | ||
[()] | ||
real 0m1.427s | ||
user 0m1.411s | ||
sys 0m0.016s | ||
# time MeTTa fibo_hang_20.metta | ||
[] | ||
[6765] | ||
real 0m1.564s | ||
user 0m1.523s | ||
sys 0m0.059s | ||
``` | ||
|
||
|
||
``` | ||
# time metta fibo_hang_80.metta | ||
23416728348467685 | ||
[()] | ||
[()] | ||
real 0m21.317s | ||
user 0m21.265s | ||
sys 0m0.052s | ||
# time MeTTa fibo_hang_80.metta | ||
[] | ||
[23416728348467685] | ||
real 0m1.549s | ||
user 0m1.500s | ||
sys 0m0.066s | ||
``` | ||
|
||
|
||
|
||
``` | ||
# time MeTTa fibo_hang_900.metta | ||
[] | ||
[54877108839480000051413673948383714443800519309123592724494953427039811201064341234954387521525390615504949092187441218246679104731442473022013980160407007017175697317900483275246652938800] | ||
real 0m1.600s | ||
user 0m1.582s | ||
sys 0m0.036s | ||
# time metta fibo_hang_900.metta | ||
Unknowm | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
(= (fib $n) | ||
(if (== $n 0) | ||
0 | ||
(if (== $n 1) | ||
1 | ||
(+ (fib (- $n 1)) (fib (- $n 2)))))) | ||
|
||
!(println! (fib 10)) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
;; makes this file be treated as if the command line --compile=full was supplied | ||
!(pragma! compile full) | ||
|
||
(= (fib $n) | ||
(if (== $n 0) | ||
0 | ||
(if (== $n 1) | ||
1 | ||
(+ (fib (- $n 1)) (fib (- $n 2)))))) | ||
|
||
!(println! (fib 20)) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
;; makes this file be treated as if the command line --compile=full was supplied | ||
!(pragma! compile full) | ||
|
||
(= (fib $n) | ||
(if (== $n 0) | ||
0 | ||
(if (== $n 1) | ||
1 | ||
(+ (fib (- $n 1)) (fib (- $n 2)))))) | ||
|
||
!(println! (fib 80)) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
;; makes this file be treated as if the command line --compile=full was supplied | ||
!(pragma! compile full) | ||
|
||
(= (fib $n) | ||
(if (== $n 0) | ||
0 | ||
(if (== $n 1) | ||
1 | ||
(+ (fib (- $n 1)) (fib (- $n 2)))))) | ||
|
||
(= (fib1 $a $b $n $i) | ||
(if (< $n 3) | ||
(fib $n) | ||
(if (== $i (- $n 2)) | ||
(+ $a $b) | ||
(fib1 $b (+ $a $b) $n (+ $i 1))))) | ||
|
||
|
||
!(println! (fib1 0 1 900 0)) | ||
|
||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.