onyx.git
2 years agobugfix: debugging broke when using multi-pointers feature/multi-pointers
Brendan Hansen [Fri, 24 Mar 2023 00:28:59 +0000 (19:28 -0500)]
bugfix: debugging broke when using multi-pointers

2 years agochanged: pointer promotes to multi-pointer
Brendan Hansen [Thu, 23 Mar 2023 23:58:20 +0000 (18:58 -0500)]
changed: pointer promotes to multi-pointer

2 years agobugfix: `map.as_iter` had wrong typeof
Brendan Hansen [Thu, 23 Mar 2023 23:35:33 +0000 (18:35 -0500)]
bugfix: `map.as_iter` had wrong typeof

2 years agoremoved: non-multi-pointer math
Brendan Hansen [Thu, 23 Mar 2023 16:28:49 +0000 (11:28 -0500)]
removed: non-multi-pointer math

2 years agobugfix: polymorphing with multi-pointing
Brendan Hansen [Thu, 23 Mar 2023 16:06:36 +0000 (11:06 -0500)]
bugfix: polymorphing with multi-pointing

2 years agoadded: basics of multi-pointers
Brendan Hansen [Thu, 23 Mar 2023 14:20:17 +0000 (09:20 -0500)]
added: basics of multi-pointers

need to work on ergonomics

2 years agochanged: added new logo; added: proposal for multi-pointers
Brendan Hansen [Thu, 23 Mar 2023 02:51:02 +0000 (21:51 -0500)]
changed: added new logo; added: proposal for multi-pointers

2 years agobugfix: clz_i32, ctz_i32, popcnt_i32
Brendan Hansen [Thu, 16 Mar 2023 22:10:34 +0000 (17:10 -0500)]
bugfix: clz_i32, ctz_i32, popcnt_i32

2 years agobugfix: segfault in weird case; added: overload to `iter.as_iter`
Brendan Hansen [Thu, 16 Mar 2023 21:12:40 +0000 (16:12 -0500)]
bugfix: segfault in weird case; added: overload to `iter.as_iter`

2 years agoadded: bi-directional custom serializer
Brendan Hansen [Thu, 16 Mar 2023 14:42:41 +0000 (09:42 -0500)]
added: bi-directional custom serializer

2 years agoadded: `alloc.gc.untrack` to untrack a GC'd allocation
Brendan Hansen [Wed, 15 Mar 2023 01:25:08 +0000 (20:25 -0500)]
added: `alloc.gc.untrack` to untrack a GC'd allocation

2 years agocleanup: removed old references to `to_u32`
Brendan Hansen [Wed, 15 Mar 2023 01:24:50 +0000 (20:24 -0500)]
cleanup: removed old references to `to_u32`

2 years agochange: made `math.ilog2` work for `u32`
Brendan Hansen [Tue, 14 Mar 2023 19:49:06 +0000 (14:49 -0500)]
change: made `math.ilog2` work for `u32`

2 years agoadded: math.ilog2
Brendan Hansen [Tue, 14 Mar 2023 16:17:54 +0000 (11:17 -0500)]
added: math.ilog2

2 years agobugfix: some `#cstr`s did not have null bytes at the end
Brendan Hansen [Tue, 14 Mar 2023 13:48:58 +0000 (08:48 -0500)]
bugfix: some `#cstr`s did not have null bytes at the end

2 years agochanged: `math.max` -> `math.max_fast`, `math.max_poly` -> `math.max`
Brendan Hansen [Mon, 13 Mar 2023 15:51:18 +0000 (10:51 -0500)]
changed: `math.max` -> `math.max_fast`, `math.max_poly` -> `math.max`

2 years agobugfix: js platform and `void` structure literals
Brendan Hansen [Sun, 12 Mar 2023 20:30:41 +0000 (15:30 -0500)]
bugfix: js platform and `void` structure literals

2 years agoMerge pull request #5 from onyx-lang/feature/first-class-optional
Brendan Hansen [Sat, 11 Mar 2023 21:25:06 +0000 (15:25 -0600)]
Merge pull request #5 from onyx-lang/feature/first-class-optional

First class optional support.

2 years agobugfix: special cases in unify_node_and_type
Brendan Hansen [Sat, 11 Mar 2023 14:11:03 +0000 (08:11 -0600)]
bugfix: special cases in unify_node_and_type

2 years agobugfix: method calls on optional types
Brendan Hansen [Sat, 11 Mar 2023 07:06:57 +0000 (01:06 -0600)]
bugfix: method calls on optional types

2 years agoadded: implicit conversion to optional where appropriate
Brendan Hansen [Sat, 11 Mar 2023 03:25:36 +0000 (21:25 -0600)]
added: implicit conversion to optional where appropriate

2 years agoMerge pull request #4 from onyx-lang/feature/dyncall
Brendan Hansen [Sat, 11 Mar 2023 01:40:42 +0000 (19:40 -0600)]
Merge pull request #4 from onyx-lang/feature/dyncall

Arbitrary dynamic call support.

2 years agobugfix: return simple structures from dyncall procedures
Brendan Hansen [Sat, 11 Mar 2023 01:06:37 +0000 (19:06 -0600)]
bugfix: return simple structures from dyncall procedures

2 years agobugfix: window compilation, this time with feeling
Brendan Hansen [Sat, 11 Mar 2023 00:41:28 +0000 (18:41 -0600)]
bugfix: window compilation, this time with feeling

2 years agobugfix: window compilation
Brendan Hansen [Fri, 10 Mar 2023 23:31:06 +0000 (17:31 -0600)]
bugfix: window compilation

2 years agobugfix: hopefully fixed GitHub tests
Brendan Hansen [Fri, 10 Mar 2023 23:08:56 +0000 (17:08 -0600)]
bugfix: hopefully fixed GitHub tests

2 years agobugfix: trying to fix GitHub Action
Brendan Hansen [Fri, 10 Mar 2023 23:02:14 +0000 (17:02 -0600)]
bugfix: trying to fix GitHub Action

2 years agobugfix: dyncall is not behind a #define
Brendan Hansen [Fri, 10 Mar 2023 22:59:23 +0000 (16:59 -0600)]
bugfix: dyncall is not behind a #define

2 years agoadded: `#foreign #dyncall` blocks
Brendan Hansen [Fri, 10 Mar 2023 21:16:57 +0000 (15:16 -0600)]
added: `#foreign #dyncall` blocks

2 years agoadded: dyncall LICENSE
Brendan Hansen [Fri, 10 Mar 2023 17:36:51 +0000 (11:36 -0600)]
added: dyncall LICENSE

2 years agoadded: wasm_runtime supports using `dyncall`
Brendan Hansen [Fri, 10 Mar 2023 17:36:34 +0000 (11:36 -0600)]
added: wasm_runtime supports using `dyncall`

2 years agocleanup: deleting slices and arena resize
Brendan Hansen [Fri, 10 Mar 2023 16:15:16 +0000 (10:15 -0600)]
cleanup: deleting slices and arena resize

2 years agoadded: sensible overloads for `delete`
Brendan Hansen [Thu, 9 Mar 2023 22:32:27 +0000 (16:32 -0600)]
added: sensible overloads for `delete`

2 years agochanged: `make` and `delete` no longer have pointer implementations
Brendan Hansen [Thu, 9 Mar 2023 00:54:17 +0000 (18:54 -0600)]
changed: `make` and `delete` no longer have pointer implementations

2 years agoadded: `#if` works in macro expansions
Brendan Hansen [Thu, 9 Mar 2023 00:53:42 +0000 (18:53 -0600)]
added: `#if` works in macro expansions

2 years agochanged: iterator type of `utf8.runes`
Brendan Hansen [Wed, 8 Mar 2023 23:05:19 +0000 (17:05 -0600)]
changed: iterator type of `utf8.runes`

2 years agoadded: `core.encoding.utf8` library
Brendan Hansen [Wed, 8 Mar 2023 20:38:31 +0000 (14:38 -0600)]
added: `core.encoding.utf8` library

2 years agoadded: `core.alloc.arena.auto_temp()`
Brendan Hansen [Wed, 8 Mar 2023 20:38:07 +0000 (14:38 -0600)]
added: `core.alloc.arena.auto_temp()`

2 years agobugfix: socket not reporting bad-write
Brendan Hansen [Wed, 8 Mar 2023 15:33:32 +0000 (09:33 -0600)]
bugfix: socket not reporting bad-write

2 years agorefactored: `conv.format` to better use `dyn_str`
Brendan Hansen [Wed, 8 Mar 2023 14:36:39 +0000 (08:36 -0600)]
refactored: `conv.format` to better use `dyn_str`

2 years agofixed: dyn_str test case
Brendan Hansen [Wed, 8 Mar 2023 14:26:47 +0000 (08:26 -0600)]
fixed: dyn_str test case

2 years agoadded: error message for unclosed character literal
Brendan Hansen [Wed, 8 Mar 2023 14:02:04 +0000 (08:02 -0600)]
added: error message for unclosed character literal

2 years agoadded: single quote character literals
Brendan Hansen [Wed, 8 Mar 2023 12:24:45 +0000 (06:24 -0600)]
added: single quote character literals

changed: no re-declaration specifier is now `~`

2 years agoadded: syntax highlighting for `dyn_str`; bugfix: array.insert
Brendan Hansen [Tue, 7 Mar 2023 23:18:59 +0000 (17:18 -0600)]
added: syntax highlighting for `dyn_str`; bugfix: array.insert

2 years agoadded: `u8.is_whitespace`
Brendan Hansen [Tue, 7 Mar 2023 21:37:04 +0000 (15:37 -0600)]
added: `u8.is_whitespace`

2 years agobugfix: printing '{' did not work
Brendan Hansen [Tue, 7 Mar 2023 21:08:43 +0000 (15:08 -0600)]
bugfix: printing '{' did not work

2 years agobugfix: `dyn_str` functions
Brendan Hansen [Tue, 7 Mar 2023 20:41:38 +0000 (14:41 -0600)]
bugfix: `dyn_str` functions

2 years agoadded: `dyn_str` type ([..] u8)
Brendan Hansen [Tue, 7 Mar 2023 20:13:13 +0000 (14:13 -0600)]
added: `dyn_str` type ([..] u8)

2 years agoadded: variant of string.concat for appending single characters
Brendan Hansen [Tue, 7 Mar 2023 16:30:21 +0000 (10:30 -0600)]
added: variant of string.concat for appending single characters

2 years agoMerge pull request #1 from onyx-lang/first-class-optional
Brendan Hansen [Tue, 7 Mar 2023 02:05:07 +0000 (20:05 -0600)]
Merge pull request #1 from onyx-lang/first-class-optional

First class optional support

2 years agobugfix: '??' precedence; added: writer_consumer_error, alloc.on_temp first-class-optional
Brendan Hansen [Tue, 7 Mar 2023 01:41:28 +0000 (19:41 -0600)]
bugfix: '??' precedence; added: writer_consumer_error, alloc.on_temp

2 years agofixed: parsing of method call with wrong precedence
Brendan Hansen [Tue, 7 Mar 2023 01:40:45 +0000 (19:40 -0600)]
fixed: parsing of method call with wrong precedence

2 years agoremoved: return #from_enclosing; added: repeated `return`
Brendan Hansen [Mon, 6 Mar 2023 04:45:06 +0000 (22:45 -0600)]
removed: return #from_enclosing; added: repeated `return`

2 years agoadded: try operator (?)
Brendan Hansen [Mon, 6 Mar 2023 04:29:22 +0000 (22:29 -0600)]
added: try operator (?)

2 years agoadded: coalesce operator (??)
Brendan Hansen [Mon, 6 Mar 2023 03:39:06 +0000 (21:39 -0600)]
added: coalesce operator (??)

2 years agomigration: changed tests to use new pointer syntax
Brendan Hansen [Mon, 6 Mar 2023 02:52:13 +0000 (20:52 -0600)]
migration: changed tests to use new pointer syntax

2 years agofixed: test cases broken for new pointer syntax
Brendan Hansen [Mon, 6 Mar 2023 02:48:30 +0000 (20:48 -0600)]
fixed: test cases broken for new pointer syntax

2 years agohuge_test: trying `&` as pointer specifier in addition to `^`
Brendan Hansen [Mon, 6 Mar 2023 02:36:05 +0000 (20:36 -0600)]
huge_test: trying `&` as pointer specifier in addition to `^`

2 years agocleanup: better printing of 'Optional(T)' as '? T'
Brendan Hansen [Sun, 5 Mar 2023 23:09:19 +0000 (17:09 -0600)]
cleanup: better printing of 'Optional(T)' as '? T'

2 years agonew: made `?T` mean `Optional(T)`
Brendan Hansen [Sun, 5 Mar 2023 21:46:27 +0000 (15:46 -0600)]
new: made `?T` mean `Optional(T)`

2 years agocleanup: platform layer specification
Brendan Hansen [Sun, 5 Mar 2023 21:29:47 +0000 (15:29 -0600)]
cleanup: platform layer specification

2 years agocleanup: restructured platform layer code
Brendan Hansen [Sun, 5 Mar 2023 04:23:50 +0000 (22:23 -0600)]
cleanup: restructured platform layer code

Platform layer code was scattered and undocumented what was expected.
This has been remedied, and a good baseline has been defined.

2 years agobugfix: exporting aliased symbol; added: better cli help
Brendan Hansen [Sun, 5 Mar 2023 04:16:51 +0000 (22:16 -0600)]
bugfix: exporting aliased symbol; added: better cli help

2 years agoadded: running `.wasm` binaries with `onyx run`; deprecated: `onyx-run`
Brendan Hansen [Tue, 28 Feb 2023 18:46:59 +0000 (12:46 -0600)]
added: running `.wasm` binaries with `onyx run`; deprecated: `onyx-run`

2 years agobreaking: moved `onyx-pkg` to `onyx pkg`
Brendan Hansen [Tue, 28 Feb 2023 18:46:23 +0000 (12:46 -0600)]
breaking: moved `onyx-pkg` to `onyx pkg`

`onyx-pkg` command is now gone. All functionality moved into `onyx pkg` command.

2 years agodoc: result.onyx
Brendan Hansen [Mon, 27 Feb 2023 04:26:59 +0000 (22:26 -0600)]
doc: result.onyx

2 years agocleanup: bin folder had old executables
Brendan Hansen [Mon, 27 Feb 2023 00:34:31 +0000 (18:34 -0600)]
cleanup: bin folder had old executables

2 years agoadded: return_ok and return_err to Result
Brendan Hansen [Mon, 27 Feb 2023 00:32:07 +0000 (18:32 -0600)]
added: return_ok and return_err to Result

2 years agoMerge branch 'result-type'
Brendan Hansen [Mon, 27 Feb 2023 00:17:29 +0000 (18:17 -0600)]
Merge branch 'result-type'

2 years agoadded: `or_return` to Optional
Brendan Hansen [Mon, 27 Feb 2023 00:16:44 +0000 (18:16 -0600)]
added: `or_return` to Optional

2 years agoadded: `catch` method on Result
Brendan Hansen [Mon, 27 Feb 2023 00:08:06 +0000 (18:08 -0600)]
added: `catch` method on Result

2 years agobugfix: return from expression with stray values
Brendan Hansen [Sun, 26 Feb 2023 19:18:31 +0000 (13:18 -0600)]
bugfix: return from expression with stray values

2 years agobugfix: returning in expressions being handled
Brendan Hansen [Sun, 26 Feb 2023 19:00:19 +0000 (13:00 -0600)]
bugfix: returning in expressions being handled

2 years agoMerge branch 'master' into result-type
Brendan Hansen [Sun, 26 Feb 2023 15:23:34 +0000 (09:23 -0600)]
Merge branch 'master' into result-type

2 years agousing result type in aoc-2021/day01
Brendan Hansen [Sun, 26 Feb 2023 04:51:17 +0000 (22:51 -0600)]
using result type in aoc-2021/day01

2 years agobugfix with matching function using array literals
Brendan Hansen [Sun, 26 Feb 2023 04:50:29 +0000 (22:50 -0600)]
bugfix with matching function using array literals

2 years agotesting result with os.file open
Brendan Hansen [Sun, 26 Feb 2023 04:13:36 +0000 (22:13 -0600)]
testing result with os.file open

2 years agostarting experimentation with Result type
Brendan Hansen [Sun, 26 Feb 2023 03:23:08 +0000 (21:23 -0600)]
starting experimentation with Result type

2 years agobugfix; added 'return #from_enclosing'
Brendan Hansen [Sun, 26 Feb 2023 03:22:03 +0000 (21:22 -0600)]
bugfix; added 'return #from_enclosing'

2 years agobugfix: polymorphic argument default values did not work
Brendan Hansen [Fri, 24 Feb 2023 05:27:45 +0000 (23:27 -0600)]
bugfix: polymorphic argument default values did not work

2 years agocleanup: removed all notion of 'notes' deprecated feature
Brendan Hansen [Fri, 24 Feb 2023 05:05:15 +0000 (23:05 -0600)]
cleanup: removed all notion of 'notes' deprecated feature

2 years agocompletely revamped logging to a file
Brendan Hansen [Wed, 22 Feb 2023 21:43:06 +0000 (15:43 -0600)]
completely revamped logging to a file

2 years agovscode: updated syntax defintion for better outline and sticky scroll
Brendan Hansen [Wed, 22 Feb 2023 17:58:09 +0000 (11:58 -0600)]
vscode: updated syntax defintion for better outline and sticky scroll

2 years agoonyx-pkg: added generating a single file to load
Brendan Hansen [Wed, 22 Feb 2023 01:44:40 +0000 (19:44 -0600)]
onyx-pkg: added generating a single file to load

2 years agobugfix with overflowing integers
Brendan Hansen [Tue, 21 Feb 2023 17:37:28 +0000 (11:37 -0600)]
bugfix with overflowing integers

2 years agobugfix with large switch statements and spelling fix
Brendan Hansen [Sat, 18 Feb 2023 04:38:50 +0000 (22:38 -0600)]
bugfix with large switch statements and spelling fix

2 years agostarting to update examples
Brendan Hansen [Fri, 17 Feb 2023 18:11:03 +0000 (12:11 -0600)]
starting to update examples

2 years agobugfixes and spelling fixes
Brendan Hansen [Thu, 16 Feb 2023 14:31:04 +0000 (08:31 -0600)]
bugfixes and spelling fixes

2 years agomore standard library documentation
Brendan Hansen [Tue, 14 Feb 2023 03:58:55 +0000 (21:58 -0600)]
more standard library documentation

2 years agodocumented sync library
Brendan Hansen [Mon, 13 Feb 2023 21:49:54 +0000 (15:49 -0600)]
documented sync library

2 years agorefactored and documented random.onyx
Brendan Hansen [Mon, 13 Feb 2023 18:42:50 +0000 (12:42 -0600)]
refactored and documented random.onyx

2 years agodocumented more of the standard library
Brendan Hansen [Mon, 13 Feb 2023 17:31:58 +0000 (11:31 -0600)]
documented more of the standard library

2 years agodocumented conv, base64, and ini; cleanup to format and parse
Brendan Hansen [Mon, 13 Feb 2023 04:24:46 +0000 (22:24 -0600)]
documented conv, base64, and ini; cleanup to format and parse

2 years agobugfixes and improvements to reader.lines
Brendan Hansen [Mon, 13 Feb 2023 03:23:12 +0000 (21:23 -0600)]
bugfixes and improvements to reader.lines

2 years agodocumentation in CSV library
Brendan Hansen [Mon, 13 Feb 2023 03:10:45 +0000 (21:10 -0600)]
documentation in CSV library

2 years agodocumented allocators uses
Brendan Hansen [Sun, 12 Feb 2023 22:37:57 +0000 (16:37 -0600)]
documented allocators uses

2 years agocleaned up more of builtin.onyx
Brendan Hansen [Sun, 12 Feb 2023 22:27:21 +0000 (16:27 -0600)]
cleaned up more of builtin.onyx

2 years agofinished documenting the builtin.onyx file
Brendan Hansen [Sun, 12 Feb 2023 22:12:33 +0000 (16:12 -0600)]
finished documenting the builtin.onyx file

2 years agobetter support for memory_grow and memory_size in OVM
Brendan Hansen [Sun, 12 Feb 2023 02:09:28 +0000 (20:09 -0600)]
better support for memory_grow and memory_size in OVM

2 years agomore symbol information for struct fields
Brendan Hansen [Sat, 11 Feb 2023 22:59:52 +0000 (16:59 -0600)]
more symbol information for struct fields