Commit Graph

1602 Commits

Author SHA1 Message Date
dzaima
7cf17cdad6 native depth2⊏𝕩 2025-07-04 21:01:17 +03:00
dzaima
3a8d0be5a4 error tests for selecting from an empty array 2025-07-02 00:01:20 +03:00
dzaima
b13e4101fa revert 1e53078
conflates C size_t and Singeli u64 → uint64_t, and Singeli can't emit size_t
2025-07-01 02:19:36 +03:00
dzaima
ddb8d7c111 use ux instead of usz as the loop index in another place 2025-07-01 02:08:54 +03:00
dzaima
e4d024e031 comments about potential inds⊸⊏˘bitmat optimizations 2025-06-19 20:54:35 +03:00
dzaima
dcf150cef2 avoid unnecessarily copying •FBytes result 2025-06-15 03:59:03 +03:00
dzaima
597e59c085 add STRICT_ALIGN, use by default in FOR_BUILD 2025-06-14 19:28:00 +03:00
dzaima
1c77e3b06d add IS_TYSLICE & SLICE_TO_ARR, clean up array/slice check names
IS_SLICE → ARR_IS_SLICE as it assumes the argument type is already an array type
2025-06-14 18:46:00 +03:00
dzaima
ede87b4800 fix •bit._neg & •bit._not reuse check 2025-06-13 02:29:30 +03:00
dzaima
ce48dd1bca clear flags on •bit._neg & •bit._not reuse 2025-06-13 02:21:25 +03:00
dzaima
932f388cdf fix bugs when GC changes refcounts 2025-06-13 02:07:53 +03:00
dzaima
2160f4001d clear flags on •bit._cast reuse 2025-06-13 01:00:11 +03:00
dzaima
58d5f47e98 fix printf 2025-06-12 04:42:28 +03:00
dzaima
d9007c3136 use errMd more 2025-06-11 18:07:31 +03:00
dzaima
634cf82fbe use reshape_one instead of manual mut_fill more 2025-06-11 17:47:14 +03:00
dzaima
abb9adbc50 make SEMANTIC_CATCH work without USE_SETJMP 2025-06-11 17:47:14 +03:00
dzaima
53f331112f don't have weird "𝕨˘𝕩" in error messages 2025-06-11 17:24:45 +03:00
dzaima
a756174483 fix WARN_SLOW build
WARN_SLOW has generally been forgotten about, but no harm keeping it working; this looks at x's bits explicitly after it's consumed, but it's not dereferenced so it's "fine"
2025-06-09 23:02:17 +03:00
dzaima
c294b07f5f don't bother raveling a rank-1 array for replicating 2025-06-09 18:07:31 +03:00
dzaima
0b678bc274 move some fill/eltype array creation helpers into core includes 2025-06-08 21:53:19 +03:00
dzaima
2447eb25cf semantically squeeze F⌜ result 2025-06-08 18:55:38 +03:00
dzaima
286067ad51 some F⌜ shape management refactoring
avoids having two arr_shAlloc invocations, and also makes ⊢⌜ direct
2025-06-08 18:35:57 +03:00
dzaima
c90674313b reduce reshape+replicate-based Arith⌜ constant overhead 2025-06-08 18:10:01 +03:00
dzaima
0a561bce2b better number/character fill checks
as the only valid number fill is 0, full isNum check is pointless
2025-06-08 17:50:37 +03:00
dzaima
01fea8904d move test/mut.bqn to test/run.bqn system 2025-06-01 07:03:19 +03:00
dzaima
4296c42534 fix unshare with heuristic randomization 2025-06-01 05:40:14 +03:00
dzaima
88f2eb6b87 fast ↕list when (64≥≠list) ∧ ∧´list∊1‿2, typed result otherwise 2025-05-31 19:41:03 +03:00
dzaima
3f0e696add move bit_reverse to stuff.h
+ explicitly note its operating width
2025-05-31 19:04:12 +03:00
dzaima
e2e73a5987 always define DEBUG to 1 or 0 2025-05-31 19:03:50 +03:00
dzaima
f843c7e96d proper name 2025-05-30 06:44:58 +03:00
dzaima
c0cb1a9f77 more 𝕨⥊𝕩 refactoring 2025-05-29 23:41:55 +03:00
dzaima
dd7c21ed86 extract cycling reshape implementation from shape_c2
currently somewhat-inefficient, but separating out for reference, to allow the moving commit to largely not change anything
2025-05-29 23:25:14 +03:00
dzaima
d0ab742313 extract 1≥≠𝕨 case of 𝕨⥊𝕩
temporarily calling back into shape_c2 when necessary
2025-05-29 23:25:14 +03:00
dzaima
541e5a805e 𝕨⥊𝕩 implementation refactoring & testing 2025-05-29 22:36:38 +03:00
dzaima
860594ae48 expose RANDOMIZE_HEURISTICS config in •internal.Temp 2025-05-28 07:49:41 +03:00
dzaima
59923b25df refactor •internal.Temp 2025-05-28 06:55:53 +03:00
dzaima
879a3e2007 fix 𝕨⥊𝕩 integer overflow 2025-05-28 06:41:49 +03:00
dzaima
054cdac6d9 use unpack_unit helper 2025-05-28 04:31:16 +03:00
dzaima
45a756a6a0 fix reference leak on heapAllocatedAtom⊸»˘0‿2⥊0
caught by test/cells.bqn
2025-05-28 04:22:20 +03:00
dzaima
107f5a7ee5 atom⊸«⎉k can only legally do k==1
noticed by test/cells.bqn
2025-05-28 04:05:30 +03:00
dzaima
d8ec8a3a70 actually fast-path (<atom)⊸«⎉1 2025-05-28 04:02:27 +03:00
dzaima
13068480ca pick_sells handles rank 1
noticed by test/cells.bqn
2025-05-28 03:48:58 +03:00
dzaima
09936204d0 fix withFill being passed object with incomplete shape
caught by fuzz.bqn
2025-05-28 03:12:45 +03:00
dzaima
32b37188d3 fix arr_bptr==NULL path of isSorted
isSorted doesn't consume x, but TO_BPTR mutates it
2025-05-28 00:56:29 +03:00
dzaima
368fe11155 fix heuristic bounds of select_rows_direct
inds_buf has limited size; failed fuzz/select-cells
2025-05-28 00:38:57 +03:00
dzaima
650c5b9171 quiet warning 2025-05-28 00:23:29 +03:00
dzaima
c050df28d3 fix fill of ≍˘˜fillarrList
testing will come later with •internal.Indistinguishable _eqvar
2025-05-28 00:23:29 +03:00
dzaima
8a69998839 proper fill for 0⊸⊏˘fillarr
testing will come later with •internal.Indistinguishable _eqvar
2025-05-28 00:23:29 +03:00
dzaima
c866309707 fix fill of bitarr⊏𝕩 when 𝕩 has no fill and starts with elements that can construct a typed array 2025-05-27 21:59:07 +03:00
dzaima
8626fb14ce cleanup from gcc -Wextra 2025-05-27 21:59:07 +03:00