Skip to content

Conversation

@sabine
Copy link
Collaborator

@sabine sabine commented Oct 22, 2025

  • add pages describing all of OCaml's compilation targets and link out to reference docs of tools or the compiler to the tools section
before after
Screenshot 2025-10-22 at 12-27-51 The Compiler Release Cycle · OCaml Documentation Screenshot 2025-10-22 at 12-27-53 The Compiler Release Cycle · OCaml Documentation

@lindig
Copy link

lindig commented Oct 22, 2025

The documentation of the various platforms could include the word size; in JSOO an OCaml int is 31 bit, whereas on Intel, AMD, Arm it is 63 bit. This can limit portability of code.

@jmid
Copy link
Member

jmid commented Oct 23, 2025

This is great Sabine, thanks a bunch!

I support Christian's point about int size.

  • For wasm_of_ocaml and wasocaml I vaguely recall them using 31-bit integers (in contrast to js_of_ocaml's 32-bit integers).
  • The bytecode compiler can be built in either 32-bit or 64-bit mode, resulting in 31-bit and 63-bit integers, respectively

A couple of things that struck me:

Copy link
Contributor

@dinosaure dinosaure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unikernel part does not mention unikraft and its support with firecracker & virtio. (/cc @shym).

Copy link
Contributor

@F-Loyer F-Loyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contribution is really nice, but I guess a reference to the dune manual, especially https://dune.readthedocs.io/en/stable/reference/dune/executable.html#linking-modes can be handy, since Dune is more likely the way to specify if the compilation is native, byte, or else…

@sabine sabine force-pushed the wasm_landing_page branch from 7f5cebf to 91e2351 Compare October 29, 2025 11:53
@sabine sabine marked this pull request as ready for review November 4, 2025 14:14
@F-Loyer
Copy link
Contributor

F-Loyer commented Nov 4, 2025 via email

@sabine
Copy link
Collaborator Author

sabine commented Nov 4, 2025

Thanks everyone, I'll merge this, and if there's any more feedback / corrections / changes, they can be done by opening a new PR!

@sabine sabine merged commit 9648686 into ocaml:main Nov 4, 2025
2 of 4 checks passed
@sabine sabine deleted the wasm_landing_page branch November 4, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants