简体   繁体   中英

What's the difference between Jane Street's ‘Base’, ‘Core’ and 'Core_kernel'?

I'm new to OCaml, and I it's often suggested that I use Jane Street's standard-library instead of the one that ships with the compiler.

However, there seem to even be several of those , and I don't know which I should be using:

Can anybody quickly summarize the difference between these (and perhaps vs. Batteries, etc), or when and why I should choose one over the others?

I was hoping someone more knowledgable would come along to answer this, but here's the gist of it at least, straight from the horse's mouth :

  • Base : minimal stdlib replacement. Portable and lightweight and intended to be highly stable.
  • Core_kernel : Extension of Base. More full featured, with more code and dependencies, and APIs that evolve more quickly. Portable, and works on Javascript.
  • Core : Core_kernel extended with UNIX APIs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM