just random changes
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 13 Jan 2021 23:33:28 +0000 (17:33 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 13 Jan 2021 23:33:28 +0000 (17:33 -0600)
bin/onyx
core/sys/wasi.onyx
docs/plan
docs/todo

index c76a84058a8c3ed3488b0dc8ae03fcf2e905fb9e..2098d5e29e8d38e993064109b5ee135791b4b6fc 100755 (executable)
Binary files a/bin/onyx and b/bin/onyx differ
index 533ad186abb3776f2468961a83d257f3fa51e4b5..4c9ad645200b889538c672032fcf96e3a786c1f6 100644 (file)
@@ -34,7 +34,7 @@ proc () #export "_start" {
     alloc.init();
 
     context.allocator = alloc.heap_allocator;
-    context.temp_allocator = alloc.heap_allocator;
+    context.temp_allocator = alloc.temp_allocator;
     context.assert_handler = assert_handler;
 
     argc : Size;
index 9988ef7a040cfceb4eaa80f57cf52cebad6e8fd5..1bb0d442be5594619e7a890356e87ec3b63487bf 100644 (file)
--- a/docs/plan
+++ b/docs/plan
@@ -73,14 +73,14 @@ HOW:
             - Compile time conditions
             - Only evalutate code blocks that evaluate to be true
 
-        [ ] multiple lvals and compound assignment
+        [X] multiple lvals and compound assignment
             a := 2
             b := 5
             a, b = b, a;
 
         [ ] All code paths return correct value
 
-        [ ] Better checking for casts
+        [X] Better checking for casts
             - Checking which things are allowed to cast to/from should be checked in the checker,
                 not in the wasm generatation
 
index 8bc2a5e77d5ab8d57eb6e707a16f3bf594c0d809..de52372ac63d0c2d3f8b3947a3c31f37bc0c7e24 100644 (file)
--- a/docs/todo
+++ b/docs/todo
@@ -99,7 +99,7 @@ Language Cohesion:
         thought to remember that ranges in for-loops and slices are NOT inclusive
         on the upper end.
 
-    [ ] Functions should be polymorphic on the size of array parameters. For example,
+    [X] Functions should be polymorphic on the size of array parameters. For example,
             foo :: proc (arr: [$N] $T) { ... }
         should be polymorphic on both the type of the array elements and the array
         size. This would allow for better support for fixed size arrays, as well
@@ -136,7 +136,7 @@ API Expansion:
     There are many different places where the standard API for WASI and JS
     backends could be improved. Here are some of the target areas.
 
-    [ ] Rearrange APIs. There is a lot of functionality in the standard libraries,
+    [X] Rearrange APIs. There is a lot of functionality in the standard libraries,
         but it isn't organized in a usable way.
         - 'core.array' contains a lot of functionality that would also apply to
           slices. 'core.slice' should contain this functionality and 'core.array'