Commit Graph

1194 Commits

Author SHA1 Message Date
dzaima
899175f48b split up arith.c 2021-05-24 21:35:53 +03:00
dzaima
33b548fbda set max heap size 2021-05-24 19:54:16 +03:00
dzaima
8dc1ffd7c3 move atomEqual around 2021-05-24 18:26:38 +03:00
dzaima
b2e65cc9b7 separate out simple comparison 2021-05-24 18:05:35 +03:00
dzaima
200456ac72 integer arith 2021-05-24 17:58:11 +03:00
dzaima
8cfa3e7f55 builtin initialization in load.c 2021-05-24 14:41:10 +03:00
dzaima
cc36fd0d7c assert partial HArrs are finished 2021-05-24 13:18:10 +03:00
dzaima
b7f5b6b3ce fixes 2021-05-24 12:51:35 +03:00
dzaima
0032ad1a31 another tiny improvement to ⊏ 2021-05-24 12:46:43 +03:00
dzaima
2228ac129b use CMP_IMPL for all comparison fns 2021-05-24 12:25:36 +03:00
dzaima
e6f2fc93be ⊏ improvements 2021-05-24 12:11:53 +03:00
dzaima
96a938837d native i32/vec 2021-05-24 11:19:12 +03:00
dzaima
1048339852 ×´i32arr and i32×´i32arr 2021-05-24 10:58:12 +03:00
dzaima
ddf3a5b48e correct error message of ∊ 2021-05-24 01:38:44 +03:00
dzaima
5e2ac03b50 native ∊arr 2021-05-24 01:34:26 +03:00
dzaima
6b4c5913ff RT_VERIFY 2021-05-24 01:05:34 +03:00
dzaima
f4ec365a3e extern env & ti 2021-05-24 00:37:43 +03:00
dzaima
39f9060224 extern bi_ 2021-05-24 00:35:38 +03:00
dzaima
6869c7d919 make functions in arith.c static 2021-05-24 00:32:59 +03:00
dzaima
b724cbe1de add back rt_ 2021-05-24 00:22:24 +03:00
dzaima
cc163fefe7 more extern 2021-05-24 00:16:03 +03:00
dzaima
c23214a4de add extern to globals 2021-05-24 00:13:49 +03:00
dzaima
8e38de7f5c make heapverify 2021-05-23 22:28:59 +03:00
dzaima
17fa05d23a update readme 2021-05-23 22:10:30 +03:00
dzaima
b2b826be9b incremental compilation 2021-05-23 21:55:49 +03:00
dzaima
f26cd2a03b native ⊒arr 2021-05-23 01:04:54 +03:00
dzaima
86972e1bac grade cleanup & fixes 2021-05-23 00:38:02 +03:00
dzaima
5db84031f7 2021-05-23 00:28:27 +03:00
dzaima
e214a40a19 c32 comparison 2021-05-22 23:34:19 +03:00
dzaima
4fa7e33520 dyadic fast scans, ∨´, sorts and grade 2021-05-22 23:09:32 +03:00
dzaima
4e0182ec2e ≠`i32arr 2021-05-21 17:09:15 +03:00
dzaima
081c16029e +i32arr, ⌈i32arr, print live stack 2021-05-21 17:06:06 +03:00
dzaima
882280e6bd check fread/fwrite result
and otherwise make gcc builds happy
2021-05-21 16:08:22 +03:00
dzaima
81cdfa9cab /i32arr 2021-05-21 15:33:58 +03:00
dzaima
7df1b5d4a7 vectorized = and ≠ 2021-05-21 00:49:10 +03:00
dzaima
aa36531783 temporary allocations 2021-05-21 00:05:11 +03:00
dzaima
0b479fc9d0 don't spam root objects 2021-05-20 23:16:21 +03:00
dzaima
2cee9260f7 dyadic •FBytes 2021-05-20 23:10:06 +03:00
dzaima
075773a28c native vec⊐vec 2021-05-20 21:50:54 +03:00
dzaima
885ce06a23 sort fills 2021-05-20 21:33:05 +03:00
dzaima
b8feea1c8a lazy sort 2021-05-20 21:21:19 +03:00
dzaima
c39b06e078 native ⍷vec 2021-05-20 20:34:17 +03:00
dzaima
2d60dd4f1a use formatter for •Show, fix some refcounts 2021-05-20 19:45:47 +03:00
dzaima
e90701af9f native vec∊vec 2021-05-20 19:35:38 +03:00
dzaima
b8fe149d1f hashmaps, fast ⊐ 2021-05-20 19:24:54 +03:00
dzaima
2ed797ce16 hash 2021-05-20 03:03:33 +03:00
dzaima
e140f9350b native 𝔽˘𝕩 and > 2021-05-19 21:56:40 +03:00
dzaima
0e650d6038 a tiny bit of a native ⊐ 2021-05-19 19:36:10 +03:00
dzaima
d08cd90998 typed arith 2021-05-19 18:57:12 +03:00
dzaima
0f001313a7 native ⌽ and F⌾⌽ 2021-05-19 18:48:05 +03:00
dzaima
9590471c7c fix COMP_COMP 2021-05-19 17:47:06 +03:00
dzaima
422c3ff823 native ⌾(a⊸⊏) 2021-05-19 17:02:03 +03:00
dzaima
c9a54b9363 fix •Repr without FORMATTER 2021-05-19 15:16:18 +03:00
dzaima
dd865697ef updated formatter 2021-05-19 15:09:01 +03:00
dzaima
23af3f56e9 faster VM_POS 2021-05-19 15:00:45 +03:00
dzaima
ffbb6ce601 fancy error messages 2021-05-19 14:22:04 +03:00
dzaima
0b34c96a51 inline join 2021-05-19 03:13:04 +03:00
dzaima
af9fbb7dc3 free simple scope-block reference cycles on bytecode exit 2021-05-19 00:28:46 +03:00
dzaima
e02142a4c9 native ⌾(n⊸⊑) 2021-05-18 22:02:40 +03:00
dzaima
a7a277a6d1 fix native ⌾ under rtperf 2021-05-16 18:36:14 +03:00
dzaima
45207372f6 native ⌾(a⊸/) and ⌾⊑ 2021-05-16 18:16:09 +03:00
dzaima
d046d92390 optional source for precompiled programs 2021-05-16 13:42:58 +03:00
dzaima
c2013e3b5d •args, •FLines, command-line options, •Repr, fix unit∾unit fill 2021-05-15 17:51:17 +03:00
dzaima
915b84f028 fast error on CATCH_ERRORS+HEAP_VERIFY, allow unicode paths 2021-05-15 14:51:46 +03:00
dzaima
a1d5d87f8b fix comp_comp 2021-05-15 14:46:10 +03:00
dzaima
6ae85d3f29 fix REPL 2021-05-15 14:38:26 +03:00
dzaima
721017f6c0 fix path_dir, allow REPL to load relative files 2021-05-15 14:17:19 +03:00
dzaima
87138ee523 •Import, relative paths 2021-05-15 14:03:07 +03:00
dzaima
523a062b95 update names 2021-05-15 12:53:35 +03:00
dzaima
c85c8ec9ae fix more visit 2021-05-15 12:44:11 +03:00
dzaima
ca090efd07 execute argument file 2021-05-15 12:39:26 +03:00
dzaima
77531e2d8f visit should take pointer as arg 2021-05-15 12:23:21 +03:00
dzaima
fb7bfcf188 free should take pointer as arg 2021-05-15 12:23:19 +03:00
dzaima
5dfa9e0e31 NSPM 2021-05-14 23:09:52 +03:00
dzaima
e0b41180cf F´i32vec 2021-05-14 20:44:19 +03:00
dzaima
b2e5b009f3 accept slices more 2021-05-14 20:33:31 +03:00
dzaima
02b4836498 special i32vec⊔𝕩 2021-05-14 20:26:04 +03:00
dzaima
46292872d1 special 𝕨⊔i32vec 2021-05-14 20:19:02 +03:00
dzaima
c5506657c3 native vector ⊔ 2021-05-14 20:08:38 +03:00
dzaima
60d2e2454f native ↑&↓ 2021-05-14 15:39:23 +03:00
dzaima
b5db412812 typed / 2021-05-14 15:06:48 +03:00
dzaima
94bf7ccce0 native ⊑ (without array 𝕨) 2021-05-14 14:06:01 +03:00
dzaima
67e93ae37a FLDO 2021-05-14 00:34:42 +03:00
dzaima
0a69c1e457 native monadic ↕ 2021-05-13 21:20:10 +03:00
dzaima
62dbedc9b8 empty int arr constant 2021-05-12 16:37:00 +03:00
dzaima
cd5eb4dfe9 •FChars, •FBytes 2021-05-12 16:31:01 +03:00
dzaima
08ed6803c1 fillarr mut 2021-05-12 12:10:19 +03:00
dzaima
3609c1ecdd enable compiler compilation with a define 2021-05-12 11:55:14 +03:00
dzaima
ab12fcdbb2 store typed array in Mut 2021-05-12 11:31:44 +03:00
dzaima
096a7c7637 restructure typed array creation 2021-05-11 21:31:34 +03:00
dzaima
98cb5fc310 vm.h 2021-05-11 16:10:49 +03:00
dzaima
54abc94cad •_timed 2021-05-10 23:22:00 +03:00
dzaima
dd3c420bf3 f64any_ptr 2021-05-10 17:44:42 +03:00
dzaima
765098f485 native i32 monadic ⍋ 2021-05-10 17:10:16 +03:00
dzaima
d42a6516b7 native 𝕨⍋𝕩 2021-05-10 16:15:34 +03:00
dzaima
9bdacbbd7d toCells, throw stack overflows 2021-05-10 13:41:27 +03:00
dzaima
d8751e709f fix pureFn 2021-05-10 11:37:30 +03:00
dzaima
2202200a6e stacktraces 2021-05-10 02:44:26 +03:00
dzaima
03cebc6aff fix using 𝕨/𝕩 in 𝕘 of ⎊ 2021-05-09 23:02:33 +03:00
dzaima
9893a8bd97 isCallable 2021-05-09 20:05:34 +03:00
dzaima
64e716af6f cross-program namespace access 2021-05-09 18:27:42 +03:00
dzaima
0f844b4e09 •BQN, split runtime/compiler loading out of main 2021-05-09 17:31:31 +03:00
dzaima
0dede67d2a namespaces 2021-05-09 16:01:19 +03:00
dzaima
8ed4019edf bi_emptyHVec, actually fix !GS_REALLOC 2021-05-08 15:47:04 +03:00
dzaima
6c349fc3ed fix !GS_REALLOC 2021-05-08 14:19:48 +03:00
dzaima
4762463ce8 fancier init 2021-05-07 21:56:11 +03:00
dzaima
f70a8c558c option to not allow reallocating stack
with no benefits currently, whatever
2021-05-07 21:51:54 +03:00
dzaima
386cb75a1a accept new compiler output 2021-05-07 19:41:07 +03:00
dzaima
a5022c8755 actually functional f64arr mut 2021-05-04 23:25:52 +03:00
dzaima
dc84266849 custom fill comparison 2021-05-03 17:32:45 +03:00
dzaima
0192bdb987 getFill shouldn't consume 2021-05-03 15:22:46 +03:00
dzaima
6740e680a9 split up eq_c2 2021-05-03 15:00:51 +03:00
dzaima
4d85a57e10 native ≍ 2021-05-03 12:41:51 +03:00
dzaima
4fcc007365 purposefully make ∾ 30% slower 2021-05-03 11:30:47 +03:00
dzaima
96ab6785ed native ∾vec 2021-05-03 11:06:13 +03:00
dzaima
5d0342e647 simpler batch function calls 2021-05-02 21:48:12 +03:00
dzaima
c9eab08569 i32arr⊏i32arr, isAtm, m_atomUnit 2021-05-02 19:14:25 +03:00
dzaima
bfd1e0d49e use fill info to try to type an array
and bug fixes :)
2021-05-02 17:07:41 +03:00
dzaima
14e12ea544 native « 2021-05-02 15:34:31 +03:00
dzaima
494c13f3d8 gc on 2×previous 2021-05-02 14:08:54 +03:00
dzaima
9f824483eb cleaner ¨ 2021-05-02 13:49:40 +03:00
dzaima
b31865b0f4 add back native » 2021-05-01 22:35:07 +03:00
dzaima
76c3466c96 crappy fills 2021-05-01 22:26:18 +03:00
dzaima
2828a05dfc native », fill stuff 2021-05-01 04:21:14 +03:00
dzaima
d7561d1fbd native r0 ¨ 2021-04-30 20:41:24 +03:00
dzaima
755274ebb6 random type changes 2021-04-30 20:38:48 +03:00
dzaima
f36eddb01c fix ⟨a‿b⟩←⟨1‿2⟩ and ⟨3‿0,2‿1‿2⟩⊏6‿5⥊↕30 2021-04-30 00:55:28 +03:00
dzaima
6afd425f24 reenable native ⊏ 2021-04-30 00:21:22 +03:00
dzaima
4783812eaf mut 2021-04-29 23:44:50 +03:00
dzaima
6c2ed64ab4 separate non-structural functions out of sfns.c 2021-04-29 13:02:27 +03:00
dzaima
c7af11dd2e native runtime_0 2021-04-29 03:06:02 +03:00
dzaima
a1fec732b0 update cc.bqn 2021-04-29 00:32:52 +03:00
dzaima
7786beeed1 clean up err stuff 2021-04-29 00:06:27 +03:00
dzaima
3ebdb16571 ahead-of-time computed scope parents
not much of a difference in performance, but whatever
2021-04-28 23:35:05 +03:00
dzaima
db7b0cc323 clear in-use items in in-place each 2021-04-28 13:08:58 +03:00
dzaima
a3e78e651e random cleanup 2021-04-28 12:38:02 +03:00
dzaima
f0a602ccde random utility functions 2021-04-28 12:22:51 +03:00
dzaima
f58af495bc f64arr 2021-04-28 11:45:18 +03:00
dzaima
3a0ed1cbc7 •Out and •Show 2021-04-27 23:35:01 +03:00
dzaima
9003a5df99 partially written arrays 2021-04-27 21:44:00 +03:00
dzaima
ca3ff89a4d move random functions to stuff.c 2021-04-27 17:35:41 +03:00
dzaima
f922aa2422 FOR_BC 2021-04-27 15:34:16 +03:00
dzaima
a6d15846f6 m_hunit 2021-04-27 14:39:02 +03:00
dzaima
271479c511 use getU more 2021-04-26 11:45:12 +03:00
dzaima
76dbabb03d finish separating arr_shAlloc 2021-04-26 10:46:33 +03:00
dzaima
6d5c04e62a split up h.h 2021-04-26 10:35:18 +03:00
dzaima
776a77f033 new cc.bqn 2021-04-26 10:04:32 +03:00
dzaima
b5468f630b native vector ⊏ & / 2021-04-26 01:38:34 +03:00
dzaima
3891940178 fmtF ⎊ 2021-04-25 01:58:02 +03:00
dzaima
8d21080dd8 native ⍟, fix unit eachd 2021-04-25 01:35:52 +03:00
dzaima
dfb30b934f fix >´⟨⟩ & eachd on different type units 2021-04-24 20:54:38 +03:00
dzaima
163888f32a implement arith fills 2021-04-24 02:18:52 +03:00
dzaima
365caec21b in-place eachd 2021-04-24 01:28:07 +03:00
dzaima
4f8dd1b178 native fns, runtime perf 2021-04-24 00:57:04 +03:00
dzaima
70291dc060 clean up test stuff 2021-04-22 16:16:59 +03:00
dzaima
e345f37605 ⎊ and proper _fillBy_ 2021-04-17 00:53:23 +03:00
dzaima
38ab8ecf96 error catching option 2021-04-15 02:10:30 +03:00
dzaima
4bd3a526d0 fix ctrl+d 2021-04-15 01:50:10 +03:00
dzaima
889f633bd3 catch errors 2021-04-15 01:20:50 +03:00
dzaima
2d43489cd2 more refcount fixes 2021-04-14 23:18:48 +03:00
dzaima
c820b4b3a5 GC 2021-04-14 19:11:19 +03:00
dzaima
b8e786b2cb LOCU 2021-04-10 22:15:17 +03:00
dzaima
be994f822b •Type, •PrimInd, •Decompose 2021-04-10 21:42:52 +03:00
dzaima
67dad6cc1d uhh refcount better 2021-04-10 19:50:50 +03:00
dzaima
da095a0ff4 non-reusing i32arr→i32arr ⌜ 2021-04-09 23:37:13 +03:00
dzaima
21412be6c5 sysvals 2021-04-09 21:14:28 +03:00
dzaima
1db0527c5a in-place i32arr monadic ⌜ 2021-04-09 12:59:54 +03:00
dzaima
d3522fecfa decR 2021-04-08 13:20:53 +03:00
dzaima
ae1ca2f1d9 inci→inc, ptr_dec_rare 2021-04-08 03:26:25 +03:00
dzaima
c340de8e1c noinline m_cai32 2021-04-06 14:36:33 +03:00
dzaima
3603b621c8 separate noinline call for non-functions 2021-04-06 14:00:12 +03:00
dzaima
52cd7a9d82 noinline makeEmpty 2021-04-06 13:56:54 +03:00
dzaima
dd8e8b970b pass derived function to modifiers 2021-04-06 13:25:19 +03:00
dzaima
6e2dcacf57 iterate through heap 2021-04-06 02:15:47 +03:00
dzaima
ccd7669fc3 correct 3×2^n boundary check 2021-04-05 19:36:08 +03:00
dzaima
9e1eae8e58 2 buddy allocator 2021-04-05 18:40:39 +03:00
dzaima
6f63fcd92a global stack 2021-04-05 14:51:34 +03:00
dzaima
d3eadf1d10 fix GroupLen 2021-04-04 18:38:32 +03:00
dzaima
d0f835aa2e fill 2021-04-04 18:18:47 +03:00
dzaima
9136d6000d buddy memory allocator 2021-04-03 19:19:39 +03:00
dzaima
b33335c921 no more varargs 2021-04-03 17:17:11 +03:00
dzaima
472c66fbab time, fake runtime 2021-04-02 21:51:08 +03:00
dzaima
8fd12fceb2 uhhhhh 2021-04-02 14:55:57 +03:00
dzaima
e830df3893 formatter 2021-04-02 14:31:21 +03:00
dzaima
9e48514f19 make non-varargs the default array creation method 2021-04-01 12:37:47 +03:00
dzaima
a98365aac8 finish using srnk 2021-03-31 11:31:52 +03:00
dzaima
3773c15d90 tiny changes 2021-03-30 12:53:26 +03:00
dzaima
f534115d1c slices for ⥊ 2021-03-30 12:26:42 +03:00
dzaima
0eb8b37236 trailing newlines
ugh
2021-03-30 03:27:41 +03:00
dzaima
7c92f500b3 store extra info in Value 2021-03-30 03:22:00 +03:00
dzaima
17d3277d2b move printUTF8 to utf.c 2021-03-30 03:04:30 +03:00
dzaima
4be83c88b2 reuse in ` 2021-03-30 02:53:44 +03:00
dzaima
0e46008596 reuse 𝕩 in ⌜ if possible 2021-03-30 02:35:48 +03:00
dzaima
bad822447f 1 2021-03-30 00:58:56 +03:00