base
Standard library for OCaml (by janestreet)
opam-tools
opam plugin to initialise a local development environment for an OCaml project (by ocamllabs)
base | opam-tools | |
---|---|---|
5 | 1 | |
814 | 19 | |
1.4% | - | |
6.4 | 10.0 | |
7 days ago | over 3 years ago | |
OCaml | OCaml | |
MIT License | ISC License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
base
Posts with mentions or reviews of base.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-05-02.
-
Jane Street is big. Like, big
I'm very much not a serious OCaml:er but when I've dabbled some in it I got the impression that their "standard library" is kind of the de facto standard library.
https://github.com/janestreet/base
-
My Thoughts on OCaml
I don’t know OCaml, or really any language that would help me fully understand the code, but my exposure to OCaml is this stuff, and it looks pretty clean to me. https://github.com/janestreet/base
Of course, I haven’t read every file, so maybe I got lucky with my random sampling.
- Delimiter-First Code
-
My adventures in ML Land
Real World OCaml uses Base to replace OCaml's stdlib. I am not very fond of Base since it deviates from the standard convention of passing functions before values in HOC. To fix the ordering, one has to use labels:
-
I'm typecasting a lot, help
As far as standard library usage goes, I highly recommend using Base. Instead of implementing list_of_string, you could use Base.String.to_list. Even if you don't end up using Base, you can get the same thing from the built in standard library by doing String.to_seq then List.of_seq.
opam-tools
Posts with mentions or reviews of opam-tools.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-20.
-
My adventures in ML Land
There is a lot to be desired about OCaml tooling, but I am really excited about opam-tools and duniverse.
What are some alternatives?
When comparing base and opam-tools you can also consider the following projects:
ocaml-containers - A lightweight, modular standard library extension, string library, and interfaces to various libraries (unix, threads, etc.) BSD license.
utop - Universal toplevel for OCaml
einops - Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)
ppx_deriving - Type-driven code generation for OCaml
sexp - S-expression swiss knife