From: Brendan Hansen Date: Wed, 13 Jan 2021 23:33:28 +0000 (-0600) Subject: just random changes X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=7c4b6ce3df8ad571ff31528ad11b3e7b67bd9c87;p=onyx.git just random changes --- diff --git a/bin/onyx b/bin/onyx index c76a8405..2098d5e2 100755 Binary files a/bin/onyx and b/bin/onyx differ diff --git a/core/sys/wasi.onyx b/core/sys/wasi.onyx index 533ad186..4c9ad645 100644 --- a/core/sys/wasi.onyx +++ b/core/sys/wasi.onyx @@ -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; diff --git a/docs/plan b/docs/plan index 9988ef7a..1bb0d442 100644 --- 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 diff --git a/docs/todo b/docs/todo index 8bc2a5e7..de52372a 100644 --- 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'