Commit Graph

1525 Commits

Author SHA1 Message Date
38b3b7b181 Add lang test for indexing 2024-12-26 17:32:10 -05:00
acd3f2d39e Add text indexing 2024-12-26 17:31:33 -05:00
32cbf7b7c8 Bugfix for text hashing 2024-12-26 17:15:52 -05:00
59b31083a6 Change table hashing and comparison logic to be *unordered*, but still
O(N)
2024-12-26 16:52:47 -05:00
695049bef9 Add integer tests 2024-12-24 14:20:55 -05:00
9e0017e86e Add Int:factorial() and n:choose(k) 2024-12-24 14:20:16 -05:00
f4b105456a Bugfix for ternary expressions 2024-12-24 14:15:10 -05:00
add1da2a96 Fix for table default values 2024-12-24 13:49:47 -05:00
df1b36cc27 Fix issue with cross promotion for tables with default values 2024-12-22 16:37:09 -05:00
dcab9eb748 Tweak array resizing policy 2024-12-22 16:22:39 -05:00
a9fe674446 Fix for resizing 2024-12-22 16:09:55 -05:00
5df498fc20 Tweak bucket resize cap 2024-12-22 16:08:20 -05:00
6f1ed65de9 Tweak table resizing policy 2024-12-22 16:07:43 -05:00
3dd7854076 Add optimized metamethods for enums and structs that hold packed data 2024-12-22 15:53:26 -05:00
cdda494fe5 Revert hash thing 2024-12-22 15:32:57 -05:00
2a12cb869b Bugfixes for table updates and array concat updates 2024-12-22 15:31:58 -05:00
46b61d3ed2 Add text:by_line()/:by_split()/:by_match() 2024-12-21 16:32:22 -05:00
325b367a13 Support logical binary operators on optionals (promote to booleans) 2024-12-21 15:13:26 -05:00
478ddad9aa Add Text:reversed() 2024-12-19 15:32:19 -05:00
221f4ad7ea Default RNG now uses static, thread-local memory instead of heap
allocated
2024-12-19 15:16:33 -05:00
88d1bde371 RNG needs to not be thread-local to make GC happy 2024-12-19 15:11:54 -05:00
ef546696e8 Tweak command line args to support -q and update docs 2024-12-19 15:02:39 -05:00
b0faa5adc2 Add Text:from()/to() and Array:slice() for symmetry 2024-12-19 13:50:35 -05:00
1db70d46c6 Fix cross promotion between types with/without defaults 2024-12-18 15:21:20 -05:00
1df02db239 Fix for tables with default values not doing type equality right 2024-12-18 15:10:57 -05:00
5d37a0c66b Fixes for tables with default values 2024-12-18 15:08:13 -05:00
c6c7cc7272 Revert "Deprecate "&" for stack references"
This reverts commit 41c0ea851a.
2024-12-18 14:44:37 -05:00
aa26234471 Minor cleanups and fixes to RNG, chacha, and text 2024-12-17 14:24:37 -05:00
d3eb8b8339 Have ask() return an optional text 2024-12-15 16:53:18 -05:00
0caf96cfe7 Parse negative integers 2024-12-15 16:53:07 -05:00
5c15238e2f Fix for indexing table pointers 2024-12-12 14:08:07 -05:00
10a0a16686 Tweaks to RNG code 2024-12-12 14:01:58 -05:00
c5db5fef62 Fix optional promotion issue 2024-12-12 14:01:48 -05:00
ff95aa5e64 Bugfix for max cache size 2024-12-11 13:47:00 -05:00
cac894d39f Fixes for integer logic around big/small ints 2024-12-11 13:36:52 -05:00
7e9a976fe5 Optional promotion in comparisons 2024-12-11 13:25:00 -05:00
6c5c759619 Update docs 2024-12-11 13:24:54 -05:00
1c261c33bd Respect $NO_COLOR for running programs 2024-12-08 15:18:26 -05:00
d65a0abba1 Add GCD function for integers (of all flavors) 2024-12-08 14:28:26 -05:00
841c8114a3 Fix for set binop operations 2024-12-08 13:45:01 -05:00
37f3e91f6c Rename "NONE" to "none" 2024-12-07 16:04:25 -05:00
a201939a81 Use likely()/unlikely() macros and a few bugfixes for integers 2024-12-07 15:59:37 -05:00
683b0f5141 Rename some old "null" references 2024-12-07 15:28:33 -05:00
1710b30de4 Tweak to Set operations 2024-12-07 15:10:00 -05:00
3a5815d4bd Improvements and fixes for assigning to table keys 2024-12-06 15:18:25 -05:00
ca14454bb0 Bugfix for error allowing for recursive declarations 2024-12-05 13:39:49 -05:00
17e473a98a Bugfix for text memory allocations 2024-12-04 14:18:19 -05:00
c6bcb05a4e Further bugfix for array concatenation 2024-12-02 15:21:29 -05:00
44d8d553df Bugfix for array concatenation 2024-12-02 14:49:51 -05:00
5e0f76d17f Fix edge case with nested optional 2024-12-01 13:42:08 -05:00