onyx.git
2 years agoadded: working closures for non-polymorphic functions! feature/closures
Brendan Hansen [Wed, 19 Apr 2023 16:03:30 +0000 (11:03 -0500)]
added: working closures for non-polymorphic functions!

2 years agochanged: function pointers now have a closure pointer
Brendan Hansen [Wed, 19 Apr 2023 04:25:19 +0000 (23:25 -0500)]
changed: function pointers now have a closure pointer

2 years agoadded: parsing, symres, checking of capture blocks
Brendan Hansen [Wed, 19 Apr 2023 02:13:49 +0000 (21:13 -0500)]
added: parsing, symres, checking of capture blocks

2 years agoadded: flag for if function is lambda
Brendan Hansen [Wed, 19 Apr 2023 01:38:18 +0000 (20:38 -0500)]
added: flag for if function is lambda

2 years agobugfix: `#callsite` did not work in macros
Brendan Hansen [Wed, 19 Apr 2023 01:13:44 +0000 (20:13 -0500)]
bugfix: `#callsite` did not work in macros

2 years agoadded: explicit types to `do` blocks; fixed: `read_fill_buffer`
Brendan Hansen [Tue, 18 Apr 2023 01:27:24 +0000 (20:27 -0500)]
added: explicit types to `do` blocks; fixed: `read_fill_buffer`

2 years agobugfix: nested do-blocks with indirect return statments
Brendan Hansen [Tue, 18 Apr 2023 01:08:18 +0000 (20:08 -0500)]
bugfix: nested do-blocks with indirect return statments

2 years agoadded: allocator parameter to `core.encoding.osad.deserialize`
Brendan Hansen [Mon, 17 Apr 2023 18:18:14 +0000 (13:18 -0500)]
added: allocator parameter to `core.encoding.osad.deserialize`

2 years agoadded: `--show-all-errors`; fixed: step by instruction
Brendan Hansen [Sat, 15 Apr 2023 03:31:27 +0000 (22:31 -0500)]
added: `--show-all-errors`; fixed: step by instruction

2 years agoadded: documentation for pair
Brendan Hansen [Mon, 10 Apr 2023 17:24:40 +0000 (12:24 -0500)]
added: documentation for pair

2 years agoadded: core.slice documentation
Brendan Hansen [Mon, 10 Apr 2023 16:37:30 +0000 (11:37 -0500)]
added: core.slice documentation

2 years agoadded: distinct type doc output
Brendan Hansen [Sat, 8 Apr 2023 21:24:08 +0000 (16:24 -0500)]
added: distinct type doc output

2 years agoadded: outputting constraints in odoc files
Brendan Hansen [Sat, 8 Apr 2023 18:51:24 +0000 (13:51 -0500)]
added: outputting constraints in odoc files

2 years agoadded: reinterpret intrinsics
Brendan Hansen [Sat, 8 Apr 2023 18:06:25 +0000 (13:06 -0500)]
added: reinterpret intrinsics

2 years agofixed: spelling of `iter.flat_map`
Brendan Hansen [Sat, 8 Apr 2023 04:56:26 +0000 (23:56 -0500)]
fixed: spelling of `iter.flat_map`

2 years agobugfix: scoping issue with Pair.make
Brendan Hansen [Fri, 7 Apr 2023 16:54:50 +0000 (11:54 -0500)]
bugfix: scoping issue with Pair.make

2 years agoadded: `core.encoding.json` as a stale code package
Brendan Hansen [Fri, 7 Apr 2023 16:46:44 +0000 (11:46 -0500)]
added: `core.encoding.json` as a stale code package

2 years agoMerge pull request #10 from onyx-lang/feature/allow-stale-packages
Brendan Hansen [Fri, 7 Apr 2023 16:19:29 +0000 (11:19 -0500)]
Merge pull request #10 from onyx-lang/feature/allow-stale-packages

Feature/allow stale packages

2 years agoadded: `#allow_stale_code` directive; marked uncommon packages
Brendan Hansen [Fri, 7 Apr 2023 16:03:04 +0000 (11:03 -0500)]
added: `#allow_stale_code` directive; marked uncommon packages

2 years agobugfix: removed threading in TCP server for now, due to race condition
Brendan Hansen [Fri, 7 Apr 2023 15:09:15 +0000 (10:09 -0500)]
bugfix: removed threading in TCP server for now, due to race condition

2 years agoupdated: windows build
Brendan Hansen [Thu, 6 Apr 2023 16:29:41 +0000 (11:29 -0500)]
updated: windows build

2 years agochanged: polymorphic structs can have specializations
Brendan Hansen [Wed, 5 Apr 2023 02:58:23 +0000 (21:58 -0500)]
changed: polymorphic structs can have specializations

2 years agoadded: better error messages with interface errors
Brendan Hansen [Tue, 4 Apr 2023 17:13:00 +0000 (12:13 -0500)]
added: better error messages with interface errors

2 years agobugfixes; cleanup old files
Brendan Hansen [Tue, 4 Apr 2023 03:13:11 +0000 (22:13 -0500)]
bugfixes; cleanup old files

2 years agobugfix: internal package type
Brendan Hansen [Mon, 3 Apr 2023 17:51:10 +0000 (12:51 -0500)]
bugfix: internal package type

2 years agochanged: move slice functionality to `core.slice`; retained backwards compatibility
Brendan Hansen [Mon, 3 Apr 2023 16:08:21 +0000 (11:08 -0500)]
changed: move slice functionality to `core.slice`; retained backwards compatibility

2 years agobugfix: numerous symbol related core library bugs
Brendan Hansen [Mon, 3 Apr 2023 02:44:42 +0000 (21:44 -0500)]
bugfix: numerous symbol related core library bugs

2 years agochanged: foreign directives no longer require string literals
Brendan Hansen [Sun, 2 Apr 2023 21:46:43 +0000 (16:46 -0500)]
changed: foreign directives no longer require string literals

2 years agoadded: `hash.sha256`
Brendan Hansen [Sun, 2 Apr 2023 01:20:27 +0000 (20:20 -0500)]
added: `hash.sha256`

2 years agoadded: starting work on using `dyncallback`
Brendan Hansen [Sat, 1 Apr 2023 19:51:41 +0000 (14:51 -0500)]
added: starting work on using `dyncallback`

2 years agofixed: js runtime
Brendan Hansen [Sat, 1 Apr 2023 19:32:40 +0000 (14:32 -0500)]
fixed: js runtime

2 years agoadded: `math.fmod`
Brendan Hansen [Thu, 30 Mar 2023 23:10:30 +0000 (18:10 -0500)]
added: `math.fmod`

2 years agoadded: documentation to random library
Brendan Hansen [Thu, 30 Mar 2023 20:24:58 +0000 (15:24 -0500)]
added: documentation to random library

2 years agoMerge pull request #7 from onyx-lang/docgen
Brendan Hansen [Wed, 29 Mar 2023 22:57:54 +0000 (17:57 -0500)]
Merge pull request #7 from onyx-lang/docgen

Automatic documentation generation

2 years agoadded: more documentation; bugfix: aliased type names docgen
Brendan Hansen [Wed, 29 Mar 2023 22:56:29 +0000 (17:56 -0500)]
added: more documentation; bugfix: aliased type names

2 years agoadded: `iter.flatMap`, `iter.single`
Brendan Hansen [Wed, 29 Mar 2023 15:02:43 +0000 (10:02 -0500)]
added: `iter.flatMap`, `iter.single`

2 years agoadded: structure method documentation
Brendan Hansen [Wed, 29 Mar 2023 15:02:27 +0000 (10:02 -0500)]
added: structure method documentation

2 years agodoc: `encoding.md5`; added `io.stream_read_until_full`
Brendan Hansen [Wed, 29 Mar 2023 03:21:53 +0000 (22:21 -0500)]
doc: `encoding.md5`; added `io.stream_read_until_full`

2 years agoadded: `core.hash.md5`; bugfix: `io.read_bytes` and rotation instructions
Brendan Hansen [Tue, 28 Mar 2023 20:07:28 +0000 (15:07 -0500)]
added: `core.hash.md5`; bugfix: `io.read_bytes` and rotation instructions

2 years agoMerge remote-tracking branch 'origin/dev' into docgen
Brendan Hansen [Tue, 28 Mar 2023 13:37:15 +0000 (08:37 -0500)]
Merge remote-tracking branch 'origin/dev' into docgen

2 years agobugfix: polymorphic-structs error; onyx package
Brendan Hansen [Tue, 28 Mar 2023 02:20:29 +0000 (21:20 -0500)]
bugfix: polymorphic-structs error; onyx package

2 years agobugfix: remaining bugs from `use` change
Brendan Hansen [Tue, 28 Mar 2023 01:35:45 +0000 (20:35 -0500)]
bugfix: remaining bugs from `use` change

2 years agoMerge pull request #9 from onyx-lang/feature/import-statement
Brendan Hansen [Mon, 27 Mar 2023 17:27:50 +0000 (12:27 -0500)]
Merge pull request #9 from onyx-lang/feature/import-statement

Feature - Import Statements

2 years agoremoved: old code feature/import-statement
Brendan Hansen [Mon, 27 Mar 2023 11:36:41 +0000 (06:36 -0500)]
removed: old code

2 years agoadded: qualified import of top-level package
Brendan Hansen [Mon, 27 Mar 2023 03:07:45 +0000 (22:07 -0500)]
added: qualified import of top-level package

2 years agoremoved: all references to `use package`
Brendan Hansen [Mon, 27 Mar 2023 02:20:54 +0000 (21:20 -0500)]
removed: all references to `use package`

2 years agoremoved: `#import` statement. repurposed `use` statement entirely
Brendan Hansen [Mon, 27 Mar 2023 00:05:06 +0000 (19:05 -0500)]
removed: `#import` statement. repurposed `use` statement entirely

2 years agochanged: `use` now acts like `#import`
Brendan Hansen [Sun, 26 Mar 2023 23:23:56 +0000 (18:23 -0500)]
changed: `use` now acts like `#import`

`#import` will be removed soon.

2 years agochanged: `#import X {...}` no longer makes `X` accessible
Brendan Hansen [Sat, 25 Mar 2023 19:42:35 +0000 (14:42 -0500)]
changed: `#import X {...}` no longer makes `X` accessible

2 years agoadded: `#import` functions as `use` statement
Brendan Hansen [Sat, 25 Mar 2023 19:31:17 +0000 (14:31 -0500)]
added: `#import` functions as `use` statement

2 years agoadded: `#import` at function scope; bugfix: numerous
Brendan Hansen [Sat, 25 Mar 2023 04:03:32 +0000 (23:03 -0500)]
added: `#import` at function scope; bugfix: numerous

2 years agobreaking change: top-level packages are required to be `#import`ed
Brendan Hansen [Fri, 24 Mar 2023 19:46:08 +0000 (14:46 -0500)]
breaking change: top-level packages are required to be `#import`ed

2 years agobugfix: with new multi-pointer features
Brendan Hansen [Fri, 24 Mar 2023 04:33:46 +0000 (23:33 -0500)]
bugfix: with new multi-pointer features

2 years agocleanup: fixed compiler warnings
Brendan Hansen [Fri, 24 Mar 2023 02:21:37 +0000 (21:21 -0500)]
cleanup: fixed compiler warnings

2 years agofixed: changed output onyx binary file
Brendan Hansen [Fri, 24 Mar 2023 01:59:05 +0000 (20:59 -0500)]
fixed: changed output onyx binary file

2 years agoadded: enum documentation
Brendan Hansen [Wed, 22 Mar 2023 14:18:34 +0000 (09:18 -0500)]
added: enum documentation

2 years agoadded: polymorphic structures to doc info
Brendan Hansen [Wed, 22 Mar 2023 11:31:51 +0000 (06:31 -0500)]
added: polymorphic structures to doc info

2 years agoadded: basic structure documentation
Brendan Hansen [Wed, 22 Mar 2023 03:29:16 +0000 (22:29 -0500)]
added: basic structure documentation

2 years agochanged: converted documentation to `#doc`
Brendan Hansen [Tue, 21 Mar 2023 13:58:33 +0000 (08:58 -0500)]
changed: converted documentation to `#doc`

2 years agochanged: documentation types cleanup
Brendan Hansen [Tue, 21 Mar 2023 04:16:05 +0000 (23:16 -0500)]
changed: documentation types cleanup

2 years agoadded: `#doc` sets notes on procedures
Brendan Hansen [Mon, 20 Mar 2023 21:29:43 +0000 (16:29 -0500)]
added: `#doc` sets notes on procedures

2 years agoadded: `parent` field to Doc_Package
Brendan Hansen [Mon, 20 Mar 2023 17:42:51 +0000 (12:42 -0500)]
added: `parent` field to Doc_Package

2 years agoadded: '$' in front of polymorphic variables
Brendan Hansen [Sat, 18 Mar 2023 20:02:20 +0000 (15:02 -0500)]
added: '$' in front of polymorphic variables

2 years agoadded: doc output for polyprocs/macros/overloaded procs
Brendan Hansen [Fri, 17 Mar 2023 22:58:50 +0000 (17:58 -0500)]
added: doc output for polyprocs/macros/overloaded procs

2 years agobugfix: some return types for procedures were unknown
Brendan Hansen [Fri, 17 Mar 2023 04:24:18 +0000 (23:24 -0500)]
bugfix: some return types for procedures were unknown

2 years agoadded: simple procedure documenting
Brendan Hansen [Thu, 16 Mar 2023 20:46:26 +0000 (15:46 -0500)]
added: simple procedure documenting

2 years agoadded: started outputting procedures to doc file
Brendan Hansen [Thu, 16 Mar 2023 18:13:50 +0000 (13:13 -0500)]
added: started outputting procedures to doc file

2 years agoadded: package structure output in odoc
Brendan Hansen [Thu, 16 Mar 2023 14:38:02 +0000 (09:38 -0500)]
added: package structure output in odoc

2 years agoswitching branches
Brendan Hansen [Sat, 18 Feb 2023 18:51:19 +0000 (12:51 -0600)]
switching branches

2 years agoswitching branches
Brendan Hansen [Sat, 18 Feb 2023 17:03:45 +0000 (11:03 -0600)]
switching branches

2 years agostarting work on documentation file generation
Brendan Hansen [Sat, 18 Feb 2023 04:40:33 +0000 (22:40 -0600)]
starting work on documentation file generation

2 years agoMerge pull request #6 from onyx-lang/feature/multi-pointers
Brendan Hansen [Fri, 24 Mar 2023 01:40:48 +0000 (20:40 -0500)]
Merge pull request #6 from onyx-lang/feature/multi-pointers

Feature - Multi Pointers

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