nukifw

Joined 11 years ago

Karma
322
Submissions
40
Member since
Jun 16
I'm developper. See my english blog here : https://xvw.lol/en See my french blog here : https://xvw.lol
View on Hacker News

Recent submissions

Comment · 11 months ago
Comment · 1 year ago
In the `show_content` example, using first class modules: `module H : ...`. The type need to be specified and since module composition is hard, it leads to very verbose solution
Comment · 1 year ago
We try to invest equal time between the OCaml platform (on VSCode) and OCaml-eglot (for Emacs). In fact, I find the VSCode extension to be rich (and generally iso-features with Emacs mode).

However, I (as maintainer of OCaml-eglot) find Emacs easier to extend (the VSCode extension is surprisingly complex when you stray from the beaten path), which seemed perfect for incubating an experimental feature. Furthermore, as mentioned at the end of the article, the feature can also be invoked from a code action, which makes it de facto callable from VSCode once the various PRs have been merged :)

Comment · 1 year ago
For the first point, you are right. We start by a common (but very useful) feature. Since OCaml allows an infinite level of nesting (and different kind of structure item) it was still a bit of a challenge, mostly for finding the right UX.

For the second point we delay the aeration convention to the formatter (ocamlformat). It can be configure in a different way :)

Thanks for your feedback!

Comment · 1 year ago
PRs are mentioned at the end of articles. It is possible to `pin` repositories locally on their different branches to experiment with them locally!
Comment · 1 year ago
Nop, for the moment, we try to not "infer user usages"! But if you extract an expression with variable, there will be, obviously, not be repeated:

    let tau =
      let pi = 3.14 in 
      pi + pi
if we extract `pi + pi` it will lead (if you do not give any concrete name) to the following code:

    let fun_name1 pi = 
       pi + pi

    let tau = 
       let pi = 3.14 in 
       fun_name1 pi
Comment · 1 year ago
Comment · 1 year ago
Ok! (BTW, thanks for the interaction!)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton