Commit Graph

132 Commits

Author SHA1 Message Date
c4479e4bd6 Add Int:onward() iterator 2025-02-13 15:21:00 -05:00
5be9559046 Deprecate Range datatype in favor of using iterator methods 2025-02-13 15:03:22 -05:00
04dddda811 Add missing files 2025-02-10 19:04:30 -05:00
362146e295 Bugfix and minor perf improvements for text concatenation with unstable
clustering
2025-02-07 20:06:00 -05:00
58af4226f8 Hide '_.' from stack backtrace 2025-02-04 14:18:29 -05:00
50edc4097a Add {word} as an alias for {id} 2025-02-04 13:44:38 -05:00
74b1265d2a Text struct field reordering 2025-01-29 14:27:10 -05:00
f93dde1449 Overhaul of Text implementation to be more like Cords and have much
better performance for long sequences of repeated concatenation.
2025-01-23 15:33:56 -05:00
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
be384c0caa Replace threads with generic mutexed datastructures. 2025-01-02 16:24:07 -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
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
9e0017e86e Add Int:factorial() and n:choose(k) 2024-12-24 14:20:16 -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
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
b0faa5adc2 Add Text:from()/to() and Array:slice() for symmetry 2024-12-19 13:50:35 -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
10a0a16686 Tweaks to RNG code 2024-12-12 14:01:58 -05:00
cac894d39f Fixes for integer logic around big/small ints 2024-12-11 13:36:52 -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
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
3a5815d4bd Improvements and fixes for assigning to table keys 2024-12-06 15:18:25 -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
5b661403e1 Support single-argument enums 2024-11-30 17:43:02 -05:00
eedfe7ca95 Support parsing enums as arguments as long as they have no members 2024-11-30 17:32:07 -05:00
07dd1894b7 Bugfixes for moments mixing up microseconds/nanoseconds, plus adding
accessor fields for them
2024-11-30 17:25:36 -05:00
fed63d8ea1 Tweak to how 'Type' appears as a type 2024-11-29 20:04:44 -05:00
bb57aeb744 Fix Type:as_text() 2024-11-29 20:03:20 -05:00
e5e9c8b46c Make Int serialization more compact 2024-11-29 19:32:47 -05:00
725bc9809f Bugfix for enum tags 2024-11-29 18:45:44 -05:00
f66f8ad711 Add serialization and deserialization 2024-11-29 18:09:12 -05:00
4b5e4cd1f2 Change how types handle metamethods 2024-11-29 12:55:14 -05:00