Commit Graph

368 Commits

Author SHA1 Message Date
dzaima
bd04e38a5e use existing copy functions for arr_join_inline 2022-09-01 19:52:51 +03:00
dzaima
dad47cf391 move arith_recd to a noinline function 2022-09-01 18:51:02 +03:00
dzaima
5a162c7929 macos-specific sub-second file times 2022-08-26 22:46:00 +03:00
dzaima
2939395906 fallback file time getting method 2022-08-26 22:31:10 +03:00
dzaima
81e09956d3 •file.Size, make •file.List decode UTF-8
invalid UTF-8 is a problem for the future
2022-08-26 13:37:51 +03:00
dzaima
d12a53fd08 •file.Created, •file.Accessed, •file.Modified 2022-08-25 22:29:03 +03:00
dzaima
905a9f78d4 {raw⇐1} •SH 𝕩 2022-08-25 22:27:35 +03:00
dzaima
5be18bb180 fix ∾⟨"ab",1⟩ 2022-08-23 17:16:07 +03:00
dzaima
eb9550aa29 •file.Parent 2022-08-22 15:30:37 +03:00
dzaima
aa95b6add4 actually use TY(x) / PTY(x) more 2022-08-21 16:11:40 +03:00
dzaima
4ed814e395 cleanup of new field reading macros 2022-08-20 09:04:22 +03:00
dzaima
1694bfb7d2 s?p?rnk(x) → S?P?RNK(x) 2022-08-20 08:36:59 +03:00
dzaima
d2a4efe4b5 x->sh → SH(x) / PSH(x) 2022-08-20 08:30:07 +03:00
dzaima
e6b4f85662 x->ia → IA(x) / PIA(x) 2022-08-20 08:30:03 +03:00
dzaima
719d37cd63 reorder eachm_fn and eachd_fn args 2022-08-18 11:18:34 +03:00
dzaima
b1300e6e76 yet another string function rename 2022-08-18 09:07:32 +03:00
dzaima
bac1eaf9e3 squeeze result of ¨ 2022-08-05 03:19:12 +03:00
dzaima
fd1ac7487c wyhash microoptimization 2022-08-05 03:08:39 +03:00
dzaima
98e3021efb fix bit boolean array hash only using the first 1/8 of the array 2022-08-04 02:55:19 +03:00
dzaima
58f8772bd3 use singeli copy functions for mut copyG 2022-07-26 00:18:00 +03:00
dzaima
d959482d44 move generic array copy to its own function 2022-07-25 05:21:14 +03:00
dzaima
c1b66c5982 don't bother iterating through generic array items in cpy.*Arr on free 2022-07-24 00:05:42 +03:00
dzaima
29fe3206cd fix path_rel with empty base path 2022-07-15 23:25:49 +03:00
dzaima
aabaac977b more strict freed memory handling for valgrind 2022-07-10 02:40:43 +03:00
dzaima
eb5b32319f make ∨`𝕩 run under valgrind 2022-07-10 02:01:59 +03:00
dzaima
041a87ff98 make valgrind accept /𝕩 and 𝕨/𝕩 impls 2022-07-10 01:51:15 +03:00
dzaima
0684fe5fcb some fixes for ubsan 2022-07-10 01:43:21 +03:00
dzaima
9a00da6369 deduplicate ia writing 2022-07-09 02:18:22 +03:00
dzaima
3c2a7dbefa high-rank in-place w∾x 2022-07-09 02:00:22 +03:00
dzaima
fadde40f78 more incG 2022-06-26 23:48:30 +03:00
dzaima
1fd88c1749 clean up ascii/utf8 functions 2022-06-15 15:31:57 +03:00
dzaima
8a84726e6e fix wasm build 2022-06-12 22:33:59 +03:00
dzaima
5a32a00f46 more checks of NO_MMAP 2022-06-12 22:12:08 +03:00
dzaima
025043b84e make arr_shVec return its argument 2022-06-10 00:08:13 +03:00
dzaima
a298bc3018 more function name cleanup 2022-06-09 18:12:15 +03:00
dzaima
5636c1e2ca clean up some function names 2022-06-09 04:10:46 +03:00
dzaima
2359e54661 a bit saner heap format 2022-06-09 04:10:23 +03:00
dzaima
b865eb84ba make known type mut functions take data pointer instead of Mut* 2022-06-08 03:48:31 +03:00
dzaima
f74f355360 explicit switches in mut.h & update comments 2022-06-08 01:00:02 +03:00
Antti Keränen
8923f6a3b8 ffi: make bqn_evalCStr use a constant string 2022-06-05 10:22:13 +03:00
dzaima
572bc04459 move interrupt check to its own header 2022-06-03 16:02:02 +03:00
dzaima
3dd1bffe2f don't unroll arr_csz 2022-05-29 13:57:03 +03:00
dzaima
093958f92a
Merge pull request #21 from dzaima/ffi
FFI
2022-05-28 01:29:21 +03:00
Paul A. Patience
e684c64847 Add •file.Remove 2022-05-13 21:18:47 -04:00
Paul A. Patience
fdeae8fbfe Add •file.Rename 2022-05-12 18:19:23 -04:00
dzaima
a601ba6a76 very unfinished FFI 2022-05-11 22:30:14 +03:00
dzaima
409524d958 noinline version of vec_add 2022-05-11 18:31:49 +03:00
dzaima
ec273f2102 fix •file.CreateDir 2022-05-10 14:19:15 +03:00
dzaima
63bd4a876e •file.CreateDir 2022-05-09 22:57:37 +03:00
dzaima
3496a939b6 more switch cleanup 2022-05-01 04:47:21 +03:00
dzaima
f12e5fd1c0 move bqn_hash back to header 2022-05-01 04:36:59 +03:00
dzaima
3f787e3845 the tag includes type info anyways 2022-05-01 04:32:16 +03:00
dzaima
782750fd88 bqn_hash refactor 2022-05-01 04:21:17 +03:00
dzaima
ab868a55f3 singeli copy 2022-04-25 03:06:11 +03:00
dzaima
767a2a9e38 make •file.MapBytes follow spec & fix error message 2022-04-10 05:12:21 +03:00
dzaima
2c2ed7920b directly copy data from typed array for file_wBytes 2022-04-10 01:00:08 +03:00
dzaima
acc8e35c2f •file.MapBytes 2022-04-09 19:45:14 +03:00
dzaima
422dc80283 decG round 4 2022-04-07 17:19:36 +03:00
dzaima
b60bc7c3bf disable realpath & mprotect for wasm 2022-04-06 19:16:35 +03:00
dzaima
f4aee96e65 fix mmX_dumpHeap signature 2022-04-06 19:10:59 +03:00
dzaima
a3260edbce more copyG cases 2022-04-04 16:28:03 +03:00
dzaima
a9331ef8f0 fast bit_cpy head & tail 2022-04-02 23:47:07 +03:00
dzaima
c1d2dd7168 fix gcc build 2022-03-16 14:14:31 +02:00
dzaima
eae7501d36 fix •file.Type when file not present 2022-03-15 20:47:01 +02:00
dzaima
d78a45a457 smarter virtual function reading deduplication 2022-03-12 03:44:46 +02:00
dzaima
d2683992df slightly changed copy to B 2022-03-12 03:33:04 +02:00
dzaima
9d3067fa4b new mut interface 2022-03-12 03:08:25 +02:00
dzaima
0177680ddb include JIT memory in heap dump 2022-03-07 01:20:34 +02:00
dzaima
d2674db956 heap dump 2022-03-06 15:38:30 +02:00
dzaima
0c79b44ae0 output errors to stderr 2022-03-05 02:32:28 +02:00
dzaima
de4914991a •term.OutRaw, •term.ErrRaw 2022-02-25 18:20:25 +02:00
dzaima
d85fb9a592 •file.Type, •file.Name 2022-02-05 18:41:21 +02:00
dzaima
5d3c801fb5 fix memory leak in singeli arith fallback & each fills 2022-01-12 16:10:41 +02:00
dzaima
5cde913c78 •CurrentError 2022-01-08 21:55:19 +02:00
dzaima
9dc3ef1eb8 move mut_copyG out of header
i'd still like to be able to have the compiler invert a loop of mut_copyG-s to a switch over the type to various loops, but that doesn't even work as it probably can't guarantee that m->type doesn't change
2022-01-03 19:03:00 +02:00
dzaima
b6f43ec4be deduplicate a bit 2022-01-01 22:51:14 +02:00
dzaima
ff4573f65c bitarr generation in bit_sel 2022-01-01 22:41:29 +02:00
dzaima
d68e278083 move nsTime to its own file 2021-12-29 19:49:16 +02:00
dzaima
d873ce0d81 fix hash for bitarrs 2021-12-19 14:55:21 +02:00
dzaima
9054cf0b54 make vec_join be mostly not inlined 2021-12-19 01:45:05 +02:00
dzaima
0c5b98772c m_harrs → M_HARR 2021-12-17 18:04:19 +02:00
dzaima
23fc280383 fix leak in •file.List 2021-12-16 12:24:07 +02:00
dzaima
4af4b45ab7 fix / with negative numbers in indexes 2021-12-16 12:20:42 +02:00
dzaima
3351f6b303 l*sizeof(B*) → l*sizeof(B) for copying l items in a B* 2021-12-10 21:51:09 +02:00
dzaima
9af0d4b66f don't inline hashmap size doubling function 2021-12-05 19:25:54 +02:00
dzaima
b76d30d4bc add •state and •name 2021-11-24 23:03:17 +02:00
dzaima
996114a73b make file writing accept characters 2021-11-23 01:16:46 +02:00
dzaima
d42dd3dcf9 merged typed types 2021-10-22 17:11:54 +03:00
dzaima
f50b8ab503 fix fill of n↑fillarr 2021-10-20 18:29:28 +03:00
dzaima
d4f183ccda •wdpath, path_resolve → path_rel 2021-10-12 00:53:54 +03:00
dzaima
363309a218 some cleanup 2021-10-11 21:50:16 +03:00
dzaima
1bca264db8 bitarrs 2021-10-03 23:18:30 +03:00
dzaima
dac6f29a41 more eachd_fn and eachm_fn out of header file 2021-09-30 20:24:14 +03:00
dzaima
d2ea19c757 more slow warns 2021-09-26 13:36:37 +03:00
dzaima
797a848ed4 warn slow for unknown scans & folds & ⍋ 2021-09-26 01:04:18 +03:00
dzaima
28f40e5368 slow notes 2021-09-25 20:39:06 +03:00
dzaima
a15f66c43b rename formatting functions 2021-09-25 13:53:53 +03:00
dzaima
fab1ffadf5 fifo support or whatever 2021-09-21 23:42:47 +03:00
dzaima
c53b4b2294 move builtins.h to root of src 2021-09-21 17:28:25 +03:00
dzaima
6f99b58099 argument "-" for stdin file 2021-09-21 16:44:23 +03:00
dzaima
7f6740ec07 more flag clearing 2021-09-16 23:27:40 +03:00
dzaima
62a96f1196 squoze 2021-09-16 23:20:58 +03:00
dzaima
0969acef35 don't keep around reuse in eachm 2021-09-13 12:28:12 +03:00
dzaima
e8fecf64fa generate c8arr in fromUTF8 2021-09-12 00:07:13 +03:00
dzaima
e98660bfa8 more typed array conversion 2021-09-11 23:17:17 +03:00
dzaima
d8d56bbdd4 TmpFile→I8Arr 2021-09-10 15:24:07 +03:00
dzaima
a36ae1a716 pass untagged pointer to get & getU 2021-09-09 23:52:18 +03:00
dzaima
818675e4c0 another place for arr_bptr 2021-09-09 19:22:36 +03:00
dzaima
337a6bbc5e more changes 2021-09-09 18:42:48 +03:00
dzaima
85dd03ac11 more types for join & add 2021-09-09 18:14:14 +03:00
dzaima
0913d3b8f2 ElType cleanup 2021-09-09 17:21:19 +03:00
dzaima
fded6996e6 squeeze & hash fixes 2021-09-09 16:59:47 +03:00
dzaima
a6251ff3e7 squeeze int arrs on withFill 2021-09-09 16:08:13 +03:00
dzaima
85f8a5e7bd saner comparison code 2021-09-06 01:02:11 +03:00
dzaima
21ba88751a working i8/i16-arrs 2021-09-05 16:06:31 +03:00
dzaima
a191222967 tyarrTemplate.h 2021-09-05 02:29:06 +03:00
Jesus Galan Lopez (yy)
146bb600ac •MonoTime 2021-09-04 20:56:26 +02:00
Jesus Galan Lopez (yy)
77573522b3 •UnixTime 2021-09-04 20:36:55 +02:00
dzaima
21c376416c fix •FLines@ 2021-09-03 15:13:46 +03:00
dzaima
1d13a1ef07 •ReBQN with only the repl setting 2021-08-28 23:55:48 +03:00
dzaima
305f578707 add •Fmt, changes to readme files 2021-08-27 11:52:56 +03:00
dzaima
0c1d4843ab fix undefined path handling 2021-08-23 18:37:01 +03:00
dzaima
ca86971df3 •path, •file.path, •file.At 2021-08-23 05:28:48 +03:00
dzaima
68214dda53 fix ↑‿3⥊3 2021-08-22 23:41:37 +03:00
dzaima
5dbd1688bc •MakeREPL 2021-08-21 03:52:49 +03:00
dzaima
de86ce2aaa src/README.md, and cleaning up things while at it 2021-08-14 21:27:06 +03:00
dzaima
10d0cdc2fe •SH 2021-08-13 23:22:37 +03:00
dzaima
ef92ddc69e •FromUTF8 2021-08-11 00:22:59 +03:00
dzaima
2ab2f35a34 move fmtF to •Glyph 2021-08-04 22:06:33 +03:00
dzaima
8934db0ec5 impure function mess 2021-08-04 21:06:33 +03:00
dzaima
39d095c8dc fix •-things being considered pure 2021-08-04 20:32:16 +03:00
dzaima
e9aff609bf more m_arr refactoring cleanup 2021-08-03 20:52:53 +03:00
dzaima
849eeff465 initialize ia on allocation always 2021-08-03 02:57:46 +03:00
dzaima
1f5cfbe766 more proper PERF_TEST, )ex 2021-07-31 20:02:56 +03:00
dzaima
36afe7f533 integrate mode for consistent timing
use with
make t=perftest f='-O3 -DPERF_TEST' c
2021-07-30 02:19:15 +03:00
dzaima
25c89c06b1 •GetLine 2021-07-25 20:02:48 +03:00
dzaima
7ee8d642dc trailing newlines 2021-07-20 22:18:37 +03:00
dzaima
d4d4521e52 more fixing of warnings 2021-07-20 22:09:59 +03:00
dzaima
0d5af28043 use mut_copyG in one more place 2021-07-19 19:56:14 +03:00
dzaima
2e2b479d37 shorten mut_init 2021-07-19 19:25:25 +03:00
dzaima
ca264d1332 move init out of mut_to 2021-07-19 19:23:36 +03:00
dzaima
cf10914d63 refactor mut type expanding 2021-07-19 04:54:29 +03:00
dzaima
d8cfac38a2 move mut_pfree out of .c 2021-07-19 04:41:01 +03:00
dzaima
0c04b7e03b move vec_add slow case to .c file 2021-07-19 04:36:04 +03:00
dzaima
708e06c0ea simplify mut usage where type is guaranteed correct 2021-07-19 04:22:18 +03:00
dzaima
cce52dd40e random deal & subset 2021-07-07 21:31:48 +03:00
dzaima
08723a3c80 use TI macros everywhere 2021-07-06 19:22:45 +03:00
dzaima
7999683edf skip value checking for builtin loading
perf is reporting an 0.15% increase in instruction count (what?), but that's not gonna stop me
2021-07-03 02:38:09 +03:00
dzaima
ceb967bbd4 return Arr* from m_fillarrp 2021-07-03 01:53:26 +03:00
dzaima
08df9bfe7b arrP_sh* → arr_sh* 2021-07-03 01:38:56 +03:00
dzaima
d49d5a3e31 don't use arr_sh* 2021-07-03 01:37:54 +03:00
dzaima
c0a75327ef return Arr* from mut_fp 2021-07-03 01:25:55 +03:00
dzaima
c52a042eb4 return Arr* from slices 2021-07-03 01:25:55 +03:00
dzaima
daa8294252 return Arr* from m_(i32|c32|f64)arrp 2021-07-03 00:37:00 +03:00
dzaima
49810ce8bc rename mm_allocN 2021-07-03 00:27:20 +03:00
dzaima
a4446716bf compiler errors 2021-06-27 20:28:19 +03:00
dzaima
1afe46b393 move TAlloc/TStack around, immediate functions 2021-06-15 01:20:32 +03:00
dzaima
550b91688a extremely basic x86-64 generator 2021-06-09 18:47:50 +03:00
dzaima
7e994dd913 modifiable defines 2021-06-06 16:50:18 +03:00
dzaima
47f8984e74 faster i32arrOfBools/ 2021-06-06 15:15:18 +03:00
dzaima
2685c598e6 native √ 2021-06-04 02:17:40 +03:00
dzaima
24f61bd5a5 move builtin defs to own file 2021-06-04 02:07:30 +03:00
dzaima
b84e6e549b fix refcount in •file.List 2021-06-01 23:53:38 +03:00
dzaima
f1b1686300 •file.List 2021-06-01 22:12:34 +03:00
dzaima
ff2af490b8 special-case appending atoms with ∾ 2021-05-27 20:13:22 +03:00
dzaima
899175f48b split up arith.c 2021-05-24 21:35:53 +03:00
dzaima
6b4c5913ff RT_VERIFY 2021-05-24 01:05:34 +03:00
dzaima
b2b826be9b incremental compilation 2021-05-23 21:55:49 +03:00