Commit graph

1072 commits

Author SHA1 Message Date
Simon Cruanes
b69cc33c26 perf: make let-op functors inline, hopefully 2019-12-14 12:08:48 -06:00
Simon Cruanes
9b76f277f7 more fixes for the shims 2019-12-14 12:08:48 -06:00
Simon Cruanes
616c077880 fix: proper shims for CCArrayLabel too 2019-12-14 12:08:48 -06:00
Simon Cruanes
d5e5b43e1f fix shims for arrays 2019-12-14 12:08:48 -06:00
Simon Cruanes
74e7d87872 fix: backport a pseudo Floatarray pre 4.06 2019-12-14 12:08:48 -06:00
Simon Cruanes
62672fdbd2 fix test 2019-12-14 12:08:48 -06:00
Simon Cruanes
b2d9e69042 feat: put the let operators inside the Infix modules when relevant 2019-12-14 12:08:48 -06:00
Simon Cruanes
bf0227d404 feat: on 4.08, support let operators
close #276
2019-12-14 12:08:48 -06:00
Simon Cruanes
037a0ef922 Merge branch 'wip-ccvec' 2019-12-14 12:08:33 -06:00
Fardale
bbdcd93417 wip: improved gc behavior for ccvector 2019-12-14 11:50:47 -06:00
Fardale
1d589cf4ac use array_is_empty_ instead of direct check 2019-12-14 11:50:47 -06:00
Simon Cruanes
5cb715a206 fix: properly alias to CCChar in containers.ml
close #281
2019-12-14 11:42:19 -06:00
Simon Cruanes
70bd7f1e97 fix: move with_temp_dir from CCIO to CCUnix
it depends on unix, which is a deal breaker for core
2019-12-11 09:46:21 -06:00
Simon Cruanes
28f8872ef5 feat: add monoid_product to Array and Vector 2019-12-10 21:38:07 -06:00
Simon Cruanes
1b5b23a8f1 remove unlabel, remove all traces of Result 2019-12-10 20:48:38 -06:00
Simon Cruanes
30251e9426 bump minimum version of OCaml to 4.03, drop deps {result,uchar}
close #274
2019-12-10 19:56:54 -06:00
Simon Cruanes
858616606b add CCVector.shrink_to_fit to limit memory usage 2019-12-10 16:39:35 -06:00
Simon Cruanes
1239960c42 wip: improved gc behavior for ccvector 2019-12-10 16:39:35 -06:00
Simon Cruanes
236a0c43ce feat: add CCVector.clear_and_reset 2019-12-10 16:39:35 -06:00
Simon Cruanes
0ef454c6dc feat(sexp): expose parse_string_list and the list decoder 2019-12-10 15:50:18 -06:00
Simon Cruanes
c2f8d6811b fix(sexp): set location properly when parsing a file 2019-12-06 20:21:46 -06:00
Simon Cruanes
825e350da0 feat(sexp): reexport atom/list cstors 2019-12-05 15:19:38 -06:00
Simon Cruanes
76bec991a2 feat(io): add with_temp_dir function 2019-12-03 12:49:22 -06:00
Simon Cruanes
7d1862a501 wip: add to_std_seq
see #254
2019-11-20 17:50:40 -06:00
Simon Cruanes
78ef007b77 deprecate CCOpt.to_seq, provide to_iter instead 2019-11-20 17:50:22 -06:00
Simon Cruanes
bd4e4d311d add CCOpt.value to improve compat with Stdlib.Option 2019-11-20 17:49:49 -06:00
Fardale
3804dbff86 add CCVector.mapi 2019-11-17 10:43:18 -06:00
Simon Cruanes
968a39b6bc fix: restore CCSexp.atom which was lost in 2.7 2019-11-13 15:30:11 -06:00
Simon Cruanes
7bdf6f6cef test: use more deterministic test for timer 2019-11-12 10:17:50 -06:00
Simon Cruanes
7cefde490b prepare for 2.7
remove mdx
2019-11-12 08:49:33 -06:00
Simon Cruanes
2241a25d9e CCIO: use attributes for warnings 2019-11-11 20:01:21 -06:00
Simon Cruanes
e106432e21 deprecate CCKList in favor of the standard Seq
see #257
2019-11-11 19:59:37 -06:00
Simon Cruanes
27fb393698 feat(CCIO): add _gen suffixes to some functions
deprecate the previous versions
see #261
2019-11-11 19:55:43 -06:00
Simon Cruanes
edcd97a7ed doc(IO): explain lifetime of gen a bit 2019-11-08 11:27:01 -06:00
Simon Cruanes
11d081a612 doc: add pointer to the repo for gen 2019-11-08 11:17:37 -06:00
Simon Cruanes
09c205db78 fix: missing interface file 2019-11-05 20:16:52 -06:00
Simon Cruanes
853c9f27bd refactor: reuse a bit of code 2019-11-05 19:43:37 -06:00
Simon Cruanes
404e35f850 feat(sexp): provide ability to annotate parsed S-exprs with their position 2019-11-05 19:41:44 -06:00
Simon Cruanes
d6f98032c8 feat(sexp): functorize the parser/printer 2019-11-05 19:24:28 -06:00
Simon Cruanes
2b6d9126c1 feat(ccsexp): support #; for commenting a sexp 2019-11-05 19:02:40 -06:00
Simon Cruanes
2ed821bbe1 style: reindent in ccdeque 2019-11-05 18:23:06 -06:00
Fardale
2fa12665dd change type of CCDeque
Change the definition of the type in CCDeque to remove the Zero cell.
This new type enforce one invariant.
2019-11-04 21:47:09 -06:00
Simon Cruanes
b3ce398624 fix: remove dep from vec to list 2019-10-30 14:28:17 -05:00
Fardale
0dafceb708 Adding to_string (#270)
* add `CCArray.to_string`
* add `CCArrayLabels.to_string`
* add `CCList.to_string`
* add `CCListLabels.to_string`
* add `CCChar.to_string`
* add `CCPair.to_string`
* add `CCHeap.to_string`
* add `CCSet.to_string`
* add `CCVector.to_string`
2019-10-30 14:26:52 -05:00
Simon Cruanes
c1704d71ff style: improve new code 2019-10-29 21:50:22 -05:00
Fardale
509dacb96f add CCDeque.{remove_*;update_*}
functions added:
CCDeque.remove_back
CCDeque.remove_front
CCDeque.update_back
CCDeque.update_front
2019-10-26 17:28:51 -05:00
Fardale
a33963c335 add CCDeque.{*_opt}
Functions added:
CCDeque.peek_front_opt
CCDeque.peek_back_opt
CCDeque.take_back_opt
CCDeque.take_front_opt
2019-10-23 19:16:07 -05:00
Fardale
035aac9a72 add invariant in CCDeque.ml 2019-10-23 19:16:07 -05:00
Simon Cruanes
1b8d9ca9a6 style: small fix 2019-10-22 18:14:59 -05:00
Simon Cruanes
c4631b78dc add CCDeque.{filter,filter_map} 2019-10-22 18:14:59 -05:00