Commit Graph

1335 Commits

Author SHA1 Message Date
645d66e0de Change table syntax to {key=value} and {:K,V}/{K,V} 2025-01-12 16:49:58 -05:00
b025cf269d Use holding blocks for mutexed data instead of lambdas 2025-01-02 20:29:55 -05:00
500e4e1bd7 Fix issue for size/alignment of threads 2025-01-02 18:20:58 -05:00
1a4a7250bb Add some light docs for mutexed access 2025-01-02 16:29:21 -05:00
be384c0caa Replace threads with generic mutexed datastructures. 2025-01-02 16:24:07 -05:00
2fcf1939bb Fix for heap_pop() test in arrays 2024-12-31 16:23:16 -05:00
8df0cc41c9 Array:heap_pop() now returns an optional value 2024-12-31 15:57:13 -05:00
156d54a73e Add array:pop() 2024-12-31 15:46:53 -05:00
4b11f1b2b6 Compile with thread support 2024-12-30 15:32:08 -05:00
091f43e8ef Bugfix for lvalues that are pointers to tables/arrays 2024-12-26 18:08:30 -05:00
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