hobbes
base
hobbes | base | |
---|---|---|
4 | 5 | |
1,174 | 890 | |
0.0% | 1.0% | |
5.7 | 5.9 | |
3 months ago | 4 months ago | |
C | OCaml | |
Apache License 2.0 | MIT 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.
hobbes
- Hobbes: Comprehensions
-
My Thoughts on OCaml
https://github.com/morganstanley/hobbes
Things like structural equality and ordering are user functions here rather than magic internal definitions (e.g. equality is defined as a type class, and type class instances can deconstruct algebraic types at compile time to decide how to implement instances). But evaluation is eager by default, so it's pretty easy to reason about performance. And data structures can be persisted to files and/or shared transparently in memory with C/C++ programs without translation, also very convenient for the places where this was used. Actually we built some very big and complicated time series databases with it, used in both pre and post trade settings where ~15% of daily US equity trades happen. So I think these observations are useful and have passed through some pretty significant real tests.
-
C++ source code generation (focus on financial market data)
Have a look at Hobbes from Morgan Stanley
-
Peridot: A functional language based on two-level type theory
https://github.com/morganstanley/hobbes
This approach has several benefits, but there's a lot of appeal also to the way they're doing it, to have the same PL across stages (and then maybe have more than just two stages).
base
-
Jane Street is big. Like, big
I'm very much not a serious OCaml:er but when I've dabbled some in it I got the impression that their "standard library" is kind of the de facto standard library.
https://github.com/janestreet/base
-
My Thoughts on OCaml
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
-
My adventures in ML Land
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
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?
dream-html - Type-safe markup rendering, form validation, and routing for OCaml Dream web framework
utop - Universal toplevel for OCaml
sexp - S-expression swiss knife
hail - A service for pull-based continuous deployment based on hydra.
opam-tools - opam plugin to initialise a local development environment for an OCaml project