merlin
ocaml-decimal
Our great sponsors
merlin | ocaml-decimal | |
---|---|---|
12 | 3 | |
1,543 | 31 | |
0.4% | - | |
8.9 | 5.8 | |
6 days ago | 8 months ago | |
OCaml | OCaml | |
MIT License | GNU General Public License v3.0 or later |
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.
merlin
- Merlin: Context sensitive completion for OCaml in Vim and Emacs
-
Hacker News top posts: May 7, 2022
Merlin: Context sensitive completion for OCaml in Vim and Emacs\ (0 comments)
-
Hoogle for Rust?
Instead of searching functions based on their type structure (like Hoogle), you could search for functions that "consume"/"produce" values of given types (like OCaml's Merlin). I think Rust already computes variance of type constructors, so such a tool just would have to obtain this information.
-
Dot completion
However, after posting this question I stumbled upon this Github issue where they say it isn't supposed to work out of the box and you're supposed to bind a key to it by editing your .emacs file. Turns out the default .emacs file binds auto-complete to "backtab" which means Shift+Tab but that didn't work. I did eventually discover that I can get some kind of completion by binding backtab to completion-at-point like this:
-
Advice/best practice/arhitecture pattern for building language with LSP in mind?
Self-advertising: I partcipated to the writing of Merlin: A Language Server for OCaml (Experience Report), which explains the overall design of Merlin, a language server for OCaml. A key idea of Merlin are that classic lexing-parsing-typing pipelines can easily be adapted to be incremental for a Language Server, especially when they are using immutable data structures.
- merlin: Context sensitive completion for OCaml in Vim and Emacs
ocaml-decimal
-
Confused on project structure
Re: your test not working, I'm not sure how to diagnose that as I don't know the details of your project. The only thing I can say, is here's a project that I work on and it is set up so the dune test command runs the tests: https://github.com/yawaramin/ocaml-decimal/
-
Python to Ocaml
We need more context to be able to do that. Without it, the best we can do is very general pointers. E.g. here is an OCaml library that is basically a port of a Python one: https://github.com/yawaramin/ocaml-decimal
- decimal - arbitrary-precision floating-point decimal type implemented in OCaml. Ported from Python decimal module.
What are some alternatives?
hoogle - Haskell API search engine
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
ocamlformat - Auto-formatter for OCaml code
pyre-check - Performant type-checking for python.
Mosh - Mobile Shell
ocaml-lsp - OCaml Language Server Protocol implementation
rust-prolog - Rust implementation of prolog based on miniprolog: http://andrej.com/plzoo/html/miniprolog.html
TatSu - 竜 TatSu generates Python parsers from grammars in a variation of EBNF
bisect_ppx - Code coverage for OCaml and ReScript
salsa - A generic framework for on-demand, incrementalized computation. Inspired by adapton, glimmer, and rustc's query system.
rust - Empowering everyone to build reliable and efficient software.
cargo-up - Automatically upgrade breaking changes