@grain/binaryen.ml 0.8.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- binaryen-archive/.gitignore +1 -0
- binaryen-archive/CHANGELOG.md +93 -0
- binaryen-archive/README.md +29 -11
- binaryen-archive/binaryen.opam +8 -8
- binaryen-archive/dune-project +1 -1
- binaryen-archive/dune-workspace +1 -1
- binaryen-archive/esy.lock/index.json +537 -460
- binaryen-archive/esy.lock/opam/{base.v0.14.1 → base.v0.14.2}/opam +4 -4
- binaryen-archive/esy.lock/opam/biniou.1.2.1/opam +1 -1
- binaryen-archive/esy.lock/opam/{cppo.1.6.7 → cppo.1.6.8}/opam +4 -6
- binaryen-archive/esy.lock/opam/{csexp.1.4.0 → csexp.1.5.1}/opam +11 -9
- binaryen-archive/esy.lock/opam/{dune-build-info.2.8.2 → dune-build-info.2.9.1}/opam +5 -5
- binaryen-archive/esy.lock/opam/{dune-configurator.2.8.2 → dune-configurator.2.9.1}/opam +5 -5
- binaryen-archive/esy.lock/opam/{dune.2.8.2 → dune.2.9.1}/opam +4 -4
- binaryen-archive/esy.lock/opam/easy-format.1.3.2/opam +1 -1
- binaryen-archive/esy.lock/opam/{fix.20201120 → fix.20211231}/opam +7 -5
- binaryen-archive/esy.lock/opam/js_of_ocaml-compiler.3.11.0/opam +54 -0
- binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.11.0/opam +44 -0
- binaryen-archive/esy.lock/opam/js_of_ocaml.3.11.0/opam +45 -0
- binaryen-archive/esy.lock/opam/{menhir.20201216 → menhir.20211128}/opam +8 -6
- binaryen-archive/esy.lock/opam/{menhirLib.20201216 → menhirLib.20211128}/opam +8 -6
- binaryen-archive/esy.lock/opam/{menhirSdk.20201216 → menhirSdk.20211128}/opam +8 -6
- binaryen-archive/esy.lock/opam/ocaml-compiler-libs.v0.12.4/opam +39 -0
- binaryen-archive/esy.lock/opam/{ocaml-lsp-server.1.4.0 → ocaml-lsp-server.1.9.0}/opam +15 -12
- binaryen-archive/esy.lock/opam/{ocaml-migrate-parsetree.2.1.0 → ocaml-migrate-parsetree.2.3.0}/opam +13 -10
- binaryen-archive/esy.lock/opam/ocaml-version.3.4.0/opam +49 -0
- binaryen-archive/esy.lock/opam/ocamlbuild.0.14.0/opam +1 -1
- binaryen-archive/esy.lock/opam/{ocamlfind.1.8.1 → ocamlfind.1.9.1}/opam +19 -39
- binaryen-archive/esy.lock/opam/ocamlformat-rpc-lib.0.19.0/opam +40 -0
- binaryen-archive/esy.lock/opam/ocamlformat.0.18.0/opam +56 -0
- binaryen-archive/esy.lock/opam/{odoc.1.5.2 → odoc.1.5.3}/opam +12 -12
- binaryen-archive/esy.lock/opam/pp.1.1.2/opam +58 -0
- binaryen-archive/esy.lock/opam/ppx_derivers.1.2.1/opam +1 -1
- binaryen-archive/esy.lock/opam/ppx_yojson_conv_lib.v0.14.0/opam +2 -2
- binaryen-archive/esy.lock/opam/{ppxlib.0.21.0 → ppxlib.0.22.2}/opam +40 -32
- binaryen-archive/esy.lock/opam/{re.1.9.0 → re.1.10.3}/opam +8 -4
- binaryen-archive/esy.lock/opam/result.1.5/opam +2 -2
- binaryen-archive/esy.lock/opam/sexplib0.v0.14.0/opam +2 -2
- binaryen-archive/esy.lock/opam/spawn.v0.15.0/opam +56 -0
- binaryen-archive/esy.lock/opam/stdio.v0.14.0/opam +2 -2
- binaryen-archive/esy.lock/opam/{topkg.1.0.3 → topkg.1.0.4}/opam +18 -22
- binaryen-archive/esy.lock/opam/tyxml.4.5.0/opam +42 -0
- binaryen-archive/esy.lock/opam/uucp.14.0.0/opam +41 -0
- binaryen-archive/esy.lock/opam/{uuseg.13.0.0 → uuseg.14.0.0}/opam +22 -28
- binaryen-archive/esy.lock/opam/yojson.1.7.0/opam +1 -1
- binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.8.1_opam_override/files/findlib-1.8.1.patch → opam__s__ocamlfind_opam__c__1.9.1_opam_override/files/findlib-1.9.1.patch} +0 -0
- binaryen-archive/esy.lock/overrides/{opam__s__ocamlfind_opam__c__1.8.1_opam_override → opam__s__ocamlfind_opam__c__1.9.1_opam_override}/package.json +1 -1
- binaryen-archive/js/binaryen.es5.js +5 -0
- binaryen-archive/js/dune +4 -6
- binaryen-archive/js/element_segment.ml +33 -0
- binaryen-archive/js/export.ml +37 -0
- binaryen-archive/js/expression.ml +935 -178
- binaryen-archive/js/function.ml +31 -0
- binaryen-archive/js/global.ml +29 -0
- binaryen-archive/js/import.ml +24 -0
- binaryen-archive/js/literal.ml +8 -4
- binaryen-archive/js/module.ml +40 -64
- binaryen-archive/js/op.ml +9 -78
- binaryen-archive/js/settings.ml +60 -0
- binaryen-archive/js/stubs.c +15 -0
- binaryen-archive/js/table.ml +29 -0
- binaryen-archive/js/type.ml +3 -0
- binaryen-archive/package.json +15 -21
- binaryen-archive/src/binaryen_stubs_exports.c +78 -0
- binaryen-archive/src/binaryen_stubs_expressions.c +1300 -0
- binaryen-archive/src/binaryen_stubs_features.c +7 -0
- binaryen-archive/src/binaryen_stubs_functions.c +78 -0
- binaryen-archive/src/binaryen_stubs_globals.c +63 -0
- binaryen-archive/src/binaryen_stubs_imports.c +29 -0
- binaryen-archive/src/binaryen_stubs_memory.c +1 -1
- binaryen-archive/src/binaryen_stubs_modules.c +0 -122
- binaryen-archive/src/binaryen_stubs_ops.c +19 -173
- binaryen-archive/src/binaryen_stubs_settings.c +145 -0
- binaryen-archive/src/binaryen_stubs_tables.c +145 -0
- binaryen-archive/src/binaryen_stubs_types.c +18 -0
- binaryen-archive/src/dune +5 -43
- binaryen-archive/src/element_segment.ml +13 -0
- binaryen-archive/src/export.ml +33 -0
- binaryen-archive/src/expression.ml +808 -73
- binaryen-archive/src/function.ml +18 -0
- binaryen-archive/src/global.ml +14 -0
- binaryen-archive/src/import.ml +12 -0
- binaryen-archive/src/literal.ml +2 -2
- binaryen-archive/src/module.ml +62 -38
- binaryen-archive/src/ocaml_helpers.c +0 -8
- binaryen-archive/src/ocaml_helpers.h +2 -3
- binaryen-archive/src/op.ml +18 -131
- binaryen-archive/src/settings.ml +45 -0
- binaryen-archive/src/table.ml +26 -0
- binaryen-archive/src/type.ml +2 -0
- binaryen-archive/test/config/dune +8 -0
- binaryen-archive/test/config/ocamlopt_flags.ml +16 -0
- binaryen-archive/test/dune +6 -9
- binaryen-archive/test/test.expected +76 -0
- binaryen-archive/test/test.ml +110 -8
- binaryen-archive/virtual/dune +2 -2
- binaryen-archive/virtual/element_segment.mli +11 -0
- binaryen-archive/virtual/export.mli +22 -0
- binaryen-archive/virtual/expression.mli +389 -33
- binaryen-archive/virtual/function.mli +16 -0
- binaryen-archive/virtual/global.mli +12 -0
- binaryen-archive/virtual/import.mli +8 -0
- binaryen-archive/virtual/literal.mli +2 -2
- binaryen-archive/virtual/module.mli +25 -27
- binaryen-archive/virtual/op.mli +9 -53
- binaryen-archive/virtual/settings.mli +35 -0
- binaryen-archive/virtual/table.mli +19 -0
- binaryen-archive/virtual/type.mli +2 -0
- binaryen-archive/esy.lock/opam/conf-m4.1/opam +0 -22
- binaryen-archive/esy.lock/opam/dot-merlin-reader.4.1/opam +0 -30
- binaryen-archive/esy.lock/opam/js_of_ocaml-compiler.3.9.1/opam +0 -40
- binaryen-archive/esy.lock/opam/js_of_ocaml-ppx.3.9.0/opam +0 -30
- binaryen-archive/esy.lock/opam/js_of_ocaml.3.9.0/opam +0 -31
- binaryen-archive/esy.lock/opam/ocaml-compiler-libs.v0.12.3/opam +0 -29
- binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocaml-stub +0 -4
- binaryen-archive/esy.lock/opam/ocamlfind.1.8.1/files/ocamlfind.install +0 -6
- binaryen-archive/esy.lock/opam/ocamlformat.0.15.1/opam +0 -41
- binaryen-archive/esy.lock/opam/tyxml.4.4.0/opam +0 -47
- binaryen-archive/esy.lock/opam/uucp.13.0.0/opam +0 -44
- binaryen-archive/esy.lock/overrides/opam__s__conf_m4_opam__c__1_opam_override/package.json +0 -6
- binaryen-archive/js/features.ml +0 -27
- binaryen-archive/js/function_table.ml +0 -11
- binaryen-archive/src/binaryen_stubs_function_tables.c +0 -25
- binaryen-archive/src/config/dune +0 -8
- binaryen-archive/src/config/library_flags.ml +0 -17
- binaryen-archive/src/features.ml +0 -49
- binaryen-archive/src/function_table.ml +0 -4
- binaryen-archive/vendor/binaryen-c.h +0 -2647
- binaryen-archive/vendor/js/index.es5.js +0 -5
- binaryen-archive/vendor/linux/libbinaryen.a +0 -0
- binaryen-archive/vendor/linux/libbinaryen.so +0 -0
- binaryen-archive/vendor/macosx/libbinaryen.a +0 -0
- binaryen-archive/vendor/macosx/libbinaryen.dylib +0 -0
- binaryen-archive/vendor/mingw64/libbinaryen.a +0 -0
- binaryen-archive/vendor/mingw64/libbinaryen.dll +0 -0
- binaryen-archive/vendor/wasm-delegations.h +0 -85
- binaryen-archive/virtual/features.mli +0 -23
- binaryen-archive/virtual/function_table.mli +0 -2
binaryen-archive/virtual/op.mli
CHANGED
|
@@ -424,8 +424,6 @@ val abs_vec_i8x16 : t
|
|
|
424
424
|
|
|
425
425
|
val neg_vec_i8x16 : t
|
|
426
426
|
|
|
427
|
-
val any_true_vec_i8x16 : t
|
|
428
|
-
|
|
429
427
|
val all_true_vec_i8x16 : t
|
|
430
428
|
|
|
431
429
|
val bitmask_vec_i8x16 : t
|
|
@@ -448,8 +446,6 @@ val sub_sat_s_vec_i8x16 : t
|
|
|
448
446
|
|
|
449
447
|
val sub_sat_u_vec_i8x16 : t
|
|
450
448
|
|
|
451
|
-
val mul_vec_i8x16 : t
|
|
452
|
-
|
|
453
449
|
val min_s_vec_i8x16 : t
|
|
454
450
|
|
|
455
451
|
val min_u_vec_i8x16 : t
|
|
@@ -464,8 +460,6 @@ val abs_vec_i16x8 : t
|
|
|
464
460
|
|
|
465
461
|
val neg_vec_i16x8 : t
|
|
466
462
|
|
|
467
|
-
val any_true_vec_i16x8 : t
|
|
468
|
-
|
|
469
463
|
val all_true_vec_i16x8 : t
|
|
470
464
|
|
|
471
465
|
val bitmask_vec_i16x8 : t
|
|
@@ -504,8 +498,6 @@ val abs_vec_i32x4 : t
|
|
|
504
498
|
|
|
505
499
|
val neg_vec_i32x4 : t
|
|
506
500
|
|
|
507
|
-
val any_true_vec_i32x4 : t
|
|
508
|
-
|
|
509
501
|
val all_true_vec_i32x4 : t
|
|
510
502
|
|
|
511
503
|
val bitmask_vec_i32x4 : t
|
|
@@ -552,10 +544,6 @@ val neg_vec_f32x4 : t
|
|
|
552
544
|
|
|
553
545
|
val sqrt_vec_f32x4 : t
|
|
554
546
|
|
|
555
|
-
val qfma_vec_f32x4 : t
|
|
556
|
-
|
|
557
|
-
val qfms_vec_f32x4 : t
|
|
558
|
-
|
|
559
547
|
val add_vec_f32x4 : t
|
|
560
548
|
|
|
561
549
|
val sub_vec_f32x4 : t
|
|
@@ -586,10 +574,6 @@ val neg_vec_f64x2 : t
|
|
|
586
574
|
|
|
587
575
|
val sqrt_vec_f64x2 : t
|
|
588
576
|
|
|
589
|
-
val qfma_vec_f64x2 : t
|
|
590
|
-
|
|
591
|
-
val qfms_vec_f64x2 : t
|
|
592
|
-
|
|
593
577
|
val add_vec_f64x2 : t
|
|
594
578
|
|
|
595
579
|
val sub_vec_f64x2 : t
|
|
@@ -618,38 +602,10 @@ val trunc_sat_s_vec_f32x4_to_vec_i32x4 : t
|
|
|
618
602
|
|
|
619
603
|
val trunc_sat_u_vec_f32x4_to_vec_i32x4 : t
|
|
620
604
|
|
|
621
|
-
val trunc_sat_s_vec_f64x2_to_vec_i64x2 : t
|
|
622
|
-
|
|
623
|
-
val trunc_sat_u_vec_f64x2_to_vec_i64x2 : t
|
|
624
|
-
|
|
625
605
|
val convert_s_vec_i32x4_to_vec_f32x4 : t
|
|
626
606
|
|
|
627
607
|
val convert_u_vec_i32x4_to_vec_f32x4 : t
|
|
628
608
|
|
|
629
|
-
val convert_s_vec_i64x2_to_vec_f64x2 : t
|
|
630
|
-
|
|
631
|
-
val convert_u_vec_i64x2_to_vec_f64x2 : t
|
|
632
|
-
|
|
633
|
-
val load_splat_vec8x16 : t
|
|
634
|
-
|
|
635
|
-
val load_splat_vec16x8 : t
|
|
636
|
-
|
|
637
|
-
val load_splat_vec32x4 : t
|
|
638
|
-
|
|
639
|
-
val load_splat_vec64x2 : t
|
|
640
|
-
|
|
641
|
-
val load_ext_s_vec8x8_to_vec_i16x8 : t
|
|
642
|
-
|
|
643
|
-
val load_ext_u_vec8x8_to_vec_i16x8 : t
|
|
644
|
-
|
|
645
|
-
val load_ext_s_vec16x4_to_vec_i32x4 : t
|
|
646
|
-
|
|
647
|
-
val load_ext_u_vec16x4_to_vec_i32x4 : t
|
|
648
|
-
|
|
649
|
-
val load_ext_s_vec32x2_to_vec_i64x2 : t
|
|
650
|
-
|
|
651
|
-
val load_ext_u_vec32x2_to_vec_i64x2 : t
|
|
652
|
-
|
|
653
609
|
val narrow_s_vec_i16x8_to_vec_i8x16 : t
|
|
654
610
|
|
|
655
611
|
val narrow_u_vec_i16x8_to_vec_i8x16 : t
|
|
@@ -658,20 +614,20 @@ val narrow_s_vec_i32x4_to_vec_i16x8 : t
|
|
|
658
614
|
|
|
659
615
|
val narrow_u_vec_i32x4_to_vec_i16x8 : t
|
|
660
616
|
|
|
661
|
-
val
|
|
617
|
+
val swizzle_vec8x16 : t
|
|
662
618
|
|
|
663
|
-
val
|
|
619
|
+
val ref_is_null : t
|
|
664
620
|
|
|
665
|
-
val
|
|
621
|
+
val ref_is_func : t
|
|
666
622
|
|
|
667
|
-
val
|
|
623
|
+
val ref_is_data : t
|
|
668
624
|
|
|
669
|
-
val
|
|
625
|
+
val ref_is_i31 : t
|
|
670
626
|
|
|
671
|
-
val
|
|
627
|
+
val ref_as_non_null : t
|
|
672
628
|
|
|
673
|
-
val
|
|
629
|
+
val ref_as_func : t
|
|
674
630
|
|
|
675
|
-
val
|
|
631
|
+
val ref_as_data : t
|
|
676
632
|
|
|
677
|
-
val
|
|
633
|
+
val ref_as_i31 : t
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
val get_optimize_level : unit -> int
|
|
2
|
+
|
|
3
|
+
val set_optimize_level : int -> unit
|
|
4
|
+
|
|
5
|
+
val get_shrink_level : unit -> int
|
|
6
|
+
|
|
7
|
+
val set_shrink_level : int -> unit
|
|
8
|
+
|
|
9
|
+
val get_debug_info : unit -> bool
|
|
10
|
+
|
|
11
|
+
val set_debug_info : bool -> unit
|
|
12
|
+
|
|
13
|
+
val get_low_memory_unused : unit -> bool
|
|
14
|
+
|
|
15
|
+
val set_low_memory_unused : bool -> unit
|
|
16
|
+
|
|
17
|
+
val get_pass_argument : string -> string
|
|
18
|
+
|
|
19
|
+
val set_pass_argument : string -> string -> unit
|
|
20
|
+
|
|
21
|
+
val get_always_inline_max_size : unit -> int
|
|
22
|
+
|
|
23
|
+
val set_always_inline_max_size : int -> unit
|
|
24
|
+
|
|
25
|
+
val get_flexible_inline_max_size : unit -> int
|
|
26
|
+
|
|
27
|
+
val set_flexible_inline_max_size : int -> unit
|
|
28
|
+
|
|
29
|
+
val get_one_caller_inline_max_size : unit -> int
|
|
30
|
+
|
|
31
|
+
val set_one_caller_inline_max_size : int -> unit
|
|
32
|
+
|
|
33
|
+
val set_colors_enabled : bool -> unit
|
|
34
|
+
|
|
35
|
+
val are_colors_enabled : unit -> bool
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type t
|
|
2
|
+
|
|
3
|
+
val add_table : Module.t -> string -> int -> int -> t
|
|
4
|
+
|
|
5
|
+
val add_active_element_segment :
|
|
6
|
+
Module.t ->
|
|
7
|
+
string ->
|
|
8
|
+
string ->
|
|
9
|
+
string list ->
|
|
10
|
+
Expression.t ->
|
|
11
|
+
Element_segment.t
|
|
12
|
+
|
|
13
|
+
val remove_element_segment : Module.t -> string -> unit
|
|
14
|
+
|
|
15
|
+
val get_num_element_segments : Module.t -> int
|
|
16
|
+
|
|
17
|
+
val get_element_segment : Module.t -> string -> Element_segment.t
|
|
18
|
+
|
|
19
|
+
val get_element_segment_by_index : Module.t -> int -> Element_segment.t
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "tim@gfxmonk.net"
|
|
3
|
-
homepage: "http://www.gnu.org/software/m4/m4.html"
|
|
4
|
-
bug-reports: "https://github.com/ocaml/opam-repository/issues"
|
|
5
|
-
authors: "GNU Project"
|
|
6
|
-
license: "GPL-3.0-only"
|
|
7
|
-
build: [["sh" "-exc" "echo | m4"]]
|
|
8
|
-
depexts: [
|
|
9
|
-
["m4"] {os-family = "debian"}
|
|
10
|
-
["m4"] {os-distribution = "fedora"}
|
|
11
|
-
["m4"] {os-distribution = "rhel"}
|
|
12
|
-
["m4"] {os-distribution = "centos"}
|
|
13
|
-
["m4"] {os-distribution = "alpine"}
|
|
14
|
-
["m4"] {os-distribution = "nixos"}
|
|
15
|
-
["m4"] {os-family = "suse"}
|
|
16
|
-
["m4"] {os-distribution = "ol"}
|
|
17
|
-
["m4"] {os-distribution = "arch"}
|
|
18
|
-
]
|
|
19
|
-
synopsis: "Virtual package relying on m4"
|
|
20
|
-
description:
|
|
21
|
-
"This package can only install if the m4 binary is installed on the system."
|
|
22
|
-
flags: conf
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "defree@gmail.com"
|
|
3
|
-
authors: "The Merlin team"
|
|
4
|
-
synopsis: "Reads config files for merlin"
|
|
5
|
-
homepage: "https://github.com/ocaml/merlin"
|
|
6
|
-
bug-reports: "https://github.com/ocaml/merlin/issues"
|
|
7
|
-
dev-repo: "git+https://github.com/ocaml/merlin.git"
|
|
8
|
-
build: [
|
|
9
|
-
["dune" "subst"] {pinned}
|
|
10
|
-
["dune" "build" "-p" name "-j" jobs]
|
|
11
|
-
]
|
|
12
|
-
depends: [
|
|
13
|
-
"ocaml" {>= "4.06.1" }
|
|
14
|
-
"dune" {>= "2.7.0"}
|
|
15
|
-
"yojson" {>= "1.6.0"}
|
|
16
|
-
"ocamlfind" {>= "1.6.0"}
|
|
17
|
-
"csexp" {>= "1.2.3"}
|
|
18
|
-
"result" {>= "1.5"}
|
|
19
|
-
]
|
|
20
|
-
description:
|
|
21
|
-
"Helper process: reads .merlin files and gives the normalized content to merlin"
|
|
22
|
-
x-commit-hash: "ab02f60994c81166820791b5f465f467d752b8dc"
|
|
23
|
-
url {
|
|
24
|
-
src:
|
|
25
|
-
"https://github.com/ocaml/merlin/releases/download/v4.1/dot-merlin-reader-v4.1.tbz"
|
|
26
|
-
checksum: [
|
|
27
|
-
"sha256=14a36d6fb8646a5df4530420a7861722f1a4ee04753717947305e3676031e7cd"
|
|
28
|
-
"sha512=65fd4ab08904c05651a7ef8971802ffaa428daa920765dbcf162e3c56e8047e4c9e4356daa45efccce7c73a586635c8f6cf8118fd3059789de9aff68579bd436"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "dev@ocsigen.org"
|
|
3
|
-
authors: "Ocsigen team"
|
|
4
|
-
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
|
|
5
|
-
homepage: "http://ocsigen.github.io/js_of_ocaml"
|
|
6
|
-
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
|
|
7
|
-
synopsis: "Compiler from OCaml bytecode to Javascript"
|
|
8
|
-
description: """
|
|
9
|
-
Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
|
|
10
|
-
It makes it possible to run pure OCaml programs in JavaScript
|
|
11
|
-
environment like browsers and Node.js
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
build: [["dune" "build" "-p" name "-j" jobs]]
|
|
15
|
-
|
|
16
|
-
depends: [
|
|
17
|
-
"ocaml" {>= "4.02.0"}
|
|
18
|
-
"dune" {>= "2.5"}
|
|
19
|
-
"ppx_expect" {with-test & >= "v0.12.0"}
|
|
20
|
-
"cmdliner"
|
|
21
|
-
"menhir"
|
|
22
|
-
"ppxlib" {>= "0.15.0"}
|
|
23
|
-
"yojson" # It's optional, but we want users to be able to use source-map without pain.
|
|
24
|
-
]
|
|
25
|
-
|
|
26
|
-
depopts: [ "ocamlfind" ]
|
|
27
|
-
|
|
28
|
-
conflicts: [
|
|
29
|
-
"ocamlfind" {< "1.5.1"}
|
|
30
|
-
"js_of_ocaml" {< "3.0"}
|
|
31
|
-
]
|
|
32
|
-
x-commit-hash: "c97f2543ff7bfa6c8fe683cca7beec884b38f918"
|
|
33
|
-
url {
|
|
34
|
-
src:
|
|
35
|
-
"https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.1/js_of_ocaml-3.9.1.tbz"
|
|
36
|
-
checksum: [
|
|
37
|
-
"sha256=a6de57f502676890191b966d2317a2bef7835786664c37f24e974aed66286545"
|
|
38
|
-
"sha512=f8b880bd3ff9fc1d98c5f65a1d3d9e919d16a20dd1c1c979e154642d1df7c3afc9d688e24fbbcd591974e1debb352d8f3fb2e0ffbb6df94c2d08ccd8d3f42727"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "dev@ocsigen.org"
|
|
3
|
-
authors: "Ocsigen team"
|
|
4
|
-
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
|
|
5
|
-
homepage: "http://ocsigen.github.io/js_of_ocaml"
|
|
6
|
-
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
|
|
7
|
-
synopsis: "Compiler from OCaml bytecode to Javascript"
|
|
8
|
-
description: """
|
|
9
|
-
Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
|
|
10
|
-
It makes it possible to run pure OCaml programs in JavaScript
|
|
11
|
-
environment like browsers and Node.js
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
build: [["dune" "build" "-p" name "-j" jobs]]
|
|
15
|
-
|
|
16
|
-
depends: [
|
|
17
|
-
"ocaml" {>= "4.02.0"}
|
|
18
|
-
"dune" {>= "2.5"}
|
|
19
|
-
"ppxlib" {>= "0.15.0"}
|
|
20
|
-
"js_of_ocaml" {= version}
|
|
21
|
-
]
|
|
22
|
-
x-commit-hash: "95bc95d31122bae5764022f878d8a6dd95ceb169"
|
|
23
|
-
url {
|
|
24
|
-
src:
|
|
25
|
-
"https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.0/js_of_ocaml-3.9.0.tbz"
|
|
26
|
-
checksum: [
|
|
27
|
-
"sha256=74d3b17b089af04cde29173c9e7a1154b9a784ba415aeef5026440aeb907cb54"
|
|
28
|
-
"sha512=affc91ed58d71e79752595345fcb2afe0d86378a73030ce64ef5624b9fef31925a2c2bb5e772fea017a508da292c351ad89b77e28361ff6f8ed345fecb78b31d"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "dev@ocsigen.org"
|
|
3
|
-
authors: "Ocsigen team"
|
|
4
|
-
bug-reports: "https://github.com/ocsigen/js_of_ocaml/issues"
|
|
5
|
-
homepage: "http://ocsigen.github.io/js_of_ocaml"
|
|
6
|
-
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
|
|
7
|
-
synopsis: "Compiler from OCaml bytecode to Javascript"
|
|
8
|
-
description: """
|
|
9
|
-
Js_of_ocaml is a compiler from OCaml bytecode to JavaScript.
|
|
10
|
-
It makes it possible to run pure OCaml programs in JavaScript
|
|
11
|
-
environment like browsers and Node.js
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
build: [["dune" "build" "-p" name "-j" jobs]]
|
|
15
|
-
|
|
16
|
-
depends: [
|
|
17
|
-
"ocaml" {>= "4.02.0"}
|
|
18
|
-
"dune" {>= "2.5"}
|
|
19
|
-
"ppxlib" {>= "0.15.0" }
|
|
20
|
-
"uchar"
|
|
21
|
-
"js_of_ocaml-compiler" {>= "3.9.0" & < "3.10.0"}
|
|
22
|
-
]
|
|
23
|
-
x-commit-hash: "95bc95d31122bae5764022f878d8a6dd95ceb169"
|
|
24
|
-
url {
|
|
25
|
-
src:
|
|
26
|
-
"https://github.com/ocsigen/js_of_ocaml/releases/download/3.9.0/js_of_ocaml-3.9.0.tbz"
|
|
27
|
-
checksum: [
|
|
28
|
-
"sha256=74d3b17b089af04cde29173c9e7a1154b9a784ba415aeef5026440aeb907cb54"
|
|
29
|
-
"sha512=affc91ed58d71e79752595345fcb2afe0d86378a73030ce64ef5624b9fef31925a2c2bb5e772fea017a508da292c351ad89b77e28361ff6f8ed345fecb78b31d"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "opensource@janestreet.com"
|
|
3
|
-
authors: ["Jane Street Group, LLC <opensource@janestreet.com>"]
|
|
4
|
-
homepage: "https://github.com/janestreet/ocaml-compiler-libs"
|
|
5
|
-
bug-reports: "https://github.com/janestreet/ocaml-compiler-libs/issues"
|
|
6
|
-
dev-repo: "git+https://github.com/janestreet/ocaml-compiler-libs.git"
|
|
7
|
-
license: "MIT"
|
|
8
|
-
build: [
|
|
9
|
-
["dune" "build" "-p" name "-j" jobs]
|
|
10
|
-
]
|
|
11
|
-
depends: [
|
|
12
|
-
"ocaml" {>= "4.04.1"}
|
|
13
|
-
"dune" {>= "1.5.1"}
|
|
14
|
-
]
|
|
15
|
-
synopsis: """OCaml compiler libraries repackaged"""
|
|
16
|
-
description: """
|
|
17
|
-
|
|
18
|
-
This packages exposes the OCaml compiler libraries repackages under
|
|
19
|
-
the toplevel names Ocaml_common, Ocaml_bytecomp, Ocaml_optcomp, ...
|
|
20
|
-
"""
|
|
21
|
-
x-commit-hash: "7f5d1d2931b96fb3ee6dd569a469b51f621a6dd4"
|
|
22
|
-
url {
|
|
23
|
-
src:
|
|
24
|
-
"https://github.com/janestreet/ocaml-compiler-libs/releases/download/v0.12.3/ocaml-compiler-libs-v0.12.3.tbz"
|
|
25
|
-
checksum: [
|
|
26
|
-
"sha256=a8403531439c14bbda2d504ef93610fd29a8e9520fc700f21889d893a513e3c9"
|
|
27
|
-
"sha512=0bb03b38e93bab3274a8ade38d017808110bc02f2181a594d8775c68fdd465733393f0451dbbf8860e6b50b56c45671d2182637c0840d1d6574803ec18673972"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "OCamlFormat Team <ocamlformat-team@fb.com>"
|
|
3
|
-
authors: "Josh Berdine <jjb@fb.com>"
|
|
4
|
-
homepage: "https://github.com/ocaml-ppx/ocamlformat"
|
|
5
|
-
bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues"
|
|
6
|
-
dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git"
|
|
7
|
-
license: "MIT"
|
|
8
|
-
build: [
|
|
9
|
-
["ocaml" "tools/gen_version.mlt" "lib/Version.ml" version] {pinned}
|
|
10
|
-
["dune" "build" "-p" name "-j" jobs]
|
|
11
|
-
["dune" "runtest" "-p" name "-j" jobs] {with-test}
|
|
12
|
-
]
|
|
13
|
-
depends: [
|
|
14
|
-
"ocaml" {>= "4.06" & < "4.12"}
|
|
15
|
-
"alcotest" {with-test}
|
|
16
|
-
"base" {>= "v0.12.0" & < "v0.15"}
|
|
17
|
-
"base-unix"
|
|
18
|
-
"cmdliner"
|
|
19
|
-
"dune" {>= "2.2.0"}
|
|
20
|
-
"fix"
|
|
21
|
-
"fpath"
|
|
22
|
-
"menhir"
|
|
23
|
-
"ocp-indent" {with-test}
|
|
24
|
-
"odoc" {>= "1.4.2"}
|
|
25
|
-
"ppxlib" {>= "0.18.0" & < "0.22.0"}
|
|
26
|
-
"re"
|
|
27
|
-
"stdio" {< "v0.15"}
|
|
28
|
-
"uuseg" {>= "10.0.0"}
|
|
29
|
-
"uutf" {>= "1.0.1"}
|
|
30
|
-
]
|
|
31
|
-
synopsis: "Auto-formatter for OCaml code"
|
|
32
|
-
description: "OCamlFormat is a tool to automatically format OCaml code in a uniform style."
|
|
33
|
-
x-commit-hash: "7027acfed5b8e6e492801f297766b0c803a13086"
|
|
34
|
-
url {
|
|
35
|
-
src:
|
|
36
|
-
"https://github.com/ocaml-ppx/ocamlformat/releases/download/0.15.1/ocamlformat-0.15.1.tbz"
|
|
37
|
-
checksum: [
|
|
38
|
-
"sha256=2a61513d10889d975eaa721b577f37b454ecfec0e08257c027f3e9928882cef4"
|
|
39
|
-
"sha512=3e03e06f5aabf9c80d7edb0ad908f708a99e371538e25674401170fa5a9836e1c463a1b055b2901ce32854928897b969834d854b7a92c2e18a8d1044ba93e842"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "dev@ocsigen.org"
|
|
3
|
-
homepage: "https://github.com/ocsigen/tyxml/"
|
|
4
|
-
bug-reports: "https://github.com/ocsigen/tyxml/issues"
|
|
5
|
-
doc: "https://ocsigen.org/tyxml/manual/"
|
|
6
|
-
dev-repo: "git+https://github.com/ocsigen/tyxml.git"
|
|
7
|
-
license: "LGPL-2.1 with OCaml linking exception"
|
|
8
|
-
|
|
9
|
-
build: [
|
|
10
|
-
["dune" "subst"] {pinned}
|
|
11
|
-
["dune" "build" "-p" name "-j" jobs]
|
|
12
|
-
["dune" "runtest" "-p" name "-j" jobs] {with-test}
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
depends: [
|
|
16
|
-
"ocaml" {>= "4.02"}
|
|
17
|
-
"dune"
|
|
18
|
-
"alcotest" {with-test}
|
|
19
|
-
"seq"
|
|
20
|
-
"uutf" {>= "1.0.0"}
|
|
21
|
-
"re" {>= "1.5.0"}
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
synopsis:"TyXML is a library for building correct HTML and SVG documents"
|
|
25
|
-
description:"""
|
|
26
|
-
TyXML provides a set of convenient combinators that uses the OCaml
|
|
27
|
-
type system to ensure the validity of the generated documents. TyXML
|
|
28
|
-
can be used with any representation of HTML and SVG: the textual one,
|
|
29
|
-
provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`)
|
|
30
|
-
virtual DOM (`virtual-dom`) and reactive or replicated trees
|
|
31
|
-
(`eliom`). You can also create your own representation and use it to
|
|
32
|
-
instantiate a new set of combinators.
|
|
33
|
-
|
|
34
|
-
```ocaml
|
|
35
|
-
open Tyxml
|
|
36
|
-
let to_ocaml = Html.(a ~a:[a_href "ocaml.org"] [txt "OCaml!"])
|
|
37
|
-
```
|
|
38
|
-
"""
|
|
39
|
-
authors: "The ocsigen team"
|
|
40
|
-
url {
|
|
41
|
-
src:
|
|
42
|
-
"https://github.com/ocsigen/tyxml/releases/download/4.4.0/tyxml-4.4.0.tbz"
|
|
43
|
-
checksum: [
|
|
44
|
-
"sha256=516394dd4a5c31726997c51d66aa31cacb91e3c46d4e16c7699130e204042530"
|
|
45
|
-
"sha512=d5f2187f8410524cec7a14b28e8950837070eb0b6571b015dd06076c2841eb7ccaffa86d5d2307eaf1950ee62f9fb926477dac01c870d9c1a2f525853cb44d0c"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
opam-version: "2.0"
|
|
2
|
-
maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>"
|
|
3
|
-
authors: [ "The uucp programmers" ]
|
|
4
|
-
homepage: "https://erratique.ch/software/uucp"
|
|
5
|
-
doc: "https://erratique.ch/software/uucp/doc/Uucp"
|
|
6
|
-
dev-repo: "git+https://erratique.ch/repos/uucp.git"
|
|
7
|
-
bug-reports: "https://github.com/dbuenzli/uucp/issues"
|
|
8
|
-
tags: [ "unicode" "text" "character" "org:erratique" ]
|
|
9
|
-
license: "ISC"
|
|
10
|
-
depends: [
|
|
11
|
-
"ocaml" {>= "4.03.0"}
|
|
12
|
-
"ocamlfind" {build}
|
|
13
|
-
"ocamlbuild" {build}
|
|
14
|
-
"topkg" {build}
|
|
15
|
-
"uucd" {with-test} # dev really
|
|
16
|
-
"uunf" {with-test}
|
|
17
|
-
"uutf" {with-test}
|
|
18
|
-
]
|
|
19
|
-
depopts: [ "uunf" "uutf" "cmdliner" ]
|
|
20
|
-
conflicts: [ "uutf" {< "1.0.1"}
|
|
21
|
-
"cmdliner" {< "1.0.0"} ]
|
|
22
|
-
build: [[
|
|
23
|
-
"ocaml" "pkg/pkg.ml" "build"
|
|
24
|
-
"--dev-pkg" "%{pinned}%"
|
|
25
|
-
"--with-uutf" "%{uutf:installed}%"
|
|
26
|
-
"--with-uunf" "%{uunf:installed}%"
|
|
27
|
-
"--with-cmdliner" "%{cmdliner:installed}%"
|
|
28
|
-
]]
|
|
29
|
-
|
|
30
|
-
synopsis: """Unicode character properties for OCaml"""
|
|
31
|
-
description: """\
|
|
32
|
-
|
|
33
|
-
Uucp is an OCaml library providing efficient access to a selection of
|
|
34
|
-
character properties of the [Unicode character database][1].
|
|
35
|
-
|
|
36
|
-
Uucp is independent from any Unicode text data structure and has no
|
|
37
|
-
dependencies. It is distributed under the ISC license.
|
|
38
|
-
|
|
39
|
-
[1]: http://www.unicode.org/reports/tr44/
|
|
40
|
-
"""
|
|
41
|
-
url {
|
|
42
|
-
archive: "https://erratique.ch/software/uucp/releases/uucp-13.0.0.tbz"
|
|
43
|
-
checksum: "07e706249ddb2d02f0fa298804d3c739"
|
|
44
|
-
}
|
binaryen-archive/js/features.ml
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
open Js_of_ocaml.Js.Unsafe
|
|
2
|
-
|
|
3
|
-
let mvp : int = global ##. binaryen ##. Features ##. MVP
|
|
4
|
-
|
|
5
|
-
let atomics : int = global ##. binaryen ##. Features ##. Atomics
|
|
6
|
-
|
|
7
|
-
let bulk_memory : int = global ##. binaryen ##. Features ##. BulkMemory
|
|
8
|
-
|
|
9
|
-
let mutable_globals : int = global ##. binaryen ##. Features ##. MutableGlobals
|
|
10
|
-
|
|
11
|
-
let nontrapping_fp_to_int : int =
|
|
12
|
-
global ##. binaryen ##. Features ##. NontrappingFPToInt
|
|
13
|
-
|
|
14
|
-
let sign_ext : int = global ##. binaryen ##. Features ##. SignExt
|
|
15
|
-
|
|
16
|
-
let simd128 : int = global ##. binaryen ##. Features ##. SIMD128
|
|
17
|
-
|
|
18
|
-
let exception_handling : int =
|
|
19
|
-
global ##. binaryen ##. Features ##. ExceptionHandling
|
|
20
|
-
|
|
21
|
-
let tail_call : int = global ##. binaryen ##. Features ##. TailCall
|
|
22
|
-
|
|
23
|
-
let reference_types : int = global ##. binaryen ##. Features ##. ReferenceTypes
|
|
24
|
-
|
|
25
|
-
let multivalue : int = global ##. binaryen ##. Features ##. Multivalue
|
|
26
|
-
|
|
27
|
-
let all : int = global ##. binaryen ##. Features ##. All
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
open Js_of_ocaml.Js
|
|
2
|
-
open Js_of_ocaml.Js.Unsafe
|
|
3
|
-
|
|
4
|
-
let set_function_table wasm_mod initial maximum funcnames offset =
|
|
5
|
-
meth_call wasm_mod "setFunctionTable"
|
|
6
|
-
[|
|
|
7
|
-
inject initial;
|
|
8
|
-
inject maximum;
|
|
9
|
-
inject (array (Array.of_list (List.map string funcnames)));
|
|
10
|
-
inject offset;
|
|
11
|
-
|]
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#define CAML_NAME_SPACE
|
|
2
|
-
#include <caml/mlvalues.h>
|
|
3
|
-
#include <caml/fail.h>
|
|
4
|
-
#include <caml/memory.h>
|
|
5
|
-
|
|
6
|
-
#include "binaryen-c.h"
|
|
7
|
-
#include "ocaml_helpers.h"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
CAMLprim value
|
|
11
|
-
caml_binaryen_set_function_table(value _module, value _initial, value _maximum, value _funcnames, value _offset) {
|
|
12
|
-
CAMLparam5(_module, _initial, _maximum, _funcnames, _offset);
|
|
13
|
-
BinaryenModuleRef module = BinaryenModuleRef_val(_module);
|
|
14
|
-
BinaryenIndex initial = Int_val(_initial);
|
|
15
|
-
BinaryenIndex maximum = Int_val(_maximum);
|
|
16
|
-
_funcnames = array_of_list(_funcnames);
|
|
17
|
-
int funcnamesLen = array_length(_funcnames);
|
|
18
|
-
const char* funcnames[funcnamesLen];
|
|
19
|
-
for (int i = 0; i < funcnamesLen; i++) {
|
|
20
|
-
funcnames[i] = Safe_String_val(Field(_funcnames, i));
|
|
21
|
-
}
|
|
22
|
-
BinaryenExpressionRef offset = BinaryenExpressionRef_val(_offset);
|
|
23
|
-
BinaryenSetFunctionTable(module, initial, maximum, funcnames, funcnamesLen, offset);
|
|
24
|
-
CAMLreturn(Val_unit);
|
|
25
|
-
}
|
binaryen-archive/src/config/dune
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module C = Configurator.V1
|
|
2
|
-
|
|
3
|
-
let () =
|
|
4
|
-
C.main ~name:"library_flags" (fun c ->
|
|
5
|
-
let default = [] in
|
|
6
|
-
|
|
7
|
-
let library_flags =
|
|
8
|
-
match C.ocaml_config_var c "system" with
|
|
9
|
-
| Some("macosx") ->
|
|
10
|
-
(* These flags preserve the original C error behavior *)
|
|
11
|
-
["-cclib"; "-Wl,-keep_dwarf_unwind"]
|
|
12
|
-
| Some(_) -> default
|
|
13
|
-
| None -> default
|
|
14
|
-
in
|
|
15
|
-
|
|
16
|
-
C.Flags.write_sexp "library_flags.sexp" library_flags
|
|
17
|
-
)
|
binaryen-archive/src/features.ml
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
external mvp : unit -> int = "caml_binaryen_feature_mvp"
|
|
2
|
-
|
|
3
|
-
let mvp = mvp ()
|
|
4
|
-
|
|
5
|
-
external atomics : unit -> int = "caml_binaryen_feature_atomics"
|
|
6
|
-
|
|
7
|
-
let atomics = atomics ()
|
|
8
|
-
|
|
9
|
-
external bulk_memory : unit -> int = "caml_binaryen_feature_bulk_memory"
|
|
10
|
-
|
|
11
|
-
let bulk_memory = bulk_memory ()
|
|
12
|
-
|
|
13
|
-
external mutable_globals : unit -> int = "caml_binaryen_feature_mutable_globals"
|
|
14
|
-
|
|
15
|
-
let mutable_globals = mutable_globals ()
|
|
16
|
-
|
|
17
|
-
external nontrapping_fp_to_int : unit -> int
|
|
18
|
-
= "caml_binaryen_feature_nontrapping_fp_to_int"
|
|
19
|
-
|
|
20
|
-
let nontrapping_fp_to_int = nontrapping_fp_to_int ()
|
|
21
|
-
|
|
22
|
-
external sign_ext : unit -> int = "caml_binaryen_feature_sign_ext"
|
|
23
|
-
|
|
24
|
-
let sign_ext = sign_ext ()
|
|
25
|
-
|
|
26
|
-
external simd128 : unit -> int = "caml_binaryen_feature_simd128"
|
|
27
|
-
|
|
28
|
-
let simd128 = simd128 ()
|
|
29
|
-
|
|
30
|
-
external exception_handling : unit -> int
|
|
31
|
-
= "caml_binaryen_feature_exception_handling"
|
|
32
|
-
|
|
33
|
-
let exception_handling = exception_handling ()
|
|
34
|
-
|
|
35
|
-
external tail_call : unit -> int = "caml_binaryen_feature_tail_call"
|
|
36
|
-
|
|
37
|
-
let tail_call = tail_call ()
|
|
38
|
-
|
|
39
|
-
external reference_types : unit -> int = "caml_binaryen_feature_reference_types"
|
|
40
|
-
|
|
41
|
-
let reference_types = reference_types ()
|
|
42
|
-
|
|
43
|
-
external multivalue : unit -> int = "caml_binaryen_feature_multivalue"
|
|
44
|
-
|
|
45
|
-
let multivalue = multivalue ()
|
|
46
|
-
|
|
47
|
-
external all : unit -> int = "caml_binaryen_feature_all"
|
|
48
|
-
|
|
49
|
-
let all = all ()
|