Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A serious bug in execution – where to debug?
- X-seq: zsh-workers 44620
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: A serious bug in execution – where to debug?
- Date: Wed, 31 Jul 2019 09:23:18 +0200
- Cc: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FDedI9/CWU/eGie4WRLeSXtEzXBL+T03Xh8hep874Jk=; b=m/aUB/dJpG+gjvtCOcguWqXf+M4T25YSYT13Fc790nb+6rier59RCDaba9k/rePY6M Brs5J+byMg+e9NtfpIHdYR8M7UNY5gMcmLggZ1SsyVgjiw88pBGP4DRzMyXrU8l72hyQ zJLEQjCoZv6gnit+qdOH1EAFM7gQ4PwrneRpIumKbLazSOeASwJxWaMUssErqi5XyFyt uRlBrOEZ0/4dgOc2gnxVAvUrd5Wq3SePyk1mVW9QyI05UcBZp+GrbK8S1P4DKVHd5eDI zz41vPXpnqY9/XiHMrPFQSfoFyEFcTQ3hVT04KTL/J0imMLpGgSa7k3iDK8qolHDHygn LNIg==
- In-reply-to: <CAKc7PVCo2kTSqgmChp_jL-+fAZ3ytUigRWGnNfMud_-tQyO=-g@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCKrg_PnZ6jKLoAwR8XQnswT-Bs2TJA7oefhd_gRtHKUQ@mail.gmail.com> <CAH+w=7ZEukuvaOiBymgJ1nR1TbriEMSxx9L8-=hojxQoKOaRUw@mail.gmail.com> <CAKc7PVCbP5inrfFW3xiphBN5uH3o3ayVRnzzEbybfkp-Y5Fubw@mail.gmail.com> <CAN=4vMqkjK5hPxhhXYwp=4Sj49VfyZgEH06tK0vggnHyddbrsA@mail.gmail.com> <CAKc7PVC6vxkHRvRSQzPGxgOXLOMc-LyJaqA5DmsLXQ5tU8y3Hw@mail.gmail.com> <CAN=4vMo2-w8qEdsgWwZ5C3WE+ZRmBa-c2BxjpZ7NWpvNq_J2tQ@mail.gmail.com> <49013421-774e-4389-a25d-680f1d97a8ef@www.fastmail.com> <CAN=4vMrudHprUE=xb+V7Y+3T6tZvs7wRAe7TbC-BK_Zv+sczUg@mail.gmail.com> <CAKc7PVCo2kTSqgmChp_jL-+fAZ3ytUigRWGnNfMud_-tQyO=-g@mail.gmail.com>
On Wed, Jul 31, 2019 at 3:30 AM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> On Wed, 31 Jul 2019 at 00:39, Roman Perepelitsa
> <roman.perepelitsa@xxxxxxxxx> wrote:
>
> > I'm on the fence on this issue. As long as I don't get too many bug
> > reports because of over-ambitious plugin managers, I'm fine.
>
> So Zplugin is considered an over-ambitious plugin manager by you? :)
I meant over-ambitious in the specific sense mentioned above --
advertising features that are not and cannot be implemented. There is
no way for users to tell whether unloading is safe to use zplugin to
unload X and what the consequences are if it isn't. Features whose
user-observable behavior cannot be described even in theory, and for
which an honest specification is tightly tied to their implementation
details, are over-ambitious. Saying that zplugin can unload arbitrary
code is inaccurate at best and deceptive at worst. What it can do is
unset parameters/functions/etc set by the code. Note how this refers
to the implementation and not the user-observable behavior. What the
user will actually see is unpredictable.
> Besides, isn't your prompt little
> over-ambitious too? ;) With the binary, background daemon? ;D
Spawning long-lived background processes that opt-out of job control
isn't uncommon among zsh themes and plugins. Powerline, p10k, p9k,
zinc, pure all do it. So does zplugin, I believe. The level of
daemonization and sharing differ: powerline detaches its child process
and shares it among multiple shells; p10k and everything else using
gitstatusd double-forks and creates a new session with setsid; pure
and zplugin leave their processes as children. Technical differences
in background process management make it impossible to implement clean
shutdown for these themes/plugins externally but they don't make them
over-ambitious. Powerline does what it claims to do -- give you a
prompt with lots of colors and ornaments. No leaky abstractions, no
deception.
Having said that, I have no illusions about the utility of my public
zsh code. If all zsh plugins and themes would disappear overnight, I
don't know if the world would be better or worse off. This ecosystem
feeds on customization addiction after all.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author