sihl
ocaml-containers
Our great sponsors
sihl | ocaml-containers | |
---|---|---|
1 | 7 | |
350 | 475 | |
0.6% | - | |
5.6 | 8.5 | |
2 months ago | 9 days ago | |
OCaml | OCaml | |
MIT License | BSD 2-clause "Simplified" License |
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.
sihl
-
Dream – Tidy Web Framework for OCaml and ReasonML
Really exciting to watch the developments in OCaml/Reason web frameworks/libraries. I love the language and wish I could use it instead of Ruby for my personal projects at least. Others that have caught my interest are:
Sihl: https://github.com/oxidizing/sihl
ReWeb: https://github.com/yawaramin/re-web/
Of course, if you're interested in OCaml/Reason and don't know about Revery you're missing out.
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.
What are some alternatives?
dream - Tidy, feature-complete Web framework
base - Standard library for OCaml
lwt - OCaml promises and concurrent I/O
RecordStream - commandline tools for slicing and dicing JSON records.
patoline - Patoline typesetting system
book - V2 of Real World OCaml
eliom - Multi-tier framework for programming web and mobile applications in OCaml.
opam-monorepo - Assemble dune workspaces to build your project and its dependencies as a whole
ocaml4noobs - Tutorial de OCaml para iniciantes na Linguagem.
utop - Universal toplevel for OCaml
opium - Sinatra like web toolkit for OCaml
preface - Preface is an opinionated library designed to facilitate the handling of recurring functional programming idioms in OCaml.