opam-monorepo
Assemble dune workspaces to build your project and its dependencies as a whole (by tarides)
ocaml-containers
A lightweight, modular standard library extension, string library, and interfaces to various libraries (unix, threads, etc.) BSD license. (by c-cube)
opam-monorepo | ocaml-containers | |
---|---|---|
2 | 7 | |
130 | 479 | |
0.0% | - | |
6.8 | 8.5 | |
about 2 months ago | 15 days ago | |
OCaml | OCaml | |
ISC License | BSD 2-clause "Simplified" 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.
ocaml-containers
Posts with mentions or reviews of ocaml-containers.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-10.
-
Decy vreau sa învăț și eu un limbaj
YMMV. Există extensii: Base, Containers. Pentru I/O ai Lwt sau Async.
-
Is 'Real World OCaml' 1st ed worth bying for a beginner?
It focuses on Jane Street's alternate standard library, Base, which means you're not quite learning OCaml, you're learning a distorted dialect of it that is mostly the same but with a lot of unique, opinionated design decisions chosen by Jane Street developers to suit their company's workflow. If you want to use Base you pretty much have to opt in to its way of doing things and pulling in a lot of extra code, so I think it's better to learn OCaml first, then learn Jane Street's way, especially since OCaml's stdlib has grown and improved a good bit since the time when Base was made and RWO originally written. Plus there's also containers now, which is a stdlib extension that lets you cherry-pick the things you want in a more self-contained way that builds on what OCaml provides instead of trying to replace it.
-
My adventures in ML Land
Fortunately, there is Containers which gets the argument ordering right.
-
I'm typecasting a lot, help
Instead of either, you might be interested in Containers. It's more like an extension of the OCaml stdlib where you can cherry-pick what you want to use instead of having to go all-or-nothing. Adds a lot of useful things but not in the opinionated "let's make OCaml a different language" way that Base does.
-
OCaml over Scala
Same can be said of containers, which extends the stdlib rather than replaces or changes it. It's not fragmentation, it's a "batteries included" utility library that works with the stdlib.
-
A Lisp REPL as my main shell (article)
I'm not a fan of some of the opinionated things it does and find it bloats the executables a bit much for my liking, but it is coherent and nicely made. I was looking into trying Batteries instead but someone suggested containers and it seems more modular and an extension of the stdlib rather than a replacement, which is more to my liking.
-
For an OCaml newbie, do you recommend using one of the alternative standard libraries?
For writing a self-contained library, people generally stick to stdlib (and occasionally some lightweight stdlib alternatives, e.g. containers - https://github.com/c-cube/ocaml-containers). Personally, I use containers a fair bit for libraries, but not as a full stdlib replacement.
What are some alternatives?
When comparing opam-monorepo and ocaml-containers you can also consider the following projects:
utop - Universal toplevel for OCaml
base - Standard library for OCaml
RecordStream - commandline tools for slicing and dicing JSON records.
book - V2 of Real World OCaml
sihl - A modular functional web framework
preface - Preface is an opinionated library designed to facilitate the handling of recurring functional programming idioms in OCaml.
fish-shell - The user-friendly command line shell.
ocaml-ctypes - Library for binding to C libraries using pure OCaml
opam-tools - opam plugin to initialise a local development environment for an OCaml project
dotfiles
opam-monorepo vs utop
ocaml-containers vs base
ocaml-containers vs RecordStream
ocaml-containers vs book
ocaml-containers vs utop
ocaml-containers vs sihl
ocaml-containers vs preface
ocaml-containers vs fish-shell
ocaml-containers vs ocaml-ctypes
ocaml-containers vs opam-tools
ocaml-containers vs dotfiles