ocaml-containers
utop
ocaml-containers | utop | |
---|---|---|
7 | 6 | |
479 | 827 | |
- | 0.7% | |
8.5 | 6.1 | |
14 days ago | 10 days ago | |
OCaml | OCaml | |
BSD 2-clause "Simplified" License | GNU General Public License v3.0 or later |
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.
ocaml-containers
-
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.
utop
-
Statically typed language where I can print anything easily?
You can also (and should!) familiarize yourself with utop. From utop, you can see the types of just about anything.
- utop: Universal toplevel for OCaml
- Best REPL for a language
-
#quit;; to quit is unintuitive, so it should be suggested if a user types quit
You should probably file a ticket on the utop repo rather than mentioning it here: https://github.com/ocaml-community/utop
-
My adventures in ML Land
To write OCaml code, I sat up Neovim by following this guide. For my repl needs, I used Utop. Whenever I needed to insert multiple lines, I used Utop's $editor integration which could be opened by C-x C-e.
-
Tips for CSci 2041
I'm going to leave this here. It's a great toplevel for OCaml.
What are some alternatives?
base - Standard library for OCaml
Pipefish - Source code for the Pipefish programming language
RecordStream - commandline tools for slicing and dicing JSON records.
book - V2 of Real World OCaml
CSharpRepl - A command line C# REPL with syntax highlighting – explore the language, libraries and nuget packages interactively.
opam-monorepo - Assemble dune workspaces to build your project and its dependencies as a whole
opam-tools - opam plugin to initialise a local development environment for an OCaml project
sihl - A modular functional web framework
Charm-MacOS - MacOS executable for Charm
preface - Preface is an opinionated library designed to facilitate the handling of recurring functional programming idioms in OCaml.
LIPS - Scheme based powerful lisp interpreter in JavaScript