book VS ocaml-containers

Compare book vs ocaml-containers and see what are their differences.

ocaml-containers

A lightweight, modular standard library extension, string library, and interfaces to various libraries (unix, threads, etc.) BSD license. (by c-cube)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
book ocaml-containers
18 7
1,159 475
0.6% -
2.7 8.5
2 months ago 9 days ago
OCaml OCaml
GNU General Public License v3.0 or later 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.

book

Posts with mentions or reviews of book. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-12.
  • OCaml: a Rust developer's first impressions
    4 projects | news.ycombinator.com | 12 Nov 2023
    Some of your questions might be answered in this book (free online version): https://dev.realworldocaml.org/
  • Compiler Development: Rust or OCaml?
    5 projects | news.ycombinator.com | 7 Aug 2023
  • Nix-Powered Development with OCaml
    12 projects | news.ycombinator.com | 6 Mar 2023
    I don't think they're wrong

    the Jane Street side are quite prolific with blog posts etc

    as a newcomer to OCaml one of the first, and nicer-looking, intro resources you'll likely encounter is the Real World OCaml book https://dev.realworldocaml.org/ which unfortunately does everything using Base instead of the stdlib

    Personally that didn't sit right to me and I prefer to use the stdlib by default (which seems fine and not in need of a wholesale replacement)

  • Comparing Objective Caml and Standard ML
    5 projects | news.ycombinator.com | 15 Feb 2023
    This is an oldie but a goodie.

    OCaml has, unlike Standard ML, grown quite a lot since this page was made.

    In particular, the section "Standard libraries", I'd recommend looking at:

    https://dev.realworldocaml.org/

    A couple of places where the comparison is outdated:

    - OCaml using Base [1] allows for result-type oriented programming

    - OCaml using Base uses less language magic and more module system

    While there was and is truth to the distinction that SML is for scientists and OCaml is for engineers, this dichotomy is getting dated: OCaml is under active development, which means that scientists who want better tooling will choose OCaml. For example, 1ML [2] by Andreas Rossberg was built in OCaml.

    [1]: https://opensource.janestreet.com/base/

  • Resource recommendations for a beginner.
    1 project | /r/ocaml | 25 Jan 2023
    Real World OCaml (version 2 is finally out) is also pretty good.
  • OCAML HELP!
    1 project | /r/ocaml | 27 Oct 2022
    Real World OCaml is also a good resource, geared more towards people who already have some programming experience and want a more industry/practical focused learning experience.
  • Teach Yourself Programming in Ten Years
    1 project | news.ycombinator.com | 22 Oct 2022
    ocaml.org’s new website is packed with lots of great early intros.

    most learners eventually gravitate towards Real World OCaml https://dev.realworldocaml.org/ for additional learning.

    Unfortunately, the learning resources for different domains out there isn’t as highly curated or prolific as, say, rust. If you do web dev like me, it takes a bit more work to find the tools and put them together. But the language itself lends itself well to systems level programming.

    Fortunately, the forum is a great help.

  • Help getting started with Ocaml
    2 projects | /r/ocaml | 13 Oct 2022
    In general, better read the second edition which is updated to use current Core versions. A print version was published recently.
  • learning ocaml this semester.
    1 project | /r/ocaml | 26 Sep 2022
    I recommend https://dev.realworldocaml.org/ and https://cs3110.github.io/textbook/cover.html
  • Functional Reactive Programming
    9 projects | news.ycombinator.com | 16 Aug 2022
    Elm is not dead. It just prefers a slow release schedule but is still actively worked on in the background.

    That said, you might want to check out OCaml for general purpose programming. Super fast compiler, great performance, can target both native and JS.

    It is easier to use than Haskell due to defaulting to eager evaluation (like most languages) strategy instead of laziness and being generally more pragmatic, offering more escape hatches into the imperative world if need be. Plus great upward trajectory with lot's of cool stuff like an effects system and multi-core support coming.

    Real World Ocaml is a decent resource: https://dev.realworldocaml.org/

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
    2 projects | /r/programare | 10 Oct 2022
    YMMV. Există extensii: Base, Containers. Pentru I/O ai Lwt sau Async.
  • Is 'Real World OCaml' 1st ed worth bying for a beginner?
    2 projects | /r/ocaml | 20 May 2022
    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
    5 projects | dev.to | 20 Mar 2022
    Fortunately, there is Containers which gets the argument ordering right.
  • I'm typecasting a lot, help
    2 projects | /r/ocaml | 10 Sep 2021
    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
    2 projects | /r/ocaml | 16 Mar 2021
    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)
    4 projects | /r/lisp | 7 Feb 2021
    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?
    1 project | /r/ocaml | 4 Jan 2021
    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 book and ocaml-containers you can also consider the following projects:

swift-async-algorithms - Async Algorithms for Swift

base - Standard library for OCaml

awesome-ocaml - A curated collection of awesome OCaml tools, frameworks, libraries and articles.

RecordStream - commandline tools for slicing and dicing JSON records.

reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems

opam-monorepo - Assemble dune workspaces to build your project and its dependencies as a whole

learn-you-a-haskell - “Learn You a Haskell for Great Good!” by Miran Lipovača

sihl - A modular functional web framework

onelinerizer - Shamelessly convert any Python 2 script into a terrible single line of code

utop - Universal toplevel for OCaml

reflex - Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse.

preface - Preface is an opinionated library designed to facilitate the handling of recurring functional programming idioms in OCaml.