Re:Evolving the OCaml Programming Language (2025)
by aguluman on Friday September 05, 2025 @07:44AM
(#45137450)
Is stdlib the original then base and core are extensions?
Re:Evolving the OCaml Programming Language (2025)
by debugnik on Friday September 05, 2025 @08:47AM
(#45137890)
Yes, although they're replacements more than extensions. Stdlib is OCaml's builtin standard library, Base is Jane Street's lightweight replacement of Stdlib (although the most basic types are compatible), and Core is Jane Street's full standard library extending Base.
There's nothing inherently wrong with them, aside from their API being unstable, but they're an opinionated wedge in an ecosystem already lacking the cohesion of newer languages.
But yes, the standard library has added many helper functions that were sorely needed during the last few years, and the upcoming 5.4 keeps adding more. Still not as many goodies as Jane Street's libraries, but nowadays I don't miss them as long as I can use just a few small libraries, mostly by dbunzli and c-cube.