Commit Graph

27 Commits

Author SHA1 Message Date
de0e565d00 Fixes for integer truncation 2025-03-11 18:02:13 -04:00
50f8fdd007 Fix some integer stuff that was being implicitly downcast to 32-bit 2025-03-09 16:14:53 -04:00
29358b9cd0 Add some missing modulus and conversion methods for floats/ints 2025-03-09 15:56:44 -04:00
147e0f0269 Overhaul of constructors, making it more consistent and correct. Also
changed T(), T, T_t, T_s type names to T(), T$$info, T$$type, T$$struct
for unambiguity
2025-03-05 18:20:54 -05:00
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
9e0017e86e Add Int:factorial() and n:choose(k) 2024-12-24 14:20:16 -05:00
cac894d39f Fixes for integer logic around big/small ints 2024-12-11 13:36:52 -05:00
d65a0abba1 Add GCD function for integers (of all flavors) 2024-12-08 14:28:26 -05:00
a201939a81 Use likely()/unlikely() macros and a few bugfixes for integers 2024-12-07 15:59:37 -05:00
07dd1894b7 Bugfixes for moments mixing up microseconds/nanoseconds, plus adding
accessor fields for them
2024-11-30 17:25:36 -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
27da373754 Micro-optimizations for division and modulus 2024-11-25 14:11:06 -05:00
1e3fb8a2c0 Rename "NULL" to "NONE" 2024-11-24 16:18:21 -05:00
0e10313d64 Switch NaN to be identical to the null value 2024-11-24 16:13:23 -05:00
7a4f2e73ad Rename from_text() to parse() 2024-11-09 15:11:11 -05:00
fc9a6f1416 Add RNGs to the language 2024-11-03 22:37:48 -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
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
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
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -04:00
c455e7b67d Rename builtins/ -> stdlib/ 2024-09-13 20:18:08 -04:00