Skip to content

Commit e81593a

Browse files
v0.18~preview.130.26+1192
1 parent cb99b8b commit e81593a

File tree

295 files changed

+14978
-16245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+14978
-16245
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2016--2024 Jane Street Group, LLC <[email protected]>
3+
Copyright (c) 2016--2025 Jane Street Group, LLC <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

base.opam

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ build: [
1111
]
1212
depends: [
1313
"ocaml" {>= "5.1.0"}
14+
"basement"
1415
"ocaml_intrinsics_kernel"
16+
"ppx_base"
17+
"ppx_cold"
18+
"ppx_hash"
19+
"ppxlib_jane"
1520
"sexplib0"
16-
"dune" {>= "3.11.0"}
21+
"dune" {>= "3.17.0"}
1722
"dune-configurator"
23+
"ppxlib" {= "0.33.0+jst"}
1824
]
1925
available: arch != "arm32" & arch != "x86_32"
2026
synopsis: "Full standard library replacement for OCaml"

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
(lang dune 3.11)
1+
(lang dune 3.17)

generate/generate_pow_overflow_bounds.ml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,12 @@ let gen_array ~typ ~bits ~sign ~indent =
118118
| Pos -> pos_bounds
119119
| Neg -> Array.map pos_bounds ~f:Z.( ~- )
120120
in
121+
pr "Iarray.unsafe_of_array__promise_no_mutation (";
121122
pr "[| %s" (format_entry typ bounds.(0));
122123
for i = 1 to Array.length bounds - 1 do
123124
pr "; %s" (format_entry typ bounds.(i))
124125
done;
125-
pr "|]"
126+
pr "|])"
126127
;;
127128

128129
let gen_bounds typ =
@@ -139,30 +140,35 @@ let gen_bounds typ =
139140
| Pos -> "positive"
140141
| Neg -> "negative")
141142
in
142-
pr "let %s : %s array =" (array_name typ Pos) (ocaml_type_name typ);
143+
pr "let %s : %s iarray =" (array_name typ Pos) (ocaml_type_name typ);
144+
pr " Portability_hacks.Cross.Portable.(cross (iarray infer))";
145+
pr " (";
143146
(match typ with
144147
| Int ->
145148
pr " match Int_conversions.num_bits_int with";
146-
pr " | 32 -> Array.map %s ~f:Stdlib.Int32.to_int" (array_name Int32 Pos);
149+
pr " | 32 -> Iarray.map %s ~f:Stdlib.Int32.to_int" (array_name Int32 Pos);
147150
pr " | 63 ->";
148151
gen_array ~typ ~bits:63 ~sign:Pos ~indent:4;
149152
pr " | 31 ->";
150153
gen_array ~typ ~bits:31 ~sign:Pos ~indent:4;
151154
pr " | _ -> assert false"
152155
| _ -> gen_array ~typ ~bits:(bits typ) ~sign:Pos ~indent:2);
153-
pr "";
156+
pr " )";
154157
if generate_negative_bounds typ
155158
then (
156-
pr "let %s : %s array =" (array_name typ Neg) (ocaml_type_name typ);
157-
gen_array ~typ ~bits:(bits typ) ~sign:Neg ~indent:2)
159+
pr "let %s : %s iarray =" (array_name typ Neg) (ocaml_type_name typ);
160+
pr " Portability_hacks.Cross.Portable.(cross (iarray infer))";
161+
pr " (";
162+
gen_array ~typ ~bits:(bits typ) ~sign:Neg ~indent:2;
163+
pr " )")
158164
;;
159165

160166
let () =
161167
pr "(* This file was autogenerated by %s *)" Sys.argv.(0);
162168
pr "";
163169
pr "open! Import";
164170
pr "";
165-
pr "module Array = Array0";
171+
pr "module Iarray = Iarray0";
166172
pr "";
167173
pr "(* We have to use Int64.to_int_exn instead of int constants to make";
168174
pr " sure that file can be preprocessed on 32-bit machines. *)";

hash_types/README.org

Lines changed: 0 additions & 4 deletions
This file was deleted.

hash_types/src/base_internalhash_types.ml

Lines changed: 0 additions & 54 deletions
This file was deleted.

hash_types/src/dune

Lines changed: 0 additions & 11 deletions
This file was deleted.

hash_types/src/internalhash.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

hash_types/src/internalhash_stubs.c

Lines changed: 0 additions & 111 deletions
This file was deleted.

hash_types/src/runtime.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)