From: Random832 <random832@fastmail.com>
To: ding@gnus.org
Subject: Re: My thoughts on the Gnus source code
Date: Sun, 14 Feb 2016 11:33:50 -0500 [thread overview]
Message-ID: <m2ziv3mett.fsf@fastmail.com> (raw)
In-Reply-To: <87pow1b721.fsf@ericabrahamsen.net>
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> 1. I don't think there's anything inherently unsuitable about Elisp for
> writing a MUA (or any other type of software). It's a general
> programming language, a little different from Python or other more
> popular languages, but it comes with a full complement of modern
> programming features.
The real problem isn't Lisp as a language, it's the lack of
multithreading or asynchronous constructs (I don't know if Emacs has the
latter, but if it does, Gnus doesn't seem to use it - it certainly
doesn't have the former.)
As a *user*, the biggest usability problem I've had with Gnus is the
inability to easily recover from dropped connections. The fact that it
tries to hold the connections open long-term in the first place is
another possible cause of this, and someone gave me a setting to try to
make it do this less, but I didn't see any improvement.
> 2. Gnus doesn't use many of those programming features. I think in part
> because it's very, very old (in computer-program years), and possibly
> because it was written in a fairly ad-hoc fashion, and then tweaked.
> This is definitely a problem.
> 3. I don't think the buffer issue is a real problem. You're getting
> responses from a server as a string, and there isn't really any
> difference between a buffer and a string: you'll need to chomp it, no
> matter what. I understand there are such things out there as Real
> Parsers, and that they're difficult to write, and that maybe we could
> benefit by having one. But I don't think the buffer itself is the
> problem.
I do get occasional "selecting deleted buffer" errors (generally a
symptom of having hit C-g at the wrong moment)
> On a side note, I'd also hope we can start treating code like the below
> as a bug. It may do what it's supposed to do, but...
I think that A: any such code should be heavily commented, and B: it
should use let variables. I'm not very experienced with Elisp - is there
an "unpack/let" construct? Is that what pcase is supposed to be for?
(You know what might be nice? nth0, nth1, nth2, etc, as aliases for car,
cadr, etc. Or maybe 0th/1st/2nd...)
next prev parent reply other threads:[~2016-02-14 16:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 20:44 Nikolaus Rath
2016-02-13 3:52 ` Eric Abrahamsen
2016-02-14 16:33 ` Random832 [this message]
2016-02-14 19:33 ` Sebastian Christ
2016-02-16 2:25 ` Eric Abrahamsen
2016-02-16 2:39 ` Lars Ingebrigtsen
2016-02-16 7:33 ` Eric Abrahamsen
2016-02-16 7:49 ` Lars Ingebrigtsen
2016-02-16 8:03 ` Eric Abrahamsen
2016-02-16 16:09 ` Nikolaus Rath
2016-02-17 14:12 ` Eric Abrahamsen
2016-03-26 11:42 ` external editor (was: My thoughts on the Gnus source code) Uwe Brauer
2016-03-28 17:08 ` external editor Nikolaus Rath
2016-03-29 10:05 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ziv3mett.fsf@fastmail.com \
--to=random832@fastmail.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).