unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* GNU Guile 1.9.5 released (alpha)
@ 2009-11-17 23:21 Ludovic Courtès
  2009-11-18 11:23 ` Ludovic Courtès
  2009-11-29  2:45 ` Linas Vepstas
  0 siblings, 2 replies; 5+ messages in thread
From: Ludovic Courtès @ 2009-11-17 23:21 UTC (permalink / raw)
  To: guile-user; +Cc: guile-devel

[-- Attachment #1: Type: text/plain, Size: 9469 bytes --]

We are pleased to announce GNU Guile release 1.9.5.  This is the next
pre-release of what will eventually become the 2.0 release series.  It
provides many new noteworthy features, most notably the addition of a
compiler and virtual machine.  We encourage you to test them and provide
feedback to `guile-devel@gnu.org'.

The Guile web page is located at http://gnu.org/software/guile/, and
among other things, it contains a link to the Guile FAQ and pointers to
the mailing lists.

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.


Here are the compressed sources:
  ftp://alpha.gnu.org/gnu/guile/guile-1.9.5.tar.gz   (4.6MB)

Here are the GPG detached signatures[*]:
  ftp://alpha.gnu.org/gnu/guile/guile-1.9.5.tar.gz.sig

Here are the MD5 and SHA1 checksums:

a5b5527d59e30dd964bd3a9d00dad452  guile-1.9.5.tar.gz
b8d6055318c8ac3482479df679adf943a2e1c292  guile-1.9.5.tar.gz

[*] You can use either of the above signature files 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-1.9.5.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 EA52ECF4

and rerun the `gpg --verify' command.

This release was bootstrapped with the following tools:
  Autoconf 2.64
  Automake 1.11
  Libtool 2.2.6
  Gnulib v0.0-2885-g29c308a


This is a new release series with many new features and differences
compared to 1.8.  The complete list of changes compared to the 1.8.x
series is available in the `NEWS' file.

Changes since the 1.9.4 pre-release:

  ** Compiled procedures may now have more than one arity.

  This can be the case, for example, in case-lambda procedures. The
  arities of compiled procedures may be accessed via procedures from the
  `(system vm program)' module; see "Compiled Procedures", "Optional
  Arguments", and "Case-lambda" in the manual. 

  ** `case-lambda' is now available in the default environment.

  The binding in the default environment is equivalent to the one from the
  `(srfi srfi-16)' module. Use the srfi-16 module explicitly if you wish
  to maintain compatibility with Guile 1.8 and earlier.

  ** VM calling convention change: callee-parsed arguments

  As an internal implementation detail, compiled procedures are now
  responsible for parsing their own arguments, which they receive on the
  stack.

  ** VM support for multiple-arity dispatch

  Calls to procedures with multiple arities, for example those made be
  `case-lambda', now dispatch via special opcodes, without the need to
  cons a rest list.

  ** Intermediate language support for multiple-arity procedures.

  In the intermediate language, tree-il, all procedures may have one or
  more arities. This allows all Guile languages to have multiple arities.
  It is, however, an incompatible change, and anyone maintaining a
  compiler out-of-tree would be advised to get it into Guile soon :)

  ** `lambda*' and `define*' are now available in the default environment

  As with `case-lambda', `(ice-9 optargs)' continues to be supported, for
  compatibility purposes. No semantic change has been made (we hope).
  Optional and keyword arguments now dispatch via special VM operations,
  without the need to cons rest arguments, making them very fast.

  ** Better support for Lisp `nil'.

  The bit representation of `nil' has been tweaked so that it is now very
  efficient to check e.g. if a value is equal to Scheme's end-of-list or
  Lisp's nil. Additionally there are a heap of new, specific predicates
  like scm_is_null_or_nil. Probably in the future we will #define
  scm_is_null to scm_is_null_or_nil.

  ** No future.

  Actually the future is still in the state that it was, is, and ever
  shall be, Amen, except that `futures.c' and `futures.h' are no longer a
  part of it. These files were experimental, never compiled, and would be
  better implemented in Scheme anyway. In the future, that is.

  ** Support for static allocation of strings, symbols, and subrs.

  Calls to snarfing CPP macros like SCM_DEFINE macro will now allocate
  much of their associated data as static variables, reducing Guile's
  memory footprint.

  ** Inline vector allocation

  Instead of having vectors point out into the heap for their data, their
  data is now allocated inline to the vector object itself. The same is
  true for bytevectors, by default, though there is an indirection
  available which should allow for making a bytevector from an existing
  memory region.

  ** New syntax: include-from-path.

  `include-from-path' is like `include', except it looks for its file in
  the load path. It can be used to compile other files into a file.

  ** New syntax: quasisyntax.

  `quasisyntax' is to `syntax' as `quasiquote' is to `quote'. See the R6RS
  documentation for more information. Thanks to Andre van Tonder for the
  implementation.

  ** Cleanups to Guile's primitive object system.

  There were a number of pieces in `objects.[ch]' that tried to be a
  minimal object system, but were never documented, and were quickly
  obseleted by GOOPS' merge into Guile proper. So `scm_make_class_object',
  `scm_make_subclass_object', `scm_metaclass_standard', and like symbols
  from objects.h are no more. In the very unlikely case in which these
  were useful to you, we urge you to contact guile-devel.

  ** GOOPS cleanups.

  GOOPS had a number of concepts that were relevant to the days of Tcl,
  but not any more: operators and entities, mainly. These objects were
  never documented, and it is unlikely that they were ever used. Operators
  were a kind of generic specific to the Tcl support. Entities were
  applicable structures, but were unusable; entities will come back in the
  next alpha release, but with a less stupid name.

  ** Faster bit operations.

  The bit-twiddling operations `ash', `logand', `logior', and `logxor' now
  have dedicated bytecodes. Guile is not just for symbolic computation,
  it's for number crunching too.

  ** `inet-ntop' and `inet-pton' are always available.

  Guile now use a portable implementation of `inet_pton'/`inet_ntop', so
  there is no more need to use `inet-aton'/`inet-ntoa'. The latter
  functions are deprecated.

  ** R6RS block comment support

  Guile now supports R6RS nested block comments. The start of a comment is
  marked with `#|', and the end with `|#'.

  ** `guile-2' cond-expand feature

  To test if your code is running under Guile 2.0 (or its alpha releases),
  test for the `guile-2' cond-expand feature. Like this:

       (cond-expand (guile-2 (eval-when (compile)
                               ;; This must be evaluated at compile time.
                               (fluid-set! current-reader my-reader)))
                    (guile
                             ;; Earlier versions of Guile do not have a
                             ;; separate compilation phase.
                             (fluid-set! current-reader my-reader)))

  ** ABI harmonization

  `scm_search_path' now has the signature it did in 1.8, reverting an
  incompatible change made in 1.9.0.

  ** Compile-time warnings: -Warity-mismatch

  Guile can warn when you pass the wrong number of arguments to a
  procedure. Pass the -Warity-mismatch on the `guile-tools compile'
  command line, or add `#:warnings '(arity-mismatch)' to your `compile'
  or `compile-file' invocation.

  ** Guile is now built without `-Werror' by default

  Use the `--enable-error-on-warning' configure option to enable it.

  ** And of course, the usual collection of bugfixes

  Interested users should see the ChangeLog for more information.


You can follow Guile development in the Git repository and on the Guile
mailing lists.  Guile builds from the `master' branch of Git have
version number 1.9.x.

Guile versions with an odd middle number, e.g., 1.9.*, are unstable
development versions.  Even middle numbers indicate stable versions.
This has been the case since the 1.3.* series.

Please report bugs to `bug-guile@gnu.org'.  We also welcome reports of
successful builds, which can be sent to the same email address.


Ludovic Courtès, on behalf of the Guile team.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNU Guile 1.9.5 released (alpha)
  2009-11-17 23:21 GNU Guile 1.9.5 released (alpha) Ludovic Courtès
@ 2009-11-18 11:23 ` Ludovic Courtès
  2009-11-29  2:45 ` Linas Vepstas
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2009-11-18 11:23 UTC (permalink / raw)
  To: guile-user; +Cc: guile-devel

[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]

Hello Guilers!

Of course, it was not until this morning that I discovered this:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> %load-compiled-path 
$1 = ("/home/ludo/soft/lib/GNU Guile/1.9/ccache")
scheme@(guile-user)> %load-path 
$2 = ("/home/ludo/.nix-profile/share/guile/site" "/home/ludo/soft/share/GNU Guile/site" "/home/ludo/soft/share/GNU Guile/1.9" "/home/ludo/soft/share/GNU Guile")

$ ls ~/soft/share/GNU\ Guile/1.9/
guile-procedures.txt  ice-9/  lang/  language/  oop/  rnrs/  scripts/  srfi/  system/
--8<---------------cut here---------------end--------------->8---

The directory names contain “GNU Guile” instead of “guile”.  On
GNU/Linux at least, the build system and Guile don’t have any problems
dealing with whitespaces in directory names, so it actually works, but
it surely wasn’t intended.

I fixed it in ‘master’ and started looking for someone else to blame:

  http://git.sv.gnu.org/cgit/guile.git/commit/?id=53da7372beca90a58b7401a84627815289a53d11
  http://thread.gmane.org/gmane.comp.sysutils.automake.bugs/4803

Apologies for the inconvenience, and happy GNU\ Guile hacking
nevertheless!

Ludo’.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNU Guile 1.9.5 released (alpha)
  2009-11-17 23:21 GNU Guile 1.9.5 released (alpha) Ludovic Courtès
  2009-11-18 11:23 ` Ludovic Courtès
@ 2009-11-29  2:45 ` Linas Vepstas
  2009-11-29  6:07   ` Linas Vepstas
  2009-11-29 12:33   ` Ludovic Courtès
  1 sibling, 2 replies; 5+ messages in thread
From: Linas Vepstas @ 2009-11-29  2:45 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guile-user, guile-devel

2009/11/17 Ludovic Courtès <ludo@gnu.org>:
> We are pleased to announce GNU Guile release 1.9.5.

Now I'm getting a crash.

guile-1.9..5 built with gc-7.1, and running three threads:

one thread is sleeping
another thread is waiting on select()
third crashes with following stack trace:

Program received signal SIGPWR, Power fail/restart.

#0  0xf7fc6425 in __kernel_vsyscall ()
#1  0xf7f911c8 in pthread_kill () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xf74652b3 in GC_suspend_all () at pthread_stop_world.c:355
#3  0xf7465312 in GC_stop_world () at pthread_stop_world.c:395
#4  0xf7454b9e in GC_stopped_mark (stop_func=0xf7453fc0
<GC_never_stop_func>) at alloc.c:474
#5  0xf7454e89 in GC_try_to_collect_inner (stop_func=0xf7453fc0
<GC_never_stop_func>) at alloc.c:362
#6  0xf74550ec in GC_collect_or_expand (needed_blocks=1,
ignore_off_page=0) at alloc.c:1017
#7  0xf74556d9 in GC_allocobj (gran=2, kind=1) at alloc.c:1064
#8  0xf745a37c in GC_generic_malloc_inner (lb=16, k=1) at malloc.c:119
#9  0xf745a416 in GC_generic_malloc (lb=16, k=1) at malloc.c:159
#10 0xf745a6bd in GC_core_malloc (lb=16) at malloc.c:286
#11 0xf7463a49 in GC_malloc (bytes=16) at thread_local_alloc.c:149
#12 0xf7e2780c in scm_i_make_string (len=9, charsp=0xf550b1b4) at
../libguile/inline.h:161
#13 0xf7e27ca2 in scm_from_stringn (str=0xf550b227 "Kvint.xml", len=9,
encoding=0x0,
    handler=SCM_FAILED_CONVERSION_QUESTION_MARK) at strings.c:1402
#14 0xf7e27e35 in scm_from_locale_stringn (str=0xf550b227 "Kvint.xml",
len=9) at strings.c:1487
#15 0xf7e4d9c3 in scm_readdir (port=0x9ecaaa0) at filesys.c:919
#16 0xf7dc3ff7 in deval (x=0x9ec7a00, env=0xa330d60) at eval.i.c:1087
#17 0xf7dc3ec7 in deval (x=0x9ec9ba0, env=0xa330d60) at eval.i.c:608
#18 0xf7dc813a in scm_primitive_eval_x (exp=0x9ecaad0) at eval.c:4010
#19 0xf7e29d88 in inner_eval_string (data=0x9ec99a0) at strports.c:533
#20 0xf7dc9d2e in scm_c_with_fluid (fluid=0x9d4a360, value=0x9d925f0,
cproc=0xf7e29d60 <inner_eval_string>,
    cdata=0x9ec99a0) at fluids.c:382
#21 0xf7de7505 in scm_c_call_with_current_module (module=0x9d925f0,
func=0xf7e29d60 <inner_eval_string>,
    data=0x9ec99a0) at modules.c:114
#22 0xf7e2a179 in scm_eval_string_in_module (string=0x9e2e4c0,
module=0x9d925f0) at strports.c:560
#23 0xf7e2a1e5 in scm_eval_string (string=0x9e2e4c0) at strports.c:568
#24 0xf7e2a215 in scm_c_eval_string (expr=0xa331a44
"(suck-in-filenames (opendir input-filedir) '())\n")

FWIW, the above is executing the following:

   (define (suck-in-filenames port lst)
      (let ((one-file (readdir port)))
         (if (eof-object? one-file)
            lst
            (suck-in-filenames port
                  (cons one-file lst)
            )
         )
      )
   )

(suck-in-filenames (opendir input-filedir) '())

here, input-filedir is a directory has about 14K filenames in it,
many of the filenames contain UTF-8  chars.

--linas




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNU Guile 1.9.5 released (alpha)
  2009-11-29  2:45 ` Linas Vepstas
@ 2009-11-29  6:07   ` Linas Vepstas
  2009-11-29 12:33   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Linas Vepstas @ 2009-11-29  6:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guile-user, guile-devel

2009/11/28 Linas Vepstas <linasvepstas@gmail.com>:
> 2009/11/17 Ludovic Courtès <ludo@gnu.org>:
>> We are pleased to announce GNU Guile release 1.9.5.
>
> Now I'm getting a crash.
>
> third crashes with following stack trace:
>
> Program received signal SIGPWR, Power fail/restart.

I retract this bug report -- user error, I think.

There were other recent changes to my app, which resulted
in scm_xxx calls being made when not in guile mode.  I'm
guessing that these messed up guile state, eventually leading
to the crash.

Sorry for the false alarm (although I have yet to retest under 1.9.5)

--linas




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNU Guile 1.9.5 released (alpha)
  2009-11-29  2:45 ` Linas Vepstas
  2009-11-29  6:07   ` Linas Vepstas
@ 2009-11-29 12:33   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2009-11-29 12:33 UTC (permalink / raw)
  To: linasvepstas; +Cc: guile-user, guile-devel

Linas Vepstas <linasvepstas@gmail.com> writes:

> Program received signal SIGPWR, Power fail/restart.

As you noticed, it’s not a “crash”: this signal is used by libgc to
achieve stop-the-world GCs.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-29 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-17 23:21 GNU Guile 1.9.5 released (alpha) Ludovic Courtès
2009-11-18 11:23 ` Ludovic Courtès
2009-11-29  2:45 ` Linas Vepstas
2009-11-29  6:07   ` Linas Vepstas
2009-11-29 12:33   ` Ludovic Courtès

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).