Neocaml – Rubocop Creator's New OCaml Mode for Emacs
80 points by TheWiggles 4 days ago | 12 comments
beanjuiceII 10 hours ago
great news Bozhidar always makes fantastic stuff
replyjasperry 9 hours ago
I was satisfied with Tuareg + Merlin for OCaml development in Emacs, it just worked for me and didn't break when I upgraded packages, but yes, this being from bbatsov is a strong incentive to try it out. My only concern is that it uses tree-sitter, which I try to avoid because of the messiness of the JavaScript ecosystem.
replynatrys 8 hours ago
I think tree-sitter's relationship with JavaScript is entirely syntactic. You don't need any JS runtime installed to write grammars, because technically tree-sitter CLI already has a JS runtime included and using that it converts your grammar first to an intermediate JSON format, then it generates parser code in C. And then this C code gets compiled into a shared library, which is what editors like Emacs use, so to use tree-sitter modules you definitely don't need a JS runtime either.
replykleiba 12 hours ago
Aren't there specific IDEs for OCaml like for more mainstream languages?
replyavsm 12 hours ago
I just use the OCaml Platform VSCode extension: (https://marketplace.visualstudio.com/items?itemName=ocamllab...) or the OCaml LSP server: https://github.com/ocaml/ocaml-lsp in other editors and don't really need anything domain specific.
reply
[0] Projectile, a project mode https://github.com/bbatsov/projectile
[1] Cider, a clojure mode https://github.com/clojure-emacs/cider
[2] Prelude https://github.com/bbatsov/prelude
When I bought my new laptop a few months ago I consciously and purposefully refused to install VSCode, just improved my Emacs setup for all writing and programming - and I have been happier for it.