onyx.git
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

2 years agoimproved usability of 'core.time'; started documenting builtin.onyx
Brendan Hansen [Sat, 11 Feb 2023 04:37:58 +0000 (22:37 -0600)]
improved usability of 'core.time'; started documenting builtin.onyx

2 years agobugfixes with symbol information; sorting symbols
Brendan Hansen [Wed, 8 Feb 2023 22:03:38 +0000 (16:03 -0600)]
bugfixes with symbol information; sorting symbols

2 years agobugfix with stdio_stream not having correct flags symbol-info
Brendan Hansen [Wed, 8 Feb 2023 20:01:00 +0000 (14:01 -0600)]
bugfix with stdio_stream not having correct flags

2 years agoMerge branch 'master' into symbol-info
Brendan Hansen [Wed, 8 Feb 2023 17:39:29 +0000 (11:39 -0600)]
Merge branch 'master' into symbol-info

2 years agorenamed `#precedence` to `#order`
Brendan Hansen [Wed, 8 Feb 2023 17:39:00 +0000 (11:39 -0600)]
renamed `#precedence` to `#order`

2 years agobugfix with (*foo)->bar(); changed date format
Brendan Hansen [Wed, 8 Feb 2023 03:57:05 +0000 (21:57 -0600)]
bugfix with (*foo)->bar(); changed date format

2 years agorenamed core.hash.to_u32 to core.hash.hash
Brendan Hansen [Tue, 7 Feb 2023 21:14:27 +0000 (15:14 -0600)]
renamed core.hash.to_u32 to core.hash.hash

2 years agoremoved old `core.string.reader`
Brendan Hansen [Tue, 7 Feb 2023 20:02:45 +0000 (14:02 -0600)]
removed old `core.string.reader`

2 years agodocumented core.map
Brendan Hansen [Tue, 7 Feb 2023 15:14:42 +0000 (09:14 -0600)]
documented core.map

2 years agomore bugfixes in core.iter
Brendan Hansen [Tue, 7 Feb 2023 04:05:35 +0000 (22:05 -0600)]
more bugfixes in core.iter

2 years agobugfix with iter.enumerate
Brendan Hansen [Tue, 7 Feb 2023 03:54:51 +0000 (21:54 -0600)]
bugfix with iter.enumerate

2 years agore-wrote much of core.iter to be cleaner
Brendan Hansen [Tue, 7 Feb 2023 02:52:43 +0000 (20:52 -0600)]
re-wrote much of core.iter to be cleaner

2 years agofinalized bugfix with recursive structures
Brendan Hansen [Sun, 5 Feb 2023 20:14:00 +0000 (14:14 -0600)]
finalized bugfix with recursive structures

2 years agostill working on the bugfix
Brendan Hansen [Sun, 5 Feb 2023 05:15:45 +0000 (23:15 -0600)]
still working on the bugfix

2 years agotrying to fix a weird bug
Brendan Hansen [Sun, 5 Feb 2023 05:02:34 +0000 (23:02 -0600)]
trying to fix a weird bug

2 years agobugfix? and added docs
Brendan Hansen [Sat, 4 Feb 2023 22:17:23 +0000 (16:17 -0600)]
bugfix? and added docs

2 years agocleaned up docs folder; bugfix with onyx-pkg
Brendan Hansen [Fri, 3 Feb 2023 22:56:06 +0000 (16:56 -0600)]
cleaned up docs folder; bugfix with onyx-pkg

2 years agosmall additions and cleanup in core libraries
Brendan Hansen [Fri, 3 Feb 2023 15:44:04 +0000 (09:44 -0600)]
small additions and cleanup in core libraries

2 years agosplit 'ReadPending' into 'ReadPending' and 'ReadLater'
Brendan Hansen [Wed, 1 Feb 2023 17:12:53 +0000 (11:12 -0600)]
split 'ReadPending' into 'ReadPending' and 'ReadLater'

2 years agoadded `#this_package`; cleaned up code with new feature
Brendan Hansen [Tue, 31 Jan 2023 21:13:10 +0000 (15:13 -0600)]
added `#this_package`; cleaned up code with new feature

2 years agoadding document explaining symbol file
Brendan Hansen [Mon, 23 Jan 2023 17:19:18 +0000 (11:19 -0600)]
adding document explaining symbol file

2 years agoalmost working implementation
Brendan Hansen [Mon, 23 Jan 2023 17:17:47 +0000 (11:17 -0600)]
almost working implementation

2 years agoworking vscode lsp; added Optional
Brendan Hansen [Mon, 23 Jan 2023 17:16:50 +0000 (11:16 -0600)]
working vscode lsp; added Optional

2 years agoadded __implicit_bool_cast
Brendan Hansen [Wed, 18 Jan 2023 19:20:33 +0000 (13:20 -0600)]
added __implicit_bool_cast

Allows users to customize how user-defined values become bools

2 years agobugfix with new threads stack being created incorrectly struct-asm-rewrite
Brendan Hansen [Tue, 17 Jan 2023 02:24:49 +0000 (20:24 -0600)]
bugfix with new threads stack being created incorrectly

2 years agostructures that wrap a basic type are treated differently
Brendan Hansen [Mon, 16 Jan 2023 19:08:08 +0000 (13:08 -0600)]
structures that wrap a basic type are treated differently

2 years agosimplied idea of type_is_compound
Brendan Hansen [Thu, 12 Jan 2023 21:24:53 +0000 (15:24 -0600)]
simplied idea of type_is_compound

2 years agocode cleanup with parameter passing types
Brendan Hansen [Thu, 12 Jan 2023 20:22:28 +0000 (14:22 -0600)]
code cleanup with parameter passing types

2 years agomemmove is faster than I thought?
Brendan Hansen [Thu, 12 Jan 2023 12:59:17 +0000 (06:59 -0600)]
memmove is faster than I thought?

2 years agocode cleanup; important optimizations for struct literals
Brendan Hansen [Thu, 12 Jan 2023 00:27:14 +0000 (18:27 -0600)]
code cleanup; important optimizations for struct literals

2 years agomade the copy instruction much faster
Brendan Hansen [Wed, 11 Jan 2023 21:24:40 +0000 (15:24 -0600)]
made the copy instruction much faster

2 years agorefactored return value storing for edge cases
Brendan Hansen [Wed, 11 Jan 2023 20:53:31 +0000 (14:53 -0600)]
refactored return value storing for edge cases

2 years agocode cleanup and devious bug fixes
Brendan Hansen [Wed, 11 Jan 2023 20:09:22 +0000 (14:09 -0600)]
code cleanup and devious bug fixes

2 years agoall test cases passing!
Brendan Hansen [Tue, 10 Jan 2023 21:27:18 +0000 (15:27 -0600)]
all test cases passing!

2 years agoonly 4 failing test cases now
Brendan Hansen [Tue, 10 Jan 2023 20:56:57 +0000 (14:56 -0600)]
only 4 failing test cases now

2 years agoMerge branch 'master' into struct-asm-rewrite
Brendan Hansen [Tue, 10 Jan 2023 17:21:32 +0000 (11:21 -0600)]
Merge branch 'master' into struct-asm-rewrite

2 years agotiny bugfix, but crucial change
Brendan Hansen [Tue, 10 Jan 2023 15:01:55 +0000 (09:01 -0600)]
tiny bugfix, but crucial change

2 years agoremoved old ast node name
Brendan Hansen [Tue, 10 Jan 2023 14:14:50 +0000 (08:14 -0600)]
removed old ast node name

2 years agomost things are compiling now, just incorrectly...
Brendan Hansen [Tue, 10 Jan 2023 03:14:25 +0000 (21:14 -0600)]
most things are compiling now, just incorrectly...

2 years agomore progress
Brendan Hansen [Tue, 10 Jan 2023 02:21:58 +0000 (20:21 -0600)]
more progress

2 years agohello world working now; other random failures
Brendan Hansen [Mon, 9 Jan 2023 20:32:22 +0000 (14:32 -0600)]
hello world working now; other random failures

2 years agoprogress, but not working yet
Brendan Hansen [Mon, 9 Jan 2023 18:26:17 +0000 (12:26 -0600)]
progress, but not working yet

2 years agoadded document explaining issues
Brendan Hansen [Mon, 9 Jan 2023 01:57:39 +0000 (19:57 -0600)]
added document explaining issues

2 years agomarked where code would have to be changed to make this change work
Brendan Hansen [Mon, 9 Jan 2023 01:45:07 +0000 (19:45 -0600)]
marked where code would have to be changed to make this change work

2 years agocleanup garbage symbols in debug info
Brendan Hansen [Mon, 9 Jan 2023 01:12:40 +0000 (19:12 -0600)]
cleanup garbage symbols in debug info

2 years agoadded experimental ability of ignoring some return values
Brendan Hansen [Sun, 8 Jan 2023 05:32:21 +0000 (23:32 -0600)]
added experimental ability of ignoring some return values

2 years agorenamed iter.as_iterator to iter.as_iter
Brendan Hansen [Sat, 7 Jan 2023 00:02:33 +0000 (18:02 -0600)]
renamed iter.as_iterator to iter.as_iter

2 years agoadded ini parser
Brendan Hansen [Fri, 6 Jan 2023 02:41:21 +0000 (20:41 -0600)]
added ini parser

added ability to enable non-blocking standard input

added special flag to io.Reader

2 years agofixed #47
Brendan Hansen [Thu, 5 Jan 2023 02:24:56 +0000 (20:24 -0600)]
fixed #47

2 years agoadded small optimizations to OVM codegen
Brendan Hansen [Thu, 5 Jan 2023 02:24:39 +0000 (20:24 -0600)]
added small optimizations to OVM codegen

2 years agofixes with disassembly view
Brendan Hansen [Wed, 4 Jan 2023 03:29:28 +0000 (21:29 -0600)]
fixes with disassembly view

2 years agoadded disassembly view debug command
Brendan Hansen [Tue, 3 Jan 2023 17:29:26 +0000 (11:29 -0600)]
added disassembly view debug command

2 years agostarting work on disassembling OVM code
Brendan Hansen [Tue, 3 Jan 2023 04:44:22 +0000 (22:44 -0600)]
starting work on disassembling OVM code