onyx.git
4 years agomaking, finding and fixing bugs
Brendan Hansen [Tue, 23 Feb 2021 16:23:44 +0000 (10:23 -0600)]
making, finding and fixing bugs

4 years agoimproved some error messages
Brendan Hansen [Mon, 22 Feb 2021 22:38:00 +0000 (16:38 -0600)]
improved some error messages

4 years agoadded anonymous array literals and uncovered bugs
Brendan Hansen [Mon, 22 Feb 2021 22:15:43 +0000 (16:15 -0600)]
added anonymous array literals and uncovered bugs

4 years agoadded anonymous struct literals
Brendan Hansen [Mon, 22 Feb 2021 21:57:04 +0000 (15:57 -0600)]
added anonymous struct literals

4 years agofixed return bug
Brendan Hansen [Mon, 22 Feb 2021 00:00:23 +0000 (18:00 -0600)]
fixed return bug

4 years agobugfix with assigning to struct parameters
Brendan Hansen [Sun, 21 Feb 2021 22:37:13 +0000 (16:37 -0600)]
bugfix with assigning to struct parameters

4 years agoupdated string_stream_test
Brendan Hansen [Thu, 18 Feb 2021 20:26:20 +0000 (14:26 -0600)]
updated string_stream_test

4 years agoadded some functionality to reading streams
Brendan Hansen [Thu, 18 Feb 2021 20:24:00 +0000 (14:24 -0600)]
added some functionality to reading streams

4 years agosmall changes in core libraries
Brendan Hansen [Thu, 18 Feb 2021 13:13:21 +0000 (07:13 -0600)]
small changes in core libraries

4 years agoMerge remote-tracking branch 'origin/master'
Brendan Hansen [Wed, 17 Feb 2021 16:21:03 +0000 (10:21 -0600)]
Merge remote-tracking branch 'origin/master'

4 years agoadded 'new' and 'math.clamp'
Brendan Hansen [Wed, 17 Feb 2021 16:20:51 +0000 (10:20 -0600)]
added 'new' and 'math.clamp'

4 years agosmall cleanup and better CLI documentation
Brendan Hansen [Tue, 16 Feb 2021 19:47:07 +0000 (13:47 -0600)]
small cleanup and better CLI documentation

4 years agosmall cleanup and bugfix with code generation
Brendan Hansen [Tue, 16 Feb 2021 14:44:36 +0000 (08:44 -0600)]
small cleanup and bugfix with code generation

4 years agoabstracted pointer operations in WASM generation
Brendan Hansen [Mon, 15 Feb 2021 22:49:54 +0000 (16:49 -0600)]
abstracted pointer operations in WASM generation

4 years agosmall changes and cleanups
Brendan Hansen [Mon, 15 Feb 2021 05:00:00 +0000 (23:00 -0600)]
small changes and cleanups

4 years agoadded runtime configuration at compile-time; removed redundant files
Brendan Hansen [Tue, 9 Feb 2021 21:34:18 +0000 (15:34 -0600)]
added runtime configuration at compile-time; removed redundant files

4 years agomade #solidify more resilient by adding per entity type retries
Brendan Hansen [Tue, 9 Feb 2021 14:03:43 +0000 (08:03 -0600)]
made #solidify more resilient by adding per entity type retries

4 years agoworking on build_opts variables
Brendan Hansen [Tue, 9 Feb 2021 04:24:51 +0000 (22:24 -0600)]
working on build_opts variables

4 years agostarting to think about build options
Brendan Hansen [Tue, 9 Feb 2021 03:36:37 +0000 (21:36 -0600)]
starting to think about build options

4 years agoadded ability to cause static errors with '#error'
Brendan Hansen [Tue, 9 Feb 2021 03:05:56 +0000 (21:05 -0600)]
added ability to cause static errors with '#error'

4 years agoadded 'else' clause to static if statements
Brendan Hansen [Mon, 8 Feb 2021 15:07:55 +0000 (09:07 -0600)]
added 'else' clause to static if statements

4 years agocode clean up; made 'use package' in procedures be an entity
Brendan Hansen [Mon, 8 Feb 2021 14:50:34 +0000 (08:50 -0600)]
code clean up; made 'use package' in procedures be an entity

4 years agostatic ifs are very powerful now
Brendan Hansen [Sun, 7 Feb 2021 13:56:11 +0000 (07:56 -0600)]
static ifs are very powerful now

4 years agoadded basic cycle detection and breaking
Brendan Hansen [Sat, 6 Feb 2021 21:51:45 +0000 (15:51 -0600)]
added basic cycle detection and breaking

4 years agostatic if are kinda powerful now, with some exceptions
Brendan Hansen [Sat, 6 Feb 2021 20:43:12 +0000 (14:43 -0600)]
static if are kinda powerful now, with some exceptions

4 years agocleaned up symbol resolution in types and other bugs
Brendan Hansen [Sat, 6 Feb 2021 19:30:01 +0000 (13:30 -0600)]
cleaned up symbol resolution in types and other bugs

4 years agoadded the basic of static if statements; complex cases are broken
Brendan Hansen [Sat, 6 Feb 2021 17:55:11 +0000 (11:55 -0600)]
added the basic of static if statements; complex cases are broken

4 years agorefactored entities to be allocated to an arena
Brendan Hansen [Sat, 6 Feb 2021 03:59:58 +0000 (21:59 -0600)]
refactored entities to be allocated to an arena

4 years agoadded a struct test case
Brendan Hansen [Fri, 5 Feb 2021 23:24:16 +0000 (17:24 -0600)]
added a struct test case

4 years agoconverted symbol introducing to be an entity, instead of in the parser
Brendan Hansen [Fri, 5 Feb 2021 22:12:38 +0000 (16:12 -0600)]
converted symbol introducing to be an entity, instead of in the parser

4 years agomade method call syntax more useful
Brendan Hansen [Fri, 5 Feb 2021 19:44:09 +0000 (13:44 -0600)]
made method call syntax more useful

4 years agomore robust symbol resolution with nested structs
Brendan Hansen [Fri, 5 Feb 2021 15:26:44 +0000 (09:26 -0600)]
more robust symbol resolution with nested structs

4 years agotiny and insignificant changes
Brendan Hansen [Fri, 5 Feb 2021 04:18:24 +0000 (22:18 -0600)]
tiny and insignificant changes

4 years agobulked up core math library
Brendan Hansen [Thu, 4 Feb 2021 20:21:01 +0000 (14:21 -0600)]
bulked up core math library

4 years agosplit apart wasm generation file
Brendan Hansen [Thu, 4 Feb 2021 16:43:00 +0000 (10:43 -0600)]
split apart wasm generation file

4 years agoadded alternative implementation for memory copy/fill for unsupporting WASM engines
Brendan Hansen [Thu, 4 Feb 2021 00:25:43 +0000 (18:25 -0600)]
added alternative implementation for memory copy/fill for unsupporting WASM engines

4 years agoadded bulk-memory intrinsics; bug fix
Brendan Hansen [Wed, 3 Feb 2021 21:20:52 +0000 (15:20 -0600)]
added bulk-memory intrinsics; bug fix

4 years agosmall bug fix; fixed timing on windows
Brendan Hansen [Wed, 3 Feb 2021 19:48:30 +0000 (13:48 -0600)]
small bug fix; fixed timing on windows

4 years agosame parser clean up using next_tokens_are
Brendan Hansen [Wed, 3 Feb 2021 04:30:02 +0000 (22:30 -0600)]
same parser clean up using next_tokens_are

4 years agoadded compound declarations for struct members
Brendan Hansen [Wed, 3 Feb 2021 04:26:27 +0000 (22:26 -0600)]
added compound declarations for struct members

4 years agoadded a unique identifier to scopes to uniquely identify them
Brendan Hansen [Tue, 2 Feb 2021 21:13:23 +0000 (15:13 -0600)]
added a unique identifier to scopes to uniquely identify them

4 years agoadded experimental 'method call' syntax
Brendan Hansen [Tue, 2 Feb 2021 20:28:03 +0000 (14:28 -0600)]
added experimental 'method call' syntax

4 years agomore random cleanups
Brendan Hansen [Mon, 1 Feb 2021 19:52:58 +0000 (13:52 -0600)]
more random cleanups

4 years agomore general cleanup
Brendan Hansen [Mon, 1 Feb 2021 06:17:16 +0000 (00:17 -0600)]
more general cleanup

4 years agoremoved parse results concept; directly adding entities now
Brendan Hansen [Mon, 1 Feb 2021 05:52:55 +0000 (23:52 -0600)]
removed parse results concept; directly adding entities now

4 years agoeven more cleanup in the parser
Brendan Hansen [Mon, 1 Feb 2021 05:26:48 +0000 (23:26 -0600)]
even more cleanup in the parser

4 years agomore cleanup in the parser
Brendan Hansen [Mon, 1 Feb 2021 03:03:33 +0000 (21:03 -0600)]
more cleanup in the parser

4 years agoremoved 'proc' keyword from core libraries and examples
Brendan Hansen [Mon, 1 Feb 2021 00:26:11 +0000 (18:26 -0600)]
removed 'proc' keyword from core libraries and examples

4 years agoparser cleanup and bugfixes
Brendan Hansen [Sun, 31 Jan 2021 23:48:42 +0000 (17:48 -0600)]
parser cleanup and bugfixes

4 years agogeneral clean up in parser
Brendan Hansen [Sat, 30 Jan 2021 21:47:40 +0000 (15:47 -0600)]
general clean up in parser

4 years agotop level bindings in struct scopes are even more useful
Brendan Hansen [Sat, 30 Jan 2021 00:26:30 +0000 (18:26 -0600)]
top level bindings in struct scopes are even more useful

4 years agopolymorphic struct types can have members accessed
Brendan Hansen [Fri, 29 Jan 2021 17:53:19 +0000 (11:53 -0600)]
polymorphic struct types can have members accessed

4 years agosmall bugfix that makes inferred struct member types more useful
Brendan Hansen [Fri, 29 Jan 2021 16:47:19 +0000 (10:47 -0600)]
small bugfix that makes inferred struct member types more useful

4 years agomore robust static struct bindings; zero size struct bug fix
Brendan Hansen [Fri, 29 Jan 2021 15:30:04 +0000 (09:30 -0600)]
more robust static struct bindings; zero size struct bug fix

4 years agostructures can have statically bound expressions in their scope
Brendan Hansen [Fri, 29 Jan 2021 15:19:37 +0000 (09:19 -0600)]
structures can have statically bound expressions in their scope

4 years agodeleted some crap out of small_windows.h
Brendan Hansen [Thu, 28 Jan 2021 22:25:00 +0000 (16:25 -0600)]
deleted some crap out of small_windows.h

4 years agoallow for using members of polymorphic struct instantiations
Brendan Hansen [Thu, 28 Jan 2021 19:01:52 +0000 (13:01 -0600)]
allow for using members of polymorphic struct instantiations

4 years agomade binary reading/writing faster
Brendan Hansen [Thu, 28 Jan 2021 17:02:42 +0000 (11:02 -0600)]
made binary reading/writing faster

4 years agovarious little changes
Brendan Hansen [Wed, 27 Jan 2021 16:15:15 +0000 (10:15 -0600)]
various little changes

4 years agoflagged everywhere 32-bit pointers are assumed
Brendan Hansen [Mon, 25 Jan 2021 17:47:30 +0000 (11:47 -0600)]
flagged everywhere 32-bit pointers are assumed

4 years agotiny simplification
Brendan Hansen [Mon, 25 Jan 2021 15:50:46 +0000 (09:50 -0600)]
tiny simplification

4 years agobug fix that crashed RemedyDB when debugging
Brendan Hansen [Mon, 25 Jan 2021 14:39:12 +0000 (08:39 -0600)]
bug fix that crashed RemedyDB when debugging
probably due to stack overload and corrupting the stack frames.

4 years agocleaned up compound loading to use struct load logic
Brendan Hansen [Mon, 25 Jan 2021 14:21:30 +0000 (08:21 -0600)]
cleaned up compound loading to use struct load logic

4 years agocleaned up compound storing to use struct store logic
Brendan Hansen [Mon, 25 Jan 2021 14:04:16 +0000 (08:04 -0600)]
cleaned up compound storing to use struct store logic

4 years agocleaned up assignment emission
Brendan Hansen [Mon, 25 Jan 2021 13:56:28 +0000 (07:56 -0600)]
cleaned up assignment emission

4 years agocleaned up storing of compound / simple types
Brendan Hansen [Mon, 25 Jan 2021 04:19:58 +0000 (22:19 -0600)]
cleaned up storing of compound / simple types

4 years agocleaned up struct storing
Brendan Hansen [Mon, 25 Jan 2021 03:51:05 +0000 (21:51 -0600)]
cleaned up struct storing

4 years agocleaned up range for loop generation
Brendan Hansen [Sun, 24 Jan 2021 21:07:56 +0000 (15:07 -0600)]
cleaned up range for loop generation

4 years agocleaned up wasm block generation
Brendan Hansen [Sun, 24 Jan 2021 20:46:11 +0000 (14:46 -0600)]
cleaned up wasm block generation

4 years agocleaned up global_wasm_module
Brendan Hansen [Sun, 24 Jan 2021 20:14:32 +0000 (14:14 -0600)]
cleaned up global_wasm_module

4 years agomade explicit types on defaulted struct members optional
Brendan Hansen [Sun, 24 Jan 2021 17:32:44 +0000 (11:32 -0600)]
made explicit types on defaulted struct members optional
there are bugs if you 'use' a structure with this though.

4 years agosmall bugfixes with error message production
Brendan Hansen [Sun, 24 Jan 2021 05:56:07 +0000 (23:56 -0600)]
small bugfixes with error message production

4 years agoallow for 'sizeof' in array size; simplified binary reader
Brendan Hansen [Sat, 23 Jan 2021 16:32:48 +0000 (10:32 -0600)]
allow for 'sizeof' in array size; simplified binary reader

4 years agoAdded binary stream reader and writer
Brendan Hansen [Fri, 22 Jan 2021 22:07:22 +0000 (16:07 -0600)]
Added binary stream reader and writer

4 years agomade the 'proc' keyword optional in procedure types
Brendan Hansen [Fri, 22 Jan 2021 15:46:16 +0000 (09:46 -0600)]
made the 'proc' keyword optional in procedure types

4 years agobetter floating point printing
Brendan Hansen [Fri, 22 Jan 2021 04:29:42 +0000 (22:29 -0600)]
better floating point printing

4 years agoimprovements to WASI files; '--print-function-mappings' flag
Brendan Hansen [Thu, 21 Jan 2021 19:45:10 +0000 (13:45 -0600)]
improvements to WASI files; '--print-function-mappings' flag

4 years agoadded logging allocator; `proc` is even more optional
Brendan Hansen [Thu, 21 Jan 2021 14:17:06 +0000 (08:17 -0600)]
added logging allocator; `proc` is even more optional

4 years agofor loops can iterate over integers as a shorthand for starting from 0
Brendan Hansen [Thu, 21 Jan 2021 04:40:21 +0000 (22:40 -0600)]
for loops can iterate over integers as a shorthand for starting from 0

4 years agobetter fix for sublime syntax
Brendan Hansen [Thu, 21 Jan 2021 02:16:00 +0000 (20:16 -0600)]
better fix for sublime syntax

4 years agoupdated sublime syntax for optional proc keyword
Brendan Hansen [Thu, 21 Jan 2021 02:02:49 +0000 (20:02 -0600)]
updated sublime syntax for optional proc keyword

4 years agorealized tokens should not be arena allocated because they need to be in linear memory
Brendan Hansen [Thu, 21 Jan 2021 01:41:44 +0000 (19:41 -0600)]
realized tokens should not be arena allocated because they need to be in linear memory

4 years agofixed math.pow with negatives causing infinite loops
Brendan Hansen [Thu, 21 Jan 2021 01:19:58 +0000 (19:19 -0600)]
fixed math.pow with negatives causing infinite loops

4 years agomade 'proc' keyword optional in certain cases; bug fixes
Brendan Hansen [Thu, 21 Jan 2021 00:56:15 +0000 (18:56 -0600)]
made 'proc' keyword optional in certain cases; bug fixes

4 years agohopefully fixed bug with github actions printing lots of crap
Brendan Hansen [Wed, 20 Jan 2021 20:27:07 +0000 (14:27 -0600)]
hopefully fixed bug with github actions printing lots of crap

4 years agomajor code cleanup; removed old structures that didn't need to exist.
Brendan Hansen [Wed, 20 Jan 2021 19:57:02 +0000 (13:57 -0600)]
major code cleanup; removed old structures that didn't need to exist.
Everything is now part of a global "Context" that everything has access to.

4 years agofixed a small alignment issue that could have been impacting performance
Brendan Hansen [Tue, 19 Jan 2021 22:22:16 +0000 (16:22 -0600)]
fixed a small alignment issue that could have been impacting performance

4 years agoupdating documentation
Brendan Hansen [Tue, 19 Jan 2021 14:53:18 +0000 (08:53 -0600)]
updating documentation

4 years agochanged sublime text highlighting to make polymorphic vars more visible
Brendan Hansen [Tue, 19 Jan 2021 03:12:54 +0000 (21:12 -0600)]
changed sublime text highlighting to make polymorphic vars more visible

4 years agobug fix with solidify directives
Brendan Hansen [Tue, 19 Jan 2021 02:58:35 +0000 (20:58 -0600)]
bug fix with solidify directives

4 years agocode cleanup and documenting polymorphism
Brendan Hansen [Mon, 18 Jan 2021 23:44:17 +0000 (17:44 -0600)]
code cleanup and documenting polymorphism

4 years agosmall cleanup of the new compile-time parameters
Brendan Hansen [Mon, 18 Jan 2021 01:55:38 +0000 (19:55 -0600)]
small cleanup of the new compile-time parameters

4 years agoadd little bit more safety when using types in expressions
Brendan Hansen [Sat, 16 Jan 2021 19:29:24 +0000 (13:29 -0600)]
add little bit more safety when using types in expressions

4 years agobetter and safer error reporting when using type expression in normal expressions
Brendan Hansen [Sat, 16 Jan 2021 19:23:52 +0000 (13:23 -0600)]
better and safer error reporting when using type expression in normal expressions

4 years agovery hacky implementation of baked compile-time procedures
Brendan Hansen [Sat, 16 Jan 2021 18:52:52 +0000 (12:52 -0600)]
very hacky implementation of baked compile-time procedures

4 years agobetter error reporting for polymorphic procedures
Brendan Hansen [Sat, 16 Jan 2021 17:15:08 +0000 (11:15 -0600)]
better error reporting for polymorphic procedures

4 years agoadded more examples
Brendan Hansen [Sat, 16 Jan 2021 02:15:38 +0000 (20:15 -0600)]
added more examples

4 years agobug fixes with making pointers 8 bytes in size on WASI
Brendan Hansen [Fri, 15 Jan 2021 21:11:53 +0000 (15:11 -0600)]
bug fixes with making pointers 8 bytes in size on WASI

4 years agomade pointers 8 bytes in size; easier transition to WASM64 or C backend
Brendan Hansen [Fri, 15 Jan 2021 19:04:13 +0000 (13:04 -0600)]
made pointers 8 bytes in size; easier transition to WASM64 or C backend

4 years agorandom bits of code cleanup
Brendan Hansen [Fri, 15 Jan 2021 16:24:18 +0000 (10:24 -0600)]
random bits of code cleanup