sexp VS base

Compare sexp vs base and see what are their differences.

sexp

S-expression swiss knife (by janestreet)

base

Standard library for OCaml (by janestreet)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
sexp base
3 4
42 814
- 2.5%
5.4 6.4
4 days ago 4 days ago
OCaml OCaml
MIT License MIT 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.

sexp

Posts with mentions or reviews of sexp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-25.

base

Posts with mentions or reviews of base. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-25.
  • My Thoughts on OCaml
    11 projects | news.ycombinator.com | 25 Apr 2023
    I don’t know OCaml, or really any language that would help me fully understand the code, but my exposure to OCaml is this stuff, and it looks pretty clean to me. https://github.com/janestreet/base

    Of course, I haven’t read every file, so maybe I got lucky with my random sampling.

  • Delimiter-First Code
    3 projects | news.ycombinator.com | 9 Dec 2022
  • My adventures in ML Land
    5 projects | dev.to | 20 Mar 2022
    Real World OCaml uses Base to replace OCaml's stdlib. I am not very fond of Base since it deviates from the standard convention of passing functions before values in HOC. To fix the ordering, one has to use labels:
  • I'm typecasting a lot, help
    2 projects | /r/ocaml | 10 Sep 2021
    As far as standard library usage goes, I highly recommend using Base. Instead of implementing list_of_string, you could use Base.String.to_list. Even if you don't end up using Base, you can get the same thing from the built in standard library by doing String.to_seq then List.of_seq.

What are some alternatives?

When comparing sexp and base you can also consider the following projects:

nestedtextto - CLI to convert between NestedText and JSON, YAML, or TOML, with explicit type casting

ocaml-containers - A lightweight, modular standard library extension, string library, and interfaces to various libraries (unix, threads, etc.) BSD license.

sexplib - Automated S-expression conversion

utop - Universal toplevel for OCaml

json5 - JSON5 — JSON for Humans

opam-tools - opam plugin to initialise a local development environment for an OCaml project

hobbes - A language and an embedded JIT compiler

einops - Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)

sxpyr - Parse s-expressions, edn, and a variety of lisp dialects.

ppx_deriving - Type-driven code generation for OCaml

clj-kondo - Static analyzer and linter for Clojure code that sparks joy

hjson - Hjson, a user interface for JSON