OCaml's Wings for Machine Learning

by musha68kon 4/30/2025, 12:31 PMwith 69 comments

by toolsliveon 4/30/2025, 4:07 PM

Am I the only one who doesn't like notebooks ?

I don't want to write code in a browser. For python you have something like ipython which allows you to have an interactive experience, while also allowing you to have your favourite editing environment. For ocaml, surely there are also repls that provide this kind of thing.

by FrustratedMonkyon 4/30/2025, 3:45 PM

Is anybody building things like this using FSharp? It seems like FSharp would have more of the ecosystem for machine learning and AI, than OCaml, yet with the functionality of OCaml.

by derededeon 4/30/2025, 3:36 PM

This looks interesting, it's great to see more machine learning efforts in typed languages.

I'm a bit surprised to see no mention of Owl (https://github.com/owlbarn/owl an older project for scientific computing in OCaml that was resurrected recently), I wonder how they compare.

The Raven README mentions:

> We prioritize developer experience and seamless integration.

so maybe that's one difference — I used Owl on a course project about a decade ago, and while it got the job done, I remember the experience being rather painful compared to Numpy (even though I was more experienced with OCaml than with Python at the time).

by behnamohon 4/30/2025, 3:20 PM

OCaml surprises me—it's old enough to be mature in terms of features and libs, and it's got a small but enthusiastic community, but every time I tried to convince myself to OCaml I found myself more drawn to Haskell and Elixir.

by cube2222on 4/30/2025, 3:18 PM

Fingers crossed, though I’m not holding my breath for anything taking a sizable bite out of Python in the area of ML/DL.

OCaml seems to be a lovely language based on my limited experience with it. It’s a pity it’s not more popular.

by evacchion 4/30/2025, 2:30 PM

so finally someone is actually putting ML in ML