From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.devel Subject: Re: GNU Guile 2.9.8 Released [beta] Date: Thu, 9 Jan 2020 22:14:05 +0100 Message-ID: References: <87woaa3rq4.fsf@pobox.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e5f303059bbb7d12" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="111327"; mail-complaints-to="usenet@blaine.gmane.org" To: Andy Wingo , guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jan 09 22:15:17 2020 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipf8b-0002Ne-TP for guile-devel@m.gmane.org; Thu, 09 Jan 2020 22:14:42 +0100 Original-Received: from localhost ([::1]:37326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipf8a-00063c-Ld for guile-devel@m.gmane.org; Thu, 09 Jan 2020 16:14:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33758) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipf8J-0005qH-OP for guile-devel@gnu.org; Thu, 09 Jan 2020 16:14:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipf8F-0001Mx-8Z for guile-devel@gnu.org; Thu, 09 Jan 2020 16:14:23 -0500 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:40224) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipf8E-0001E4-M7 for guile-devel@gnu.org; Thu, 09 Jan 2020 16:14:19 -0500 Original-Received: by mail-wm1-x336.google.com with SMTP id t14so4395034wmi.5 for ; Thu, 09 Jan 2020 13:14:18 -0800 (PST) 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; bh=+UPeg0SMqA9CpFtBJ/oFuyhV+wfVI7MgL58NRfFtjcY=; b=KUzEz2f8euxJMqORteGayETyn+FNjL5NLtdnZfRbCTq3EKtKZkCdFTs2s61pSUtDrc RrA/olaU/YwiBQ6dEq0FBCQzEaO80wVOkoU2LmgGYcA1uspZRdSH47Xm0pXyQ24xaZ8e Iy52h9LQ40hOk+hFoKlxIAs0bWBQckP2nFXZdp5LEth3l0CsBL5CLEmeS3gy/dvTcVL+ ezCcSjmR3TFzzLdzoXISfA4/JOCXype+Nhl35o6nLU0WqjDVQuWWZ7YEJh1mdnCCVwr0 O2oU6y+m550a4RFg2v0ziuzKJswMtW39HWN9mPgxD160JmC7bU8fSOL4DjUgmJSGyO4G S5zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+UPeg0SMqA9CpFtBJ/oFuyhV+wfVI7MgL58NRfFtjcY=; b=rjc9YvotdKqoYSlm19YuBWrVInTUrkbJnvvVZrwo4CRJRvxIuai+8DY5Xzs0u9EnuF XeQe8buarXIvagbXWlIOp2u2lJPhE1+aQzxiHyyeR+qlR+E/CsXRE3lXV3fCxXhC6J72 Z/Okg31n1GUvt94cn07jBs6xA4G/SVkYoYAiTckQ5iGJB5p+tUxoZpQfXPf+y/o2B0RH lO3RG5iPBk+xNR5eTLtVu4SyTypTyShWLChkcQS5SUI3XY+wOgzPXCizn7DoIN5tNa4D MaR+G478A04bjhYzavRpwlOOJvdt6C4BmnyX6VzBbxGKosCeWE6F489hIQahkbg7N5S8 yvhg== X-Gm-Message-State: APjAAAXw8uQVyR7gLAaBwZ7bxvvAiO+qZQsUIcTU7pKlf6BKootJ7x47 IcPceZxB6aajRV+8xAn5Tqk1We52rQqqdOxliDY= X-Google-Smtp-Source: APXvYqyWdB2JU2g4TlAwDqiUNMzijy0yjvlT6CDcrDcdVRGkFfz4Nc8IxjkSp5Ka5SfY5mN4YdFwOGz5G+rFJ9j1VuQ= X-Received: by 2002:a7b:c3d2:: with SMTP id t18mr7105765wmj.90.1578604456963; Thu, 09 Jan 2020 13:14:16 -0800 (PST) In-Reply-To: <87woaa3rq4.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::336 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:20245 Archived-At: --000000000000e5f303059bbb7d12 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I can't make a simple case out of this. But the gist is that we have a module c (define-module (c) #:export (fail)) (define fail (cons 'fail '())) Then in module b: (define-module (b) #:use-module (c) #:export (f)) (define-syntax-rule (kif it p x y) (let ((it p)) (if (eq? it fail) y x))) (define (f x) (kif it (x) it x)) Module b is too simple and this compiles, I have a more advanced module and uses of the tag fail. Now this module compiles when we have the definition of fail in the same module but separating it out to module c lead to the fopllowing stack trace: Backtrace: In system/base/compile.scm: 155:11 19 (_ #) 224:14 18 (read-and-compile _ #:from _ #:to _ #:env _ #:opts _) 175:2 17 (compile _ #:from _ #:to _ #:env _ #:opts _) 183:32 16 (compile-fold _ _ _ (#:to-file? #t #:warnings (# # # =E2=80=A6)= )) In language/cps/compile-bytecode.scm: 699:12 15 (compile-bytecode _ # =E2=80=A6) In language/cps/closure-conversion.scm: 885:7 14 (convert-closures _) In language/cps/intmap.scm: 519:5 13 (visit-branch #(#(#(# =E2=80= =A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) 519:5 12 (visit-branch #(#(# =E2= =80=A6) =E2=80=A6) =E2=80=A6) 519:5 11 (visit-branch #(# = =E2=80=A6) =E2=80=A6) In language/cps/intset.scm: 470:5 10 (visit-branch #(#(#(#(1064828927 3623737183 =E2=80=A6) =E2=80= =A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) 470:5 9 (visit-branch #(#(#(1064828927 3623737183 # # # =E2=80=A6) =E2= =80=A6) =E2=80=A6) =E2=80=A6) 470:5 8 (visit-branch #(#(3047188480 218316806 1799356468 =E2=80=A6) = =E2=80=A6) =E2=80=A6) 470:5 7 (visit-branch #(213200 #f 1073741824 4294287363 # # # =E2=80=A6= ) =E2=80=A6) 470:5 6 (visit-branch 4093640703 _ 2688 _) In language/cps/closure-conversion.scm: 749:15 5 (_ 2705 _) 771:22 4 (lp # =E2=80=A6) 771:22 3 (lp # =E2=80=A6) 771:22 2 (lp # =E2=80=A6) 610:11 1 (allocate-closure _ _ _ _ _ 1) In ice-9/boot-9.scm: 1655:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1655:16: In procedure raise-exception: unexpected well-known nullary, unary, or binary closure Makefile:1295: recipe for target 'oop/pf-objects.go' failed make: *** [oop/pf-objects.go] Error 1 On Thu, Jan 2, 2020 at 2:37 PM Andy Wingo wrote: > We are pleased to announce GNU Guile release 2.9.8. This is the eighth > and possibly final pre-release of what will eventually become the 3.0 > release series. > > Compared to the current stable series (2.2.x), the future Guile 3.0 adds > support for just-in-time native code generation, speeding up all Guile > programs. See the NEWS extract at the end of the mail for full details. > > Compared to the previous prerelease (2.9.7), Guile 2.9.8 fixes a bug in > libguile that caused writes to unmapped memory in some circumstances. > This problem manifested itself as a failure of Guile to compile itself > on some systems, notably Ubuntu 18.04 on x86-64. It also fixes a couple > warnings related to SRFI-35. > > The current plan is to make a 3.0.0 final release on 17 January 2020. > We may need another prerelease in the interim. It's a good time to test > the prereleases to make sure they work on your platform. Please send > any build reports (success or failure) to guile-devel@gnu.org, along > with platform details. You can file a bug by sending mail to > bug-guile@gnu.org. > > The Guile web page is located at http://gnu.org/software/guile/, and > among other things, it contains a copy of the Guile manual and pointers > to more resources. > > Guile is an implementation of the Scheme programming language, with > support for many SRFIs, packaged for use in a wide variety of > environments. In addition to implementing the R5RS Scheme standard, > Guile includes a module system, full access to POSIX system calls, > networking support, multiple threads, dynamic linking, a foreign > function call interface, and powerful string processing. > > Guile can run interactively, as a script interpreter, and as a Scheme > compiler to VM bytecode. It is also packaged as a library so that > applications can easily incorporate a complete Scheme interpreter/VM. > An application can use Guile as an extension language, a clean and > powerful configuration language, or as multi-purpose "glue" to connect > primitives provided by the application. It is easy to call Scheme code > From C code and vice versa. Applications can add new functions, data > types, control structures, and even syntax to Guile, to create a > domain-specific language tailored to the task at hand. > > Guile 2.9.8 can be installed in parallel with Guile 2.2.x; see > > http://www.gnu.org/software/guile/manual/html_node/Parallel-Installations= .html > . > > A more detailed NEWS summary follows these details on how to get the > Guile sources. > > Here are the compressed sources: > http://alpha.gnu.org/gnu/guile/guile-2.9.8.tar.lz (10MB) > http://alpha.gnu.org/gnu/guile/guile-2.9.8.tar.xz (12MB) > http://alpha.gnu.org/gnu/guile/guile-2.9.8.tar.gz (21MB) > > Here are the GPG detached signatures[*]: > http://alpha.gnu.org/gnu/guile/guile-2.9.8.tar.lz.sig > http://alpha.gnu.org/gnu/guile/guile-2.9.8.tar.xz.sig > http://alpha.gnu.org/gnu/guile/guile-2.9.8.tar.gz.sig > > Use a mirror for higher download bandwidth: > http://www.gnu.org/order/ftp.html > > Here are the SHA256 checksums: > > 3ce11e9dca0f475fa944729d99f33c379fe8962e729bd21a99470249624c71d7 > guile-2.9.8.tar.lz > 4a8cf663b8bfd435168935c74a8ec434328ffad16230322c64f0ac567dda2c26 > guile-2.9.8.tar.xz > 31c3d458ff9342db130e27c8d82d2a33912da92845e5ee431b6a125971a823d2 > guile-2.9.8.tar.gz > > [*] Use a .sig file to verify that the corresponding file (without the > .sig suffix) is intact. First, be sure to download both the .sig file > and the corresponding tarball. Then, run a command like this: > > gpg --verify guile-2.9.8.tar.gz.sig > > If that command fails because you don't have the required public key, > then run this command to import it: > > gpg --keyserver keys.gnupg.net --recv-keys > 4FD4D288D445934E0A14F9A5A8803732E4436885 > > and rerun the 'gpg --verify' command. > > This release was bootstrapped with the following tools: > Autoconf 2.69 > Automake 1.16.1 > Libtool 2.4.6 > Gnulib v0.1-1157-gb03f418 > Makeinfo 6.5 > > An extract from NEWS follows. > > > Changes in alpha 2.9.8 (since alpha 2.9.7): > > * Bug fixes > > ** Fix bug in which abort_to_prompt used an invalid stack pointer > > This bug manifested itself as a bootstrap compile error on some systems, > notably Ubuntu 18.04 on x86-64, and was due to failing to recalculate a > local variable after a possible stack relocation. > > ** SRFI-35 does a #:re-export-and-replace on `&error' > ** SRFI-35 avoids compiler warnings for multiply-defined condition types > > > Changes in alpha 2.9.x (since the stable 2.2 series): > > * Notable changes > > ** Just-in-time code generation > > Guile programs now run up to 4 times faster, relative to Guile 2.2, > thanks to just-in-time (JIT) native code generation. Notably, this > brings the performance of "eval" as written in Scheme back to the level > of "eval" written in C, as in the days of Guile 1.8. > > See "Just-In-Time Native Code" in the manual, for more information. JIT > compilation will be enabled automatically and transparently. To disable > JIT compilation, configure Guile with `--enable-jit=3Dno' or > `--disable-jit'. The default is `--enable-jit=3Dauto', which enables the > JIT if it is available. See `./configure --help' for more. > > JIT compilation is enabled by default on x86-64, i686, ARMv7, and > AArch64 targets. > > ** Lower-level bytecode > > Relative to the virtual machine in Guile 2.2, Guile's VM instruction set > is now more low-level. This allows it to express more advanced > optimizations, for example type check elision or integer > devirtualization, and makes the task of JIT code generation easier. > > Note that this change can mean that for a given function, the > corresponding number of instructions in Guile 3.0 may be higher than > Guile 2.2, which can lead to slowdowns when the function is interpreted. > We hope that JIT compilation more than makes up for this slight > slowdown. > > ** Interleaved internal definitions and expressions allowed > > It used to be that internal definitions had to precede all expressions > in their bodies. This restriction has been relaxed. If an expression > precedes an internal definition, it is treated as if it were a > definition of an unreferenced variable. For example, the expression > `(foo)' transforms to the equivalent of `(define _ (begin (foo) #f))', > if it precedes other definitions. > > This change improves the readability of Guile programs, as it used to be > that program indentation tended to increase needlessly to allow nested > `let' and `letrec' to re-establish definition contexts after initial > expressions, for example for type-checks on procedure arguments. > > ** Record unification > > Guile used to have a number of implementations of structured data types > in the form of "records": a core facility, SRFI-9 (records), SRFI-35 > (condition types -- a form of records) and R6RS records. These > facilities were not compatible, as they all were built in different > ways. This had the unfortunate corollary that SRFI-35 conditions were > not compatible with R6RS conditions. To fix this problem, we have now > added the union of functionality from all of these record types into > core records: single-inheritance subtyping, mutable and immutable > fields, and so on. See "Records" in the manual, for full details. > > R6RS records, SRFI-9 records, and the SRFI-35 and R6RS exception types > have been accordingly "rebased" on top of core records. > > ** Reimplementation of exceptions > > Since Guile's origins 25 years ago, `throw' and `catch' have been the > primary exception-handling primitives. However these primitives have > two problems. One is that it's hard to handle exceptions in a > structured way using `catch'. Few people remember what the > corresponding `key' and `args' are that an exception handler would see > in response to a call to `error', for example. In practice, this > results in more generic catch-all exception handling than one might > like. > > The other problem is that `throw', `catch', and especially > `with-throw-handler' are quite unlike what the rest of the Scheme world > uses. R6RS and R7RS, for example, have mostly converged on > SRFI-34-style `with-exception-handler' and `raise' primitives, and > encourage the use of SRFI-35-style structured exception objects to > describe the error. Guile's R6RS layer incorporates an adapter between > `throw'/`catch' and structured exception handling, but it didn't apply > to SRFI-34/SRFI-35, and we would have to duplicate it for R7RS. > > In light of these considerations, Guile has now changed to make > `with-exception-handler' and `raise-exception' its primitives for > exception handling and defined a hierarchy of R6RS-style exception types > in its core. SRFI-34/35, R6RS, and the exception-handling components of > SRFI-18 (threads) have been re-implemented in terms of this core > functionality. There is also a a compatibility layer that makes it so > that exceptions originating in `throw' can be handled by > `with-exception-hander', and vice-versa for `raise-exception' and > `catch'. > > Generally speaking, users will see no difference. The one significant > difference is that users of SRFI-34 will see more exceptions flowing > through their `with-exception-handler'/`guard' forms, because whereas > before they would only see exceptions thrown by SRFI-34, now they will > see exceptions thrown by R6RS, R7RS, or indeed `throw'. > > Guile's situation is transitional. Most exceptions are still signalled > via `throw'. These will probably migrate over time to > `raise-exception', while preserving compatibility of course. > > See "Exceptions" in the manual, for full details on the new API. > > ** Optimization of top-level bindings within a compilation unit > > At optimization level 2 and above, Guile's compiler is now allowed to > inline top-level definitions within a compilation unit. See > "Declarative Modules" in the manual, for full details. This change can > improve the performance of programs with many small top-level > definitions by quite a bit! > > At optimization level 3 and above, Guile will assume that any top-level > binding in a declarative compilation unit that isn't exported from a > module can be completely inlined into its uses. (Prior to this change, > -O3 was the same as -O2.) Note that with this new > `seal-private-bindings' pass, private declarative bindings are no longer > available for access from the first-class module reflection API. The > optimizations afforded by this pass can be useful when you need a speed > boost, but having them enabled at optimization level 3 means they are > not on by default, as they change Guile's behavior in ways that users > might not expect. > > ** By default, GOOPS classes are not redefinable > > It used to be that all GOOPS classes were redefinable, at least in > theory. This facility was supported by an indirection in all "struct" > instances, even though only a subset of structs would need redefinition. > We wanted to remove this indirection, in order to speed up Guile > records, allow immutable Guile records to eventually be described by > classes, and allow for some optimizations in core GOOPS classes that > shouldn't be redefined anyway. > > Thus in GOOPS now there are classes that are redefinable and classes > that aren't. By default, classes created with GOOPS are not > redefinable. To make a class redefinable, it should be an instance of > `'. See "Redefining a Class" in the manual for more > information. > > ** Define top-level bindings for aux syntax: `else', `=3D>', `...', `_' > > These auxiliary syntax definitions are specified to be defined in the > R6RS and the R7RS. They were previously unbound, even in the R6RS > modules. This change is not anticipated to cause any incompatibility > with existing Guile code, and improves things for R6RS and R7RS users. > > ** Conventional gettext alias is now `G_' > > Related to the last point, since the "Fix literal matching for > module-bound literals" change in the 2.2 series, it was no longer > possible to use the conventional `_' binding as an alias for `gettext', > because a local `_' definition would prevent `_' from being recognized > as auxiliary syntax for `match', `syntax-rules', and similar. The new > recommended conventional alias for `gettext' is `G_'. > > ** Add --r6rs command-line option > > The new `install-r6rs!' procedure adapts Guile's defaults to be more > R6RS-compatible. This procedure is called if the user passes `--r6rs' > as a command-line argument. See "R6RS Incompatibilities" in the manual, > for full details. > > ** Add support for R7RS > > Thanks to G=C3=B6ran Weinholt and OKUMURA Yuki, Guile now implements the = R7RS > modules. As the R7RS library syntax is a subset of R6RS, to use R7RS > you just `(import (scheme base))' and off you go. As with R6RS also, > there are some small lexical incompatibilities regarding hex escapes; > see "R6RS Support" in the manual, for full details. > > Also as with R6RS, there is an `install-r7rs!' procedure and a `--r7rs' > command-line option. > > ** Add #:re-export-and-replace argument to `define-module' > > This new keyword specifies a set of bindings to re-export, but also > marks them as intended to replace core bindings. See "Creating Guile > Modules" in the manual, for full details. > > Note to make this change, we had to change the way replacement flags are > stored, to being associated with modules instead of individual variable > objects. This means that users who #:re-export an imported binding that > was already marked as #:replace by another module will now see warnings, > as they need to use #:re-export-and-replace instead. > > ** `iota' in core and SRFI-1 `iota' are the same > > Previously, `iota' in core would not accept start and step arguments and > would return an empty list for negative count. Now there is only one > `iota' function with the extended semantics of SRFI-1. Note that as an > incompatible change, core `iota' no longer accepts a negative count. > > * New deprecations > > ** scm_t_uint8, etc deprecated in favor of C99 stdint.h > > It used to be that Guile defined its own `scm_t_uint8' because C99 > `uint8_t' wasn't widely enough available. Now Guile finally made the > change to use C99 types, both internally and in Guile's public headers. > > Note that this also applies to SCM_T_UINT8_MAX, SCM_T_INT8_MIN, for intN > and uintN for N in 8, 16, 32, and 64. Guile also now uses ptrdiff_t > instead of scm_t_ptrdiff, and similarly for intmax_t, uintmax_t, > intptr_t, and uintptr_t. > > ** The two-argument form of `record-constructor' > > Calling `record-constructor' with two arguments (the record type and a > list of field names) is deprecated. Instead, call with just one > argument, and provide a wrapper around that constructor if needed. > > * Incompatible changes > > ** All deprecated code removed > > All code deprecated in Guile 2.2 has been removed. See older NEWS, and > check that your programs can compile without linker warnings and run > without runtime warnings. See "Deprecation" in the manual. > > In particular, the function `scm_generalized_vector_get_handle' which > was deprecated in 2.0.9 but remained in 2.2, has now finally been > removed. As a replacement, use `scm_array_get_handle' to get a handle > and `scm_array_handle_rank' to check the rank. > > ** Remove "self" field from vtables and "redefined" field from classes > > These fields were used as part of the machinery for class redefinition > and is no longer needed. > > ** VM hook manipulation simplified > > The low-level mechanism to instrument a running virtual machine for > debugging and tracing has been simplified. See "VM Hooks" in the > manual, for more. > > * Changes to the distribution > > ** New effective version > > The "effective version" of Guile is now 3.0, which allows parallel > installation with other effective versions (for example, the older Guile > 2.2). See "Parallel Installations" in the manual for full details. > Notably, the `pkg-config' file is now `guile-3.0', and there are new > `guile-3' and `guile-3.0' features for `cond-expand'. > > --000000000000e5f303059bbb7d12 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can't make a simple case out of this. But the gist i= s that we have a module c

(define-module (c)
=C2=A0 #:expo= rt (fail))

(define fail (cons 'fail '()))
Then in module b:

(define-module (b)=C2=A0 #:use-module (c)
=C2=A0 #:export (f))

(define-syntax-rul= e (kif it p x y)
=C2=A0 (let ((it p))
=C2=A0 =C2=A0 (if (eq? it fail)=
y
x)))

(define (f x)
=C2=A0 (kif it (x) it x))
=

Module b is too simple and this compiles, I have a more= advanced module and uses of the tag fail. Now this module
compil= es when we have=C2=A0the definition of fail in the same module but separati= ng it out to module c lead to the fopllowing
stack trace:
B= acktrace:
In system/base/compile.scm:
=C2=A0=C2=A0155:11 19 (_ #<closed: file 5620dba602a0>)
=C2=A0=C2=A0224:14 18 (read-and-compile _ #:from _ #:to _ #:env _ #:op= ts _)
=C2=A0=C2=A0=C2=A0175:2 17 (compile _ #:from _ #:to _ #:env _ #:opts _= )
=C2=A0=C2=A0183:32 16 (compile-fold _ _ _ (#:to-file? #t #:warnings (#= # # =E2=80=A6)))
In language/cps/compile-bytecode.scm:
=C2=A0=C2=A0699:12 15 (compile-bytecode _ #<directory (oop pf-objec= ts) 5620d=E2=80=A6> =E2=80=A6)
In language/cps/closure-conversion.scm:
=C2=A0=C2=A0=C2=A0885:7 14 (convert-closures _)
In language/cps/intmap.scm:
=C2=A0=C2=A0=C2=A0519:5 13 (visit-branch #(#(#(#<intset 0-18,20-22,= 24-29=E2=80=A6> =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)
=C2=A0=C2=A0=C2=A0519:5 12 (visit-branch #(#(#<intset 0-18,20-22,24= -29,32-3=E2=80=A6> =E2=80=A6) =E2=80=A6) =E2=80=A6)
=C2=A0=C2=A0=C2=A0519:5 11 (visit-branch #(#<intset 0-18,20-22,24-2= 9,32-36,38,=E2=80=A6> =E2=80=A6) =E2=80=A6)
In language/cps/intset.scm:
=C2=A0=C2=A0=C2=A0470:5 10 (visit-branch #(#(#(#(1064828927 3623737183= =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)
=C2=A0=C2=A0=C2=A0470:5 =C2=A09 (visit-branch #(#(#(1064828927 3623737= 183 # # # =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)
=C2=A0=C2=A0=C2=A0470:5 =C2=A08 (visit-branch #(#(3047188480 218316806= 1799356468 =E2=80=A6) =E2=80=A6) =E2=80=A6)
=C2=A0=C2=A0=C2=A0470:5 =C2=A07 (visit-branch #(213200 #f 1073741824 4= 294287363 # # # =E2=80=A6) =E2=80=A6)
=C2=A0=C2=A0=C2=A0470:5 =C2=A06 (visit-branch 4093640703 _ 2688 _)
In language/cps/closure-conversion.scm:
=C2=A0=C2=A0749:15 =C2=A05 (_ 2705 _)
=C2=A0=C2=A0771:22 =C2=A04 (lp #<intmap 0-18,20-22,24-29,32-36,38,4= 0-42,44,46-48,=E2=80=A6> =E2=80=A6)
=C2=A0=C2=A0771:22 =C2=A03 (lp #<intmap 0-18,20-22,24-29,32-36,38,4= 0-42,44,46-48,=E2=80=A6> =E2=80=A6)
=C2=A0=C2=A0771:22 =C2=A02 (lp #<intmap 0-18,20-22,24-29,32-36,38,4= 0-42,44,46-48,=E2=80=A6> =E2=80=A6)
=C2=A0=C2=A0610:11 =C2=A01 (allocate-closure _ _ _ _ _ 1)
In ice-9/boot-9.scm:
=C2=A01655:16 =C2=A00 (raise-exception _ #:continuable? _)=C2=A0

ice-9/b= oot-9.scm:1655:16: In procedure raise-exception:
unexpected well-known nullary, unary, or binary closure
Makefile:1295: recipe for target 'oop/pf-objects.go' failed
make: *** [oop/pf-objects.go] Error 1








On Thu, Jan 2, 2020 at 2:37 PM Andy Wingo <wingo@pobox.com> wrote:
We are pleased to announce GNU Guile release 2.9.8.= =C2=A0 This is the eighth
and possibly final pre-release of what will eventually become the 3.0
release series.

Compared to the current stable series (2.2.x), the future Guile 3.0 adds support for just-in-time native code generation, speeding up all Guile
programs.=C2=A0 See the NEWS extract at the end of the mail for full detail= s.

Compared to the previous prerelease (2.9.7), Guile 2.9.8 fixes a bug in
libguile that caused writes to unmapped memory in some circumstances.
This problem manifested itself as a failure of Guile to compile itself
on some systems, notably Ubuntu 18.04 on x86-64.=C2=A0 It also fixes a coup= le
warnings related to SRFI-35.

The current plan is to make a 3.0.0 final release on 17 January 2020.
We may need another prerelease in the interim.=C2=A0 It's a good time t= o test
the prereleases to make sure they work on your platform.=C2=A0 Please send<= br> any build reports (success or failure) to guile-devel@gnu.org, along
with platform details.=C2=A0 You can file a bug by sending mail to
bug-guile@gnu.org.

The Guile web page is located at
http://gnu.org/software/guile/, a= nd
among other things, it contains a copy of the Guile manual and pointers
to more resources.

Guile is an implementation of the Scheme programming language, with
support for many SRFIs, packaged for use in a wide variety of
environments.=C2=A0 In addition to implementing the R5RS Scheme standard, Guile includes a module system, full access to POSIX system calls,
networking support, multiple threads, dynamic linking, a foreign
function call interface, and powerful string processing.

Guile can run interactively, as a script interpreter, and as a Scheme
compiler to VM bytecode.=C2=A0 It is also packaged as a library so that
applications can easily incorporate a complete Scheme interpreter/VM.
An application can use Guile as an extension language, a clean and
powerful configuration language, or as multi-purpose "glue" to co= nnect
primitives provided by the application.=C2=A0 It is easy to call Scheme cod= e
>From C code and vice versa.=C2=A0 Applications can add new functions, data<= br> types, control structures, and even syntax to Guile, to create a
domain-specific language tailored to the task at hand.

Guile 2.9.8 can be installed in parallel with Guile 2.2.x; see
http://www.gnu.org/sof= tware/guile/manual/html_node/Parallel-Installations.html.

A more detailed NEWS summary follows these details on how to get the
Guile sources.

Here are the compressed sources:
=C2=A0 http://alpha.gnu.org/gnu/guile/guile-2.9.8.t= ar.lz=C2=A0 =C2=A0(10MB)
=C2=A0 http://alpha.gnu.org/gnu/guile/guile-2.9.8.t= ar.xz=C2=A0 =C2=A0(12MB)
=C2=A0 http://alpha.gnu.org/gnu/guile/guile-2.9.8.t= ar.gz=C2=A0 =C2=A0(21MB)

Here are the GPG detached signatures[*]:
=C2=A0 http://alpha.gnu.org/gnu/guile/guile-2.9= .8.tar.lz.sig
=C2=A0 http://alpha.gnu.org/gnu/guile/guile-2.9= .8.tar.xz.sig
=C2=A0 http://alpha.gnu.org/gnu/guile/guile-2.9= .8.tar.gz.sig

Use a mirror for higher download bandwidth:
=C2=A0 http://www.gnu.org/order/ftp.html

Here are the SHA256 checksums:

=C2=A0 3ce11e9dca0f475fa944729d99f33c379fe8962e729bd21a99470249624c71d7=C2= =A0 guile-2.9.8.tar.lz
=C2=A0 4a8cf663b8bfd435168935c74a8ec434328ffad16230322c64f0ac567dda2c26=C2= =A0 guile-2.9.8.tar.xz
=C2=A0 31c3d458ff9342db130e27c8d82d2a33912da92845e5ee431b6a125971a823d2=C2= =A0 guile-2.9.8.tar.gz

[*] Use a .sig file to verify that the corresponding file (without the
.sig suffix) is intact.=C2=A0 First, be sure to download both the .sig file=
and the corresponding tarball.=C2=A0 Then, run a command like this:

=C2=A0 gpg --verify guile-2.9.8.tar.gz.sig

If that command fails because you don't have the required public key, then run this command to import it:

=C2=A0 gpg --keyserver keys.gnupg.net --recv-keys 4FD4D288D445934E0A14F9A5A= 8803732E4436885

and rerun the 'gpg --verify' command.

This release was bootstrapped with the following tools:
=C2=A0 Autoconf 2.69
=C2=A0 Automake 1.16.1
=C2=A0 Libtool 2.4.6
=C2=A0 Gnulib v0.1-1157-gb03f418
=C2=A0 Makeinfo 6.5

An extract from NEWS follows.


Changes in alpha 2.9.8 (since alpha 2.9.7):

* Bug fixes

** Fix bug in which abort_to_prompt used an invalid stack pointer

This bug manifested itself as a bootstrap compile error on some systems, notably Ubuntu 18.04 on x86-64, and was due to failing to recalculate a
local variable after a possible stack relocation.

** SRFI-35 does a #:re-export-and-replace on `&error'
** SRFI-35 avoids compiler warnings for multiply-defined condition types

Changes in alpha 2.9.x (since the stable 2.2 series):

* Notable changes

** Just-in-time code generation

Guile programs now run up to 4 times faster, relative to Guile 2.2,
thanks to just-in-time (JIT) native code generation.=C2=A0 Notably, this brings the performance of "eval" as written in Scheme back to the= level
of "eval" written in C, as in the days of Guile 1.8.

See "Just-In-Time Native Code" in the manual, for more informatio= n.=C2=A0 JIT
compilation will be enabled automatically and transparently.=C2=A0 To disab= le
JIT compilation, configure Guile with `--enable-jit=3Dno' or
`--disable-jit'.=C2=A0 The default is `--enable-jit=3Dauto', which = enables the
JIT if it is available.=C2=A0 See `./configure --help' for more.

JIT compilation is enabled by default on x86-64, i686, ARMv7, and
AArch64 targets.

** Lower-level bytecode

Relative to the virtual machine in Guile 2.2, Guile's VM instruction se= t
is now more low-level.=C2=A0 This allows it to express more advanced
optimizations, for example type check elision or integer
devirtualization, and makes the task of JIT code generation easier.

Note that this change can mean that for a given function, the
corresponding number of instructions in Guile 3.0 may be higher than
Guile 2.2, which can lead to slowdowns when the function is interpreted. We hope that JIT compilation more than makes up for this slight
slowdown.

** Interleaved internal definitions and expressions allowed

It used to be that internal definitions had to precede all expressions
in their bodies.=C2=A0 This restriction has been relaxed.=C2=A0 If an expre= ssion
precedes an internal definition, it is treated as if it were a
definition of an unreferenced variable.=C2=A0 For example, the expression `(foo)' transforms to the equivalent of `(define _ (begin (foo) #f))= 9;,
if it precedes other definitions.

This change improves the readability of Guile programs, as it used to be that program indentation tended to increase needlessly to allow nested
`let' and `letrec' to re-establish definition contexts after initia= l
expressions, for example for type-checks on procedure arguments.

** Record unification

Guile used to have a number of implementations of structured data types
in the form of "records": a core facility, SRFI-9 (records), SRFI= -35
(condition types -- a form of records) and R6RS records.=C2=A0 These
facilities were not compatible, as they all were built in different
ways.=C2=A0 This had the unfortunate corollary that SRFI-35 conditions were=
not compatible with R6RS conditions.=C2=A0 To fix this problem, we have now=
added the union of functionality from all of these record types into
core records: single-inheritance subtyping, mutable and immutable
fields, and so on.=C2=A0 See "Records" in the manual, for full de= tails.

R6RS records, SRFI-9 records, and the SRFI-35 and R6RS exception types
have been accordingly "rebased" on top of core records.

** Reimplementation of exceptions

Since Guile's origins 25 years ago, `throw' and `catch' have be= en the
primary exception-handling primitives.=C2=A0 However these primitives have<= br> two problems.=C2=A0 One is that it's hard to handle exceptions in a
structured way using `catch'.=C2=A0 Few people remember what the
corresponding `key' and `args' are that an exception handler would = see
in response to a call to `error', for example.=C2=A0 In practice, this<= br> results in more generic catch-all exception handling than one might
like.

The other problem is that `throw', `catch', and especially
`with-throw-handler' are quite unlike what the rest of the Scheme world=
uses.=C2=A0 R6RS and R7RS, for example, have mostly converged on
SRFI-34-style `with-exception-handler' and `raise' primitives, and<= br> encourage the use of SRFI-35-style structured exception objects to
describe the error.=C2=A0 Guile's R6RS layer incorporates an adapter be= tween
`throw'/`catch' and structured exception handling, but it didn'= t apply
to SRFI-34/SRFI-35, and we would have to duplicate it for R7RS.

In light of these considerations, Guile has now changed to make
`with-exception-handler' and `raise-exception' its primitives for exception handling and defined a hierarchy of R6RS-style exception types in its core.=C2=A0 SRFI-34/35, R6RS, and the exception-handling components = of
SRFI-18 (threads) have been re-implemented in terms of this core
functionality.=C2=A0 There is also a a compatibility layer that makes it so=
that exceptions originating in `throw' can be handled by
`with-exception-hander', and vice-versa for `raise-exception' and `catch'.

Generally speaking, users will see no difference.=C2=A0 The one significant=
difference is that users of SRFI-34 will see more exceptions flowing
through their `with-exception-handler'/`guard' forms, because where= as
before they would only see exceptions thrown by SRFI-34, now they will
see exceptions thrown by R6RS, R7RS, or indeed `throw'.

Guile's situation is transitional.=C2=A0 Most exceptions are still sign= alled
via `throw'.=C2=A0 These will probably migrate over time to
`raise-exception', while preserving compatibility of course.

See "Exceptions" in the manual, for full details on the new API.<= br>
** Optimization of top-level bindings within a compilation unit

At optimization level 2 and above, Guile's compiler is now allowed to inline top-level definitions within a compilation unit.=C2=A0 See
"Declarative Modules" in the manual, for full details.=C2=A0 This= change can
improve the performance of programs with many small top-level
definitions by quite a bit!

At optimization level 3 and above, Guile will assume that any top-level
binding in a declarative compilation unit that isn't exported from a module can be completely inlined into its uses.=C2=A0 (Prior to this change= ,
-O3 was the same as -O2.)=C2=A0 Note that with this new
`seal-private-bindings' pass, private declarative bindings are no longe= r
available for access from the first-class module reflection API.=C2=A0 The<= br> optimizations afforded by this pass can be useful when you need a speed
boost, but having them enabled at optimization level 3 means they are
not on by default, as they change Guile's behavior in ways that users might not expect.

** By default, GOOPS classes are not redefinable

It used to be that all GOOPS classes were redefinable, at least in
theory.=C2=A0 This facility was supported by an indirection in all "st= ruct"
instances, even though only a subset of structs would need redefinition. We wanted to remove this indirection, in order to speed up Guile
records, allow immutable Guile records to eventually be described by
classes, and allow for some optimizations in core GOOPS classes that
shouldn't be redefined anyway.

Thus in GOOPS now there are classes that are redefinable and classes
that aren't.=C2=A0 By default, classes created with GOOPS are not
redefinable.=C2=A0 To make a class redefinable, it should be an instance of=
`<redefinable-class>'.=C2=A0 See "Redefining a Class" i= n the manual for more
information.

** Define top-level bindings for aux syntax: `else', `=3D>', `..= .', `_'

These auxiliary syntax definitions are specified to be defined in the
R6RS and the R7RS.=C2=A0 They were previously unbound, even in the R6RS
modules.=C2=A0 This change is not anticipated to cause any incompatibility<= br> with existing Guile code, and improves things for R6RS and R7RS users.

** Conventional gettext alias is now `G_'

Related to the last point, since the "Fix literal matching for
module-bound literals" change in the 2.2 series, it was no longer
possible to use the conventional `_' binding as an alias for `gettext&#= 39;,
because a local `_' definition would prevent `_' from being recogni= zed
as auxiliary syntax for `match', `syntax-rules', and similar.=C2=A0= The new
recommended conventional alias for `gettext' is `G_'.

** Add --r6rs command-line option

The new `install-r6rs!' procedure adapts Guile's defaults to be mor= e
R6RS-compatible.=C2=A0 This procedure is called if the user passes `--r6rs&= #39;
as a command-line argument.=C2=A0 See "R6RS Incompatibilities" in= the manual,
for full details.

** Add support for R7RS

Thanks to G=C3=B6ran Weinholt and OKUMURA Yuki, Guile now implements the R7= RS
modules.=C2=A0 As the R7RS library syntax is a subset of R6RS, to use R7RS<= br> you just `(import (scheme base))' and off you go.=C2=A0 As with R6RS al= so,
there are some small lexical incompatibilities regarding hex escapes;
see "R6RS Support" in the manual, for full details.

Also as with R6RS, there is an `install-r7rs!' procedure and a `--r7rs&= #39;
command-line option.

** Add #:re-export-and-replace argument to `define-module'

This new keyword specifies a set of bindings to re-export, but also
marks them as intended to replace core bindings.=C2=A0 See "Creating G= uile
Modules" in the manual, for full details.

Note to make this change, we had to change the way replacement flags are stored, to being associated with modules instead of individual variable
objects.=C2=A0 This means that users who #:re-export an imported binding th= at
was already marked as #:replace by another module will now see warnings, as they need to use #:re-export-and-replace instead.

** `iota' in core and SRFI-1 `iota' are the same

Previously, `iota' in core would not accept start and step arguments an= d
would return an empty list for negative count. Now there is only one
`iota' function with the extended semantics of SRFI-1.=C2=A0 Note that = as an
incompatible change, core `iota' no longer accepts a negative count.
* New deprecations

** scm_t_uint8, etc deprecated in favor of C99 stdint.h

It used to be that Guile defined its own `scm_t_uint8' because C99
`uint8_t' wasn't widely enough available.=C2=A0 Now Guile finally m= ade the
change to use C99 types, both internally and in Guile's public headers.=

Note that this also applies to SCM_T_UINT8_MAX, SCM_T_INT8_MIN, for intN and uintN for N in 8, 16, 32, and 64.=C2=A0 Guile also now uses ptrdiff_t instead of scm_t_ptrdiff, and similarly for intmax_t, uintmax_t,
intptr_t, and uintptr_t.

** The two-argument form of `record-constructor'

Calling `record-constructor' with two arguments (the record type and a<= br> list of field names) is deprecated.=C2=A0 Instead, call with just one
argument, and provide a wrapper around that constructor if needed.

* Incompatible changes

** All deprecated code removed

All code deprecated in Guile 2.2 has been removed.=C2=A0 See older NEWS, an= d
check that your programs can compile without linker warnings and run
without runtime warnings.=C2=A0 See "Deprecation" in the manual.<= br>
In particular, the function `scm_generalized_vector_get_handle' which was deprecated in 2.0.9 but remained in 2.2, has now finally been
removed. As a replacement, use `scm_array_get_handle' to get a handle and `scm_array_handle_rank' to check the rank.

** Remove "self" field from vtables and "redefined" fie= ld from classes

These fields were used as part of the machinery for class redefinition
and is no longer needed.

** VM hook manipulation simplified

The low-level mechanism to instrument a running virtual machine for
debugging and tracing has been simplified.=C2=A0 See "VM Hooks" i= n the
manual, for more.

* Changes to the distribution

** New effective version

The "effective version" of Guile is now 3.0, which allows paralle= l
installation with other effective versions (for example, the older Guile 2.2).=C2=A0 See "Parallel Installations" in the manual for full d= etails.
Notably, the `pkg-config' file is now `guile-3.0', and there are ne= w
`guile-3' and `guile-3.0' features for `cond-expand'.

--000000000000e5f303059bbb7d12--