Live data from Hacker News

Vim 9.2

vim.org

41–50 of 203 posts

Re: Vim 9.2

#41
post #36
post #24

Earlier quoted context omitted.

> Even javascript would have been better for me than Lua. Why?

i’ve written probably north of a million lines of production js, maybe around 100,000 lines of production ruby, and about 300 lines of production lua. lua is a fun language and i think a much better fit than JS for technical reasons (who has a js engine that is both fast and embeds well? nobody), but i am certainly more productive in those other languages where i have more experience. lua array index starting at 1 ge…

> who has a js engine that is both fast and embeds well? nobody

Fabrice Bellard! https://github.com/bellard/mquickjs

(I agree with you, just wanted to note this super neat project)

Re: Vim 9.2

#42

But where are the AI features?? Gonna get left behind! Only joking of course, actually quite refreshing to see a new version announcement of something this major without any AI nonsense.

I agree and I know what you're saying, but I'm pretty curious: how are people using AI with vim? I've seen some scripts for ollama but what are most people doing?

Re: Vim 9.2

#43

Earlier quoted context omitted.

> That said I'd have preferred something other than Lua if I had the choice. Same. I know we as a community would never agree on what that language should be, but in my dreams it would have been ruby. Even javascript would have been better for me than Lua.

Lua, especially with LuaJIT, is nearly as fast as C. I certainly don't want to have to run a slow language like Ruby or especially a full blown JS runtime like V8 just to run Vim, the entire point is speed and keyboard ergonomics, otherwise just use VSCode.

Babashka! Super fast clojure/lisp.

Re: Vim 9.2

#45
post #36

Earlier quoted context omitted.

i’ve written probably north of a million lines of production js, maybe around 100,000 lines of production ruby, and about 300 lines of production lua. lua is a fun language and i think a much better fit than JS for technical reasons (who has a js engine that is both fast and embeds well? nobody), but i am certainly more productive in those other languages where i have more experience. lua array index starting at 1 ge…

> who has a js engine that is both fast and embeds well? nobody Fabrice Bellard! https://github.com/bellard/mquickjs (I agree with you, just wanted to note this super neat project)

quickjs/mquickjs are good at embedding but nowhere close to luajit in terms of speed. (i have some experience with quickjs https://github.com/justjake/quickjs-emscripten)

as an aside i’m curious how quickjs/mquickjs compares to mruby in speed and size. something to ponder

Re: Vim 9.2

#46

But where are the AI features?? Gonna get left behind! Only joking of course, actually quite refreshing to see a new version announcement of something this major without any AI nonsense.

I agree and I know what you're saying, but I'm pretty curious: how are people using AI with vim? I've seen some scripts for ollama but what are most people doing?

The copilot plugin works well

Re: Vim 9.2

#48

Earlier quoted context omitted.

> That said I'd have preferred something other than Lua if I had the choice. Same. I know we as a community would never agree on what that language should be, but in my dreams it would have been ruby. Even javascript would have been better for me than Lua.

Lua, especially with LuaJIT, is nearly as fast as C. I certainly don't want to have to run a slow language like Ruby or especially a full blown JS runtime like V8 just to run Vim, the entire point is speed and keyboard ergonomics, otherwise just use VSCode.

Quite a fair point! For intensive plugins and such, this would matter quite a bit.

Re: Vim 9.2

#49

Earlier quoted context omitted.

I'm not the target for your question (I distribute 0 plugins). But Lua support in Neovim is the primary reason I moved over from Emacs. Elisp and Vim are both so heart sink for me. That said I'd have preferred something other than Lua if I had the choice.

> That said I'd have preferred something other than Lua if I had the choice. Same. I know we as a community would never agree on what that language should be, but in my dreams it would have been ruby. Even javascript would have been better for me than Lua.

Doesn't Vim support extensions written in several languages? Or was that removed in Vim 9?

Re: Vim 9.2

#50
post #46

Earlier quoted context omitted.

I agree and I know what you're saying, but I'm pretty curious: how are people using AI with vim? I've seen some scripts for ollama but what are most people doing?

The copilot plugin works well

That's good to know. I've never actually tried Copilot. I was going to try this week.
Post reply on HN