From: Greg Troxel <gdt@ir.bbn.com>
To: "Neil Jerram" <neiljerram@googlemail.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>,
guile-user@gnu.org, guile-devel@gnu.org
Subject: Re: Guile release planning
Date: Sun, 16 Nov 2008 07:46:32 -0500 [thread overview]
Message-ID: <rmiprkvyh1z.fsf@fnord.ir.bbn.com> (raw)
In-Reply-To: <49dd78620811151603t67745c6fy7eb8b5134f883521@mail.gmail.com> (Neil Jerram's message of "Sun, 16 Nov 2008 00:03:05 +0000")
[-- Attachment #1: Type: text/plain, Size: 6555 bytes --]
"Neil Jerram" <neiljerram@googlemail.com> writes:
>> 2008/11/11 Ludovic Courtès <ludo@gnu.org>:
> But this isn't obvious to me. _If_ the libtool versioning system
> works in practice, in the senses of
>
> - permitting linking when it ought to be permitted
>
> - failing linking when it ought to fail
>
> - providing a clear error message in the failure cases, so that the
> user knows what to do next
Except for 'clear error message', I think shared library linking (in ELF
at least) satisfies that.
> then it seems to me that a reasonable division of labour is for us
> (upstream) to take care of API compatibility, and ensuring that the
> libtool numbers are a correct description of ABI state, and for
> distributions/users to take care of any consequences of mismatched
> libtool numbers.
That is the standard model, and I think it's fine, modulo the frequency
of ABI breaks (and thus shlib major version increases).
ABI is not just shared library versions - it's all the scheme-level
interfaces that a guile-using program might call.
> I think the latter "consequences" are just having to recompile
> something against the new libguile version. For a user who has
> already decided to use the source code version of an application, that
> should be trivial; for distributions, that's just what they do all the
> time, isn't it?
Yes, except that it's a pain if it happens often, and it more or less
constrains all the guile-using components in a system that aren't leaves
to use the same guile version.
> Are there other consequences that I'm missing?
Frequent API and ABI breaks are in my view a sign of an immature
development process, and a warning not to rely on something. guile aims
to be a scripting language to be added to various programs, so we should
hav as a major goal being stable enough to be relied on.
> Sure, we could also take on ABI compatibility ourselves, but I think
> that overconstrains our development, and/or makes it harder.
I think that we should aim to have infrequent ABI breaks. Every year or
so is probably ok.
>> I think enhancements like the lazy symbol binding in modules
>> could have been in theory added in 1.8.x since it breaks neither the API
>> nor the ABI.
>
> Agreed; and I think they still can be added in 1.8.x.
Sure - this is totally fine. Programs that worked against 1.8.x, both
compile time and run time, will still work against 1.8.x+1. But, the
reason we want to add to 1.8 is that 1.10 wasn't release 18 months ago,
about which I'll rant more later.
>> A GC change, or a rewrite of the string/char code with
>> Unicode support would be a big jump, too. Such big jumps surely need a
>> new major release.
>
> Not necessarily, in my view. We have an extensive test suite, and I
> think we can have some confidence in that. After sufficient testing,
> I would see no problem with your proposed BDW-GC changes going into a
> 1.8.x release.
>
> Same for Unicode support - if the API stayed compatible. If the API
> could not be compatible, then I would agree that we might need a new
> major release.
The biggest issue is API breaks without adequate warning. To remove
something from the API, it should be marked deprecated in a stable
release, and then have probably 2 years pass during which all depending
programs to update and release. The key is that one has to be able to
say in good conscience that those depending programs are lame or
unmaintained if they didn't update.
If API breaks other than via the above rules happen too often, then
guile really should support (natively) the installation of multiple
vesrions at once. pkgsrc has "guile" which is 1.8.x and "guile16", and
guile16 installs to /usr/pkg/guile/1.6 as prefix instead of /usr/pkg.
guile simply doesn't have the mindshare to support this kind of
complexity.
An example of API problems is Linux itself. I am working on a project
using the kernel and going from 2.6.20 to 2.6.24 is a huge change that
seems to have significant API breaks (for kernel modules). If these
changes are as bad as they seem, this just isn't adult software
engineering and I would have to recommend against relying on such code.
I think guile's real problem has been that while people hack on head,
this hacking doesn't seem to have the clear goal of producing a stable
release. Of course all the hard-core guile hackers run guile from
(choose-VCS-weekly :-), but programs that depend on guile should not --
they need to depend on versions which are packaged. So my general rule
for software is that as soon as people say "you should run HEAD instead
of RELEASE, it's better", a release from head is overdue.
So I don't think there's anything wrong with the
hack-on-head-cut-stable-branches-periodically approach, except:
1) try really hard to avoid API breaks, and take the ugliness of new
function names with the new semantics/signatures as a lesser pain
2) release a new stable version from head every year or so.
For 2, I suggest calling feature freeze and asking for testing of head,
kicking out 1.9.x releases and encouraging fast-moving distributions to
package them as a replacement for 1.8.x so packaging system maintainer
types can test, and then branching for 1.10.0 and unfreezing head. Even
if there were 3 months a year of feature freeze and 9 months of open
hacking, I think that would be good. There's a negative feedback cycle,
where people don't want to freeze for release because they want to get
in one more thing before the stable code is frozen for the next 4 years,
and as the stable frequency gets lower the urge to not freeze gets
higher, leading to longer intervals. NetBSD has been struggling with
this too.
Here's the history
1.4 2000-06
1.6 2002-09
1.8 2006-02
1.10 >> 2008-11 :-(
and these intervals are all significantly too long. Probably a freeze
is in order 9 months after the last branch cut, to head for 1 year.
Speaking from my experience being the maintainer in pkgsrc of guile, new
versions that don't have API or ABI breaks are nearly trivial to update,
and cause no issues. ABI breaks but not API breaks are not as bad, but
require touching all the depending packages to ensure cross-package
binary compatibility. API breaks without all the depending packages
getting fixed leads to choosing between dropping depending packages or
having multiple versions of guile in pkgsrc, both of which are ugly.
[-- Attachment #2: Type: application/pgp-signature, Size: 193 bytes --]
next prev parent reply other threads:[~2008-11-16 12:46 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 1:23 Guile release planning Neil Jerram
2008-11-11 1:59 ` Mike Gran
2008-11-15 23:03 ` Neil Jerram
2008-11-15 23:19 ` Mike Gran
2008-11-11 3:44 ` Linas Vepstas
2008-11-11 17:10 ` Greg Troxel
2008-11-11 20:00 ` Andy Wingo
2008-11-11 21:05 ` Linas Vepstas
2008-11-11 22:06 ` Andy Wingo
2008-11-11 20:18 ` Ludovic Courtès
2008-11-15 23:16 ` Neil Jerram
2008-11-16 23:33 ` Ludovic Courtès
2008-11-17 20:49 ` Andy Wingo
2008-11-18 10:22 ` Ludovic Courtès
2008-12-08 22:05 ` Neil Jerram
2008-12-09 17:01 ` Ludovic Courtès
2008-11-11 15:32 ` Sebastian Tennant
2008-11-11 20:30 ` Ludovic Courtès
2008-11-16 0:03 ` Neil Jerram
2008-11-16 5:11 ` Linas Vepstas
2008-11-16 12:46 ` Greg Troxel [this message]
2008-11-16 23:55 ` Ludovic Courtès
2008-11-12 4:41 ` Han-Wen Nienhuys
2008-11-12 19:11 ` Andy Wingo
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rmiprkvyh1z.fsf@fnord.ir.bbn.com \
--to=gdt@ir.bbn.com \
--cc=guile-devel@gnu.org \
--cc=guile-user@gnu.org \
--cc=ludo@gnu.org \
--cc=neiljerram@googlemail.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).