News for hackers. Stuff that matters.
Re:Onivim 2: Lightweight, Modal Code Editor by teruakohatu on Wednesday June 24, 2020 @08:52AM (#23627267)
Does anyone know why Oni ditched neovim, which they used in the original Oni editor, and instead turned vim into a library (libvim) for Onivim2?
Re:Onivim 2: Lightweight, Modal Code Editor by richeyryan on Wednesday June 24, 2020 @08:58AM (#23627317)
https://github.com/onivim/libvim#why-is-libvim-based-on-vim-...

Guts of it is that Neovim didn't play nicely with their OCaml build and Vim did. Rather than invest time in working through the problem, they went ahead with Vim but remain open to supporting Neovim.

Re:Onivim 2: Lightweight, Modal Code Editor by bryphe on Wednesday June 24, 2020 @10:41AM (#23628381)
> Rather than invest time in working through the problem

I don't think this is a fair characterization. We've made significant investments in both Neovim and Vim, and carefully considered the trade-offs.

> Guts of it is that Neovim didn't play nicely with their OCaml build and Vim did

This was a smaller consideration - but more fundamentally, the model Neovim uses for input - queuing it on an event loop and handling it asynchronously - is at odds with what we required - to be able to process the input -> handle updates synchronously.

There was a significant amount of incidental complexity in the architecture of our V1 to fit that asynchronous model - we wanted to avoid that for V2, and we switched to Vim because it fit that model.

Re:Onivim 2: Lightweight, Modal Code Editor by richeyryan on Wednesday June 24, 2020 @10:47AM (#23628427)
Apologies, I didn't mean to insinuate that you were taking shortcuts or making frivolous choices. My attempt to summarize obviously lost the nuance of the decision.

I think the link summed it up well, near the end

> this was purely a constraint-based technical decision