3 ms·
So why this, instead of Vim with Lua scripting? Is this meant to be embeddable in the same sense Lua is meant to be?
by stcredzero 10y ago
So why this, instead of Vim with Lua scripting? Is this meant to be embeddable in the same sense Lua is meant to be?
- ajacksified 10y agoThe point seems to be size and minimalism (under 1k lines), not to compete with vim.
- stcredzero 10y agoThis would make it a good candidate for embedding.
- gkya 10y agoIf 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.
- stcredzero 10y agoI 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.
- stevekemp 10y agoThat will be my end-goal; an editor I can ship with my (lua-based) mail-client.
- sdegutis 10y agoI disagree with ajacksified's interpretation of the significance of stevekemp's project. See my comment above for a different perspective.
- stevekemp 10y agoI'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.