Commit Graph

675 Commits

Author SHA1 Message Date
436c6d4457 Bugfix 2024-08-16 13:13:35 -04:00
2d3c114435 Check for compile-time constant integers that require heap allocations. 2024-08-16 02:29:07 -04:00
a6be5c90ca For cached functions with no arguments, use a static var instead of a
cache table
2024-08-16 01:46:05 -04:00
52799d311e Update docs a bit 2024-08-16 01:20:46 -04:00
6d24438509 More helpful error message for table indexing 2024-08-15 14:52:41 -04:00
ce6f312c94 Add binary search test 2024-08-15 14:01:36 -04:00
7c18773011 Bugfix for closures 2024-08-15 13:59:01 -04:00
688f883e16 Add array:find() 2024-08-15 03:01:04 -04:00
66ae30ac29 Add method for array:remove_item(item) and rename
array:remove(index)->array:remove_at(index) to avoid confusion. Also
hook up array:has()
2024-08-15 02:39:35 -04:00
ed1667cb37 Add array:shuffled() and checks for array insertion 2024-08-15 02:17:53 -04:00
7a472752e5 Bugfix for array:insert() 2024-08-15 02:09:49 -04:00
eccc4e4721 Add binary search method to arrays 2024-08-15 01:59:42 -04:00
9c2d7c437d Fix up type conversions with ints and nums 2024-08-14 14:57:01 -04:00
c8af1ac9c1 Tweak implementations of math ops 2024-08-13 23:21:59 -04:00
e56fd1aa94 Add Int:sqrt() 2024-08-13 16:36:41 -04:00
e0223a4c20 Support ^ exponentiation for integers 2024-08-13 16:32:00 -04:00
aaac5dff28 Integers can have heap memory 2024-08-13 14:52:27 -04:00
32a6a5ce37 Support more binops 2024-08-13 14:29:51 -04:00
b608d7fbbb Improvements to repl 2024-08-13 14:28:02 -04:00
f0d97cd4cd Make biggest int semantically meaningful 2024-08-13 14:27:50 -04:00
5a0502bdf5 Fix some edge cases 2024-08-13 14:13:02 -04:00
148782e61b Create inlined fast versions of integer ops 2024-08-13 13:50:19 -04:00
1ce826b9c3 Tweak to codegen for range iteration 2024-08-13 11:35:22 -04:00
2c79bf2d71 Remove reference to Num$hash 2024-08-13 04:31:29 -04:00
b5f8efdfad Update docs 2024-08-13 04:29:04 -04:00
81ed38616f Cleanup code gen for Num coercions 2024-08-13 04:24:36 -04:00
16500e2b00 Speed up tests slightly 2024-08-13 04:06:20 -04:00
eb9e5260a6 Fix channels 2024-08-13 03:27:32 -04:00
cf8c01845e Fix issue with integer comparisons 2024-08-13 03:25:13 -04:00
df520b7d61 Fix int hashes 2024-08-13 03:21:20 -04:00
9edace28e2 Fix ranges 2024-08-13 03:20:01 -04:00
5d3ab600f1 Fixes 2024-08-13 03:09:48 -04:00
7365602715 Fixing up more stuff 2024-08-13 03:08:27 -04:00
6f33b93014 Fix min/max 2024-08-13 03:05:56 -04:00
2c4f6536a3 Fix Int->Num promotions 2024-08-13 02:51:10 -04:00
f4011eb489 Remove test 2024-08-13 02:46:56 -04:00
ab7a5e7af6 Proper promotion of ints 2024-08-13 02:45:57 -04:00
9b9087bfef Get rid of slow_* int functions 2024-08-13 02:42:02 -04:00
25519d2434 Fixing up more stuff 2024-08-13 02:28:14 -04:00
80af2ea547 Fixes 2024-08-13 02:21:21 -04:00
aa74180ed1 Fixing up integers 2024-08-13 02:20:48 -04:00
158a1c6ad2 More fixes 2024-08-13 02:09:18 -04:00
a32d90fcd7 Remove debug prints 2024-08-13 01:45:05 -04:00
21fd5c8195 Bugfixes 2024-08-13 01:43:46 -04:00
d08f795794 Partially working first draft of bigints 2024-08-13 01:30:25 -04:00
c1c889b024 Fix for set.items 2024-08-12 18:00:54 -04:00
ea80fefa05 Bugfix some issues with table keys/values 2024-08-12 17:57:14 -04:00
6aabed4fcc Fix some COW bugs for arrays/tables/sets 2024-08-12 17:44:05 -04:00
c139ba2aae Fix old syntax 2024-08-12 17:43:01 -04:00
8b564f6dd1 Fix deadlock issue 2024-08-12 17:42:51 -04:00