Commit graph

2998 commits

Author SHA1 Message Date
Simon Cruanes
31eb8d163f format 2026-03-15 03:25:54 +00:00
Simon Cruanes
abe924eb57 fix warnings
format and minor fixes
2026-03-15 03:25:12 +00:00
Simon Cruanes
ac8e8bdda7 bench of hash 2026-03-15 03:25:12 +00:00
Simon Cruanes
fe5231a376 tests for hashes 2026-03-15 03:25:12 +00:00
Simon Cruanes
7fdee4a17e hash mixer and combiner in C 2026-03-15 03:24:52 +00:00
Simon Cruanes
a20eddfdd3 add pre commit hook 2026-03-15 03:23:34 +00:00
Simon Cruanes
aeae7c1039
Merge pull request #488 from c-cube/simon/xxhash
Some checks failed
format / format (push) Has been cancelled
Build and Test / build (push) Has been cancelled
add containers.xxhash
2026-03-14 20:29:20 -04:00
Simon Cruanes
92f58d84a0 tests 2026-03-14 04:04:36 +00:00
Simon Cruanes
9865a26c91 nicer API with and without seed 2026-03-14 04:04:32 +00:00
Simon Cruanes
a3c061a388 simplify xxhash, no streaming mode after all 2026-03-14 03:53:08 +00:00
Simon Cruanes
9fa87cd9aa fix 32bit platform bug 2026-03-14 03:48:06 +00:00
Simon Cruanes
d12a809658 update tests 2026-03-14 03:34:48 +00:00
Simon Cruanes
e52574c5fb revamp xxhash API 2026-03-14 03:34:35 +00:00
Simon Cruanes
418e0fbf7f xxhash tests 2026-03-14 03:14:19 +00:00
Simon Cruanes
a999f564d6 xxhash bindings 2026-03-14 03:09:31 +00:00
Simon Cruanes
aba4c79625 fix CCString: clear buffer after use in sprintf
Some checks failed
format / format (push) Has been cancelled
Build and Test / build (push) Has been cancelled
fix #487
2026-03-02 17:36:31 -05:00
Simon Cruanes
08e8fd3d54 regression test for #487 2026-03-02 17:36:02 -05:00
Simon Cruanes
bc9f361e56
forgot to format
Some checks failed
format / format (push) Has been cancelled
Build and Test / build (push) Has been cancelled
2026-02-14 21:08:29 -05:00
Simon Cruanes
42bfe9c8c6
prepare for 3.18 2026-02-14 20:38:37 -05:00
Simon Cruanes
ea5d9bbdf4
test pvec: avoid size explosion 2026-02-14 20:38:00 -05:00
Simon Cruanes
9ec34f8bf8
fix(CCSeq): correct conditional compilation version for init
Seq.init was added in OCaml 4.14, not 4.11. This aligns the
implementation with the interface which was already correctly
marked with [@@@iflt 4.14].
2026-02-12 08:52:46 -05:00
Simon Cruanes
2271ddedcc
fix leb128 slice bug
Some checks are pending
format / format (push) Waiting to run
Build and Test / build (push) Waiting to run
2026-02-10 15:03:46 -05:00
Simon Cruanes
42c4f1c173
add tests for leb128 library (#486)
add tests for containers.leb128

also fix a bug in fix zigzag decoding
2026-02-09 21:24:59 -05:00
Simon Cruanes
91cc585d5f
fix (#485) 2026-02-09 21:16:31 -05:00
Simon Cruanes
bcfa092a73
Merge pull request #436 from c-cube/408-cleanup
Some checks are pending
format / format (push) Waiting to run
Build and Test / build (push) Waiting to run
post 4.08 cleanup, removing a lot of functions that are now always present in the stdlib.
2026-02-09 12:25:31 -05:00
Emmanuel Arrighi
35803e586c CCFormat(fix): restaure the behaviour of CCFormat.opt 2026-02-06 19:42:59 +01:00
Emmanuel Arrighi
8f30ce25b6 Revert "CCFun(cleanup): align CCFun.compose with the stdlib"
This reverts commit b649ac9dc5.
2026-02-06 19:42:59 +01:00
Emmanuel Arrighi
b8f1048ce4 CCString(cleanup): remove function always existing in stdlib > 4.08 2026-02-06 19:42:59 +01:00
Emmanuel Arrighi
9eb002304f CCSet(cleanup): remove function always in Stdlib for > 4.08 2026-02-06 19:42:59 +01:00
Emmanuel Arrighi
d80d36106b CCSeq(chore): sync with stdlib 2026-02-06 19:42:59 +01:00
Emmanuel Arrighi
405dfa4891 chore: inline the doc of the included modules 2026-02-06 14:36:44 +01:00
Emmanuel Arrighi
30f7ac7551 CCResult(cleanup): sync CCResult with Stdlib.Result. 2026-02-06 14:28:56 +01:00
Emmanuel Arrighi
3af76f266c CCPair(chore): sync CCPair with Stdlib.Pair 2026-02-06 12:34:00 +01:00
Emmanuel Arrighi
bb31265e52 CCOption(cleanup): remove functions that are in the stdlib 2026-02-06 12:16:28 +01:00
Emmanuel Arrighi
5e60c0d237 CCNativeint(cleanup): cleanup with bump ocaml version to 4.08 2026-02-06 11:28:06 +01:00
Emmanuel Arrighi
571f9f3793 CCMap(cleanup): clean function that are in the stdlib 2026-02-06 11:17:18 +01:00
Fardale
0cd4bbf240 CCList(cleanup): clean functions that are in the stdlib 2026-02-06 10:44:54 +01:00
Fardale
52fc619335 CCInt(chore): conditionally define function existing in newer OCaml 2026-02-06 10:44:54 +01:00
Fardale
b8684b77df CCInt64(chore): conditionally define function existing in newer OCaml 2026-02-06 10:44:54 +01:00
Fardale
bf7f4897c6 CCInt32(chore): add condition around functions existing in newer OCaml 2026-02-06 10:44:54 +01:00
Fardale
8268e29c48 CCHashtbl(cleanup): remove function always present on 4.08 2026-02-06 10:44:54 +01:00
Fardale
3516c5dc0e CCFormat(feat): add option and result, change opt
Add CCFormat.option and CCFormat.result as aliases to
Format.pp_print_option and Format.pp_print_result. Make CCFormat.opt an
alias of CCFormat.option, as such this add an optional argument to print
the case "None" but change the default behaviour. Previously, it as
printing "some _" or "none" now it print something only in the case of
"Some x" and just "x".
2026-02-06 10:44:54 +01:00
Fardale
b649ac9dc5 CCFun(cleanup): align CCFun.compose with the stdlib
Conditionally define CCFun.compose and align its definition with the
stdlib. The arguments are now swapped.
2026-02-06 10:44:54 +01:00
Fardale
74b787f7e6 CCEither(cleanup): conditionnally use the Either module
Include the Either module when available (ocaml >= 4.12)
2026-02-06 10:44:54 +01:00
Fardale
f05c07d20d CCChar(cleanup): remove CCChar.compare from the mli
Char.compare already existe
2026-02-06 10:44:54 +01:00
Fardale
50cb263a6e update CHANGELOG with current breaking changes 2026-02-06 10:44:51 +01:00
Fardale
6a6ccbbc5c CCInt64(cleanup): remove function always present on 4.08 2026-02-06 10:36:29 +01:00
Fardale
9e3baf8ff1 CCInt32(cleanup): remove function always present on 4.08 2026-02-06 10:36:29 +01:00
Fardale
88f093b64d CCInt(cleanup): remove function always present on 4.08 2026-02-06 10:36:29 +01:00
Fardale
0522770173 CCFloat(cleanup): remove function always present on 4.08 2026-02-06 10:36:29 +01:00