Re:Show HN: A console-based editor with Lua support, based o...
by stcredzero on Thursday July 21, 2016 @02:54PM
(#12139126)
So why this, instead of Vim with Lua scripting? Is this meant to be embeddable in the same sense Lua is meant to be?
[ Parent
| on HN ]
Re:Show HN: A console-based editor with Lua support, based o...
by stevekemp on Thursday July 21, 2016 @10:41PM
(#12141406)
I'm actually looking for an editor to embed inside my lua-based mail-client.
Given the history of kilo (being inspired by nano, and that in turn coming from PICO & PINE) it is pretty ironic.
Re:Show HN: A console-based editor with Lua support, based o...
by ajacksified on Thursday July 21, 2016 @03:12PM
(#12139266)
The point seems to be size and minimalism (under 1k lines), not to compete with vim.
Re:Show HN: A console-based editor with Lua support, based o...
by stcredzero on Thursday July 21, 2016 @04:22PM
(#12139755)
This would make it a good candidate for embedding.
Re:Show HN: A console-based editor with Lua support, based o...
by gkya on Thursday July 21, 2016 @07:35PM
(#12140791)
If you need vi for embedding, there are the ex-vi and the nvi projects, BTW. The latter with nex "are intended as bug-for-bug compatible replacements for the original Fourth Berkeley Software Distribution (4BSD) ex and vi programs." On my FreeBSD 10.3 it weighs in at 448K.
Re:Show HN: A console-based editor with Lua support, based o...
by stcredzero on Thursday July 21, 2016 @09:30PM
(#12141171)
I could see an advantage in a Lua embedded implementation. If Lua is going to be embedded anyway, there could be considerable memory savings. Also, many features/packages could be left out and loaded dynamically only as needed.
I'm not sure how it works for Lua, but scripting languages on VMs often compile down to very compact bytecode. An entire Squeak Smalltalk image has been pruned down to 384k. I'd expect an entire vi clone in Lua to wind up only a small fraction of that.