opam-monorepo
Assemble dune workspaces to build your project and its dependencies as a whole (by tarides)
base
Standard library for OCaml (by janestreet)
opam-monorepo | base | |
---|---|---|
2 | 5 | |
130 | 814 | |
0.0% | 1.4% | |
6.8 | 6.4 | |
about 2 months ago | 9 days ago | |
OCaml | OCaml | |
ISC License | MIT 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.
opam-monorepo
Posts with mentions or reviews of opam-monorepo.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-27.
-
Why OCaml?
Re: dependency management and build tooling: these days I'm using opam-monorepo (https://github.com/tarides/opam-monorepo, previously known as duniverse) to manage dependencies and it's working out pretty well for me. It vendors all dependencies into a node_modules-like directory inside the projects and writes an opam-compatible lockfile, and it builds all the dependencies using dune. For the most widely used packages that don't already use dune it uses an overlay containing dune ports at https://github.com/dune-universe/opam-overlays.
-
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.
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.
What are some alternatives?
When comparing opam-monorepo and base 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
opam-tools - opam plugin to initialise a local development environment for an OCaml project
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