Commit Graph

160 Commits

Author SHA1 Message Date
52e3d3fe6f Update Path:read_bytes() API to take a byte count 2024-11-03 16:58:12 -05:00
7ddb2ffb02 Fix per-thread RNG 2024-11-03 16:21:40 -05:00
5e767e1c38 Make Int.random() use thread-local state 2024-11-03 16:11:05 -05:00
7ccb7a8a9b Use an RNG parameter for array:random(), array:shuffle(),
array:shuffled()
2024-11-03 16:10:03 -05:00
39a58bc129 Clean up behavior and syntax for unsigned bit shifts (<<<, >>>) 2024-11-03 16:06:26 -05:00
792743dff3 Add Int64:unsigned_left_shift() and :unsigned_right_shift() 2024-11-03 15:27:44 -05:00
87176ead2d Add wrapping plus/minus for fixed-size integers 2024-11-03 15:04:28 -05:00
985011aed8 Update header 2024-11-02 13:53:22 -04:00
be2673ef2b Make Text:find() return an optional int 2024-11-02 13:51:58 -04:00
a60e0e5e9a Remove unused args for end_test() 2024-10-31 01:30:12 -04:00
bbbfc692fc Tweak doctest output so it outputs source info 2024-10-31 01:28:58 -04:00
bdca4fc6e1 Fix header inline functions to use extern inline and some GCC magic 2024-10-30 13:59:15 -04:00
9ebb039a81 Fix up some GCC compiler flag options for LTO and inlining 2024-10-29 23:14:31 -04:00
7cd67dd7f3 Add file globbing 2024-10-29 14:36:49 -04:00
33f1af8e71 Fixes for places that used Text$find() 2024-10-27 20:45:10 -04:00
052316261a Finish deprecating stack refs with & 2024-10-27 20:35:30 -04:00
0d615443dc Update DateTime API to have separate methods for getting each component
instead of get(...)
2024-10-27 18:41:00 -04:00
f4d22958f7 Add an include 2024-10-27 12:58:37 -04:00
213ae74e32 Minor imports cleanup 2024-10-25 14:13:24 -04:00
29d1d74d7a Move unistr header out of tomo header 2024-10-25 14:05:07 -04:00
67702b2d77 Fix issue with non-ID chars in filenames 2024-10-10 01:09:17 -04:00
839c1983a0 Reduce padding needed for optional types and clean up some redundant
type padding
2024-10-08 21:10:36 -04:00
954ed42934 Simplify enum/struct codegen by using reusable general-purpose
metamethods for structs/enums instead of metamethod codegen for each struct/enum
defined.
2024-10-08 13:35:18 -04:00
8f346b48aa Fix up some compiler flags around floating point numbers so they work
better with -Ofast and have more standardized behavior
2024-10-03 14:19:23 -04:00
54e336e30f Update array:sample() to use optional weights and do more error checking 2024-10-02 14:42:51 -04:00
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -04:00
45425b77e4 Code cleanup 2024-09-30 02:03:03 -04:00
c5ff7d86b9 Bugfix DateTime.new() 2024-09-30 01:55:24 -04:00
793717729a Parameterize with timezones 2024-09-30 01:53:39 -04:00
d714519809 Fix some timezone issues 2024-09-29 23:09:37 -04:00
05515d8645 Add DateTime 2024-09-29 20:06:09 -04:00
23af8b64a3 Overhaul of argument parsing code 2024-09-28 15:17:09 -04:00
8f717fe9f4 Redefine NULL_* values as #defines so they can be constant initializers 2024-09-28 14:17:17 -04:00
794c1343ba Define some optional types 2024-09-28 02:07:37 -04:00
e63372452e Define OptionalPath_t 2024-09-28 02:06:47 -04:00
0622f758f7 Improved support for CLI arg parsing 2024-09-27 13:56:56 -04:00
ed8b8901c0 Add '$' prefix on all user code 2024-09-24 14:54:22 -04:00
89c427172a Support creating parent directories as needed (mkdir -p) and also set a
better default permission for new dirs
2024-09-23 14:53:44 -04:00
b432fc82c7 Add shell escaping for arrays of text 2024-09-23 14:36:20 -04:00
0ed4f624a9 Add README for navigating stdlib 2024-09-18 01:20:14 -04:00
976e73f4a2 Move Match() to the right place 2024-09-18 01:11:50 -04:00
c00c6d3e02 Move List reversal to the right place 2024-09-18 01:10:34 -04:00
a8a69ec1e2 Remove dead code 2024-09-18 01:09:59 -04:00
c9ff2b0a8a Move USE_COLOR into stdlib 2024-09-18 01:08:36 -04:00
9703ca45f0 Update Shell API to have byte-based mode and by_line() just like files 2024-09-16 17:02:20 -04:00
2e184ab46e Fix up paths API to use updated Text:match() 2024-09-16 15:33:15 -04:00
6d0f04375d Have Text:matches() return an optional array of matches 2024-09-16 15:12:54 -04:00
14b04f97be Quote Patterns with "|" instead of "/" when applicable 2024-09-16 00:29:12 -04:00
10a51ad996 Bugfix for string escaping in printouts 2024-09-16 00:15:54 -04:00
3c19f6387f Better fix 2024-09-15 19:17:51 -04:00
04326d131e Fix some imports 2024-09-15 19:17:08 -04:00
e59584acbd Add alphanumeric pattern 2024-09-15 18:41:37 -04:00
33876323aa Update path reading APIs to use optional values instead of erroring 2024-09-15 15:50:28 -04:00
4ad7509013 Fix optional bytes 2024-09-15 15:35:51 -04:00
e422079fcc Add a Byte datatype 2024-09-15 15:33:47 -04:00
259c7efcf8 Make sure that escape sequences don't accidentally trigger the next
backslash to be interpreted as an escape sequence when printing quoted
text
2024-09-15 14:09:49 -04:00
9cff275dc6 Slightly improve text quoting so it outputs "a$\r\nb" instead of
"a$\r$\nb"
2024-09-15 14:07:20 -04:00
75e0201fad Improve automatic text quoting so it minimizes escape sequences when
possible.
2024-09-15 14:03:16 -04:00
6012a00763 Clean up pattern code to make better use of TextIter_t and fix up
URI/URL patterns
2024-09-14 00:12:52 -04:00
c455e7b67d Rename builtins/ -> stdlib/ 2024-09-13 20:18:08 -04:00