[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xvi patch to generate UDEB for Debian-Installer

On 13/06/2017, Jose R R <jose.r.r@metztli.com> wrote:
> On Tue, Jun 13, 2017 at 1:43 PM, Martin Guy <martinwguy@gmail.com> wrote:
>> On 12/06/2017, Jose R R <jose.r.r@metztli.com> wrote:
>>> If anyone finds it useful, of course, attached please find a patch to
>>> generate a small xvi UDEB -- suitable for embedding in d-i.
>> Just one thought, maybe for a udeb we should use -Os and maybe clang,
>> which drops the code size from 160K to 100K, compared to gcc -O2. What
>> do you think?

> I think other vi people will
> find your xvi useful for embedded applications --especially if its
> size is reduced further.

I've prioritized full vi compatibility except for ex-mode and open mode while
minimizing code size where possible, but I don't think it will be
getting any smaller from now on, just a little larger if I implement
the few remaining discrepancies or go for better POSIX compatibility.

> P.S. Here is currently how xvi stacks up against competitor editor
> du -hs *udeb
> 64K elvis-tiny-udeb_1.4-23.1_amd64.udeb
> 64K nano-udeb_2.7.4-1_amd64.udeb
> 76K xvi-udeb_2.50-1.1_amd64.udeb

I think you want 2.50.3, as some bugs in the recent changes were found
and fixed in 2.50, .1 and .2. Try moving left on the command line,
inserting some characters into the line and then moving left and right
again and see if the cursor jumps about.

Thanks for bringing xvi to Debian's attention. Did you try "make
check" to see it run the towers of hanoi macros and solve a maze? :)


Reply to: