Commit graph

426 commits

Author SHA1 Message Date
Simon Cruanes
7c1ca1d82f
prepare for 3.13 2023-12-05 16:09:29 -05:00
Simon Cruanes
3a296ba127
feat ccfunvec: add fold_rev 2023-11-16 15:32:07 -05:00
BridgeTheMasterBuilder
c97b934542
fix(CCMultiMap): Integrate suggested changes to doc comment for find_right
Co-authored-by: Simon Cruanes <simon.cruanes.2007@m4x.org>
2023-08-03 21:39:39 +00:00
BridgeTheMasterBuilder
85cf52d5ee
fix(CCMultiMap): Integrate suggested changes to doc comment for find_left
Co-authored-by: Simon Cruanes <simon.cruanes.2007@m4x.org>
2023-08-03 21:39:18 +00:00
Master Builder
e0fb678d1e fix(CCMultiMap): Correct @since tags 2023-08-03 15:40:12 +00:00
Master Builder
528b9030a4 fix(CCMultiMap): Rename functions find_left and find_right in the bidirectional multimap to find_left_iter and find_right_iter respectively to reflect their usage, and add new functions to replace the old find_left and find_right that return a list of values rather than an iterator, to make the signatures of CCMultiMap.S and CCMultiMap.BIDIR cohere. Additionally, change the return type of S.find_iter from t -> key -> (value -> unit) -> unit to t -> key -> value iter. These types are the same though, it's just for clarity since CCMultiMap already exposes an iter type 2023-08-03 15:17:47 +00:00
Simon Cruanes
1a23731730
remove conditional over OCaml >= 4.08
in particular, all the let-ops are now unconditional!
2023-06-24 15:22:21 -04:00
Simon Cruanes
77ff1ee6a5
stricter warnings; remove dead code 2023-06-06 22:03:24 -04:00
Simon Cruanes
e6afa76eaf
fix for OCaml 5.1: use a generative functor for CCBitfield 2023-06-06 10:26:11 -04:00
Simon Cruanes
4a46fa4d71
add a op test for Fun_vec 2023-04-09 14:59:39 -04:00
Fardale
a30e471a6f
fix doc (#425) 2023-02-14 20:56:15 -05:00
Simon Cruanes
5ff60d2a52
fix doc 2023-02-14 08:50:56 -05:00
Simon Cruanes
161c192bff
prepare for 3.11 2023-02-07 12:39:35 -05:00
Simon Cruanes
d4e582e829
add CCHet.Tbl.{clear,reset} 2022-11-30 09:21:35 -05:00
Simon Cruanes
249dc3596e
prepare for 3.9 2022-07-06 22:27:25 -04:00
Simon Cruanes
e15971934d
feat(BV): add init 2022-07-04 22:15:06 -04:00
Simon Cruanes
36eb87db21
fix(BV): clear bits properly 2022-07-04 22:09:14 -04:00
Simon Cruanes
d9717095ef
improve doc for BV 2022-07-04 22:04:40 -04:00
Simon Cruanes
60b9ece69e
feat(BV): correct many bugs, clarify parts of the API 2022-07-04 21:49:50 -04:00
Simon Cruanes
090945c3f8
fix(BV): equal function 2022-07-04 16:08:17 -04:00
Simon Cruanes
856e73d2b2
fix 2022-07-04 14:37:24 -04:00
Simon Cruanes
3dd63964fb
Merge branch 'master' into ccbv_bytes2 2022-07-04 14:35:25 -04:00
Simon Cruanes
10865eaced reformat 2022-07-04 13:36:06 -04:00
Simon Cruanes
919360f96e
remove ounit 2022-07-02 23:18:16 -04:00
Simon Cruanes
1e4a22fbf2
refactor: finish migration to qtest 2022-07-02 22:09:25 -04:00
Simon Cruanes
1111c0fa9a
wip: convert tests into testlib 2022-07-02 14:47:03 -04:00
Simon Cruanes
58ac755f82
chore: move to ounit2
see if that fixes the windows build.
2022-06-09 21:39:09 -04:00
Simon Cruanes
ef9851983f
update dune to 1.10, condition some rules to unix 2022-02-20 22:01:39 -05:00
Simon Cruanes
b23e075762
fix occurrences of warning 50 2022-02-20 22:01:02 -05:00
Simon Cruanes
2a1c7cd8f0
fix warning 2022-02-11 21:15:04 -05:00
Simon Cruanes
8c9d7016b8
perf: uniformize ocamlopt_flags
we don't need codegen which depends on >= 4.03, it's assumed. Also
include a reasonable value for `-inline` when flambda isn't available.
2022-02-03 18:54:59 -05:00
Simon Cruanes
3960ea3792
feat(BV): add set_bool 2022-01-02 21:58:45 -05:00
Simon Cruanes
3d57a5c86e
feat(CCBV): prevent resize from shrinking underlying array
also add `BV.resize_minimize_memory` to force shrinking. This shouldn't
be the default because it can allocate a lot in case of repeated
shrinkings.
2022-01-02 21:57:53 -05:00
Simon Cruanes
92463d33c5
perf(BV): make more functions inline, use raise_notrace 2022-01-02 21:56:33 -05:00
Simon Cruanes
ced66a76e1
perf(CCBV): better bitwise operations
- a 8-bit popcount
- simpler logic for LSB masks
2022-01-02 21:45:26 -05:00
Fardale
099f2e176f chore(doc): adapt module docstring for the index page 2021-11-11 14:40:35 +01:00
Fardale
302dba6cb5 chore(CCOption): rename CCOpt to CCOption and deprecate CCOpt
In the stdlib the module associated with the option type is called
Option and in containers it was called CCOpt. Renaming CCOpt to CCOption
make the name of containers module uniforme with respect to the stdlib.
2021-09-22 23:07:05 +02:00
Simon Cruanes
aa05f69471 prepare for 3.5 2021-08-04 16:49:29 -04:00
Simon Cruanes
40a6c17548 small changes in CCIntMap, some cleanup 2021-06-06 14:14:05 -04:00
Fardale
19c65b5472 apply comments from the review 2021-05-23 15:01:36 +02:00
Fardale
6a3e446d27 use precomputed table for count_bits_ 2021-05-23 14:49:31 +02:00
Fardale
8ff253f18d chore(CCBV): clean comments 2021-05-22 22:09:24 +02:00
Fardale
8f65bf639b use bytes instead of int array for CCBV 2021-05-22 21:38:36 +02:00
Simon Cruanes
795ae5c546 bv: also refactor inter 2021-05-17 10:03:58 -04:00
Simon Cruanes
1c8265c3f3 bv: refactor for performance and readability 2021-05-17 10:01:35 -04:00
Simon Cruanes
92519b4843 fix(bv): index error in union
close #370
2021-05-17 10:00:59 -04:00
Simon Cruanes
a642aa6f6b bv: add more tests, including regression for #370 2021-05-17 10:00:32 -04:00
Simon Cruanes
1b0639886d feat(bv): add equal 2021-05-17 10:00:05 -04:00
Simon Cruanes
6bfd7f125e test: fix too broad test 2021-05-04 08:54:08 -04:00
Josh Berdine
9211a01f35 code review 2021-04-16 15:15:11 +01:00