Re: GNU Guile 2.1.7 released (beta)

2017-02-27 Thread Daniel Llorens
On 28 Feb 2017, at 01:04, David Pirotte wrote: > Hi Andy, > >> So! Release blockers. >> ... > > Not a blocker, at all, but I was thinking to this, wrt manipulating (very) > large > vectors, arrays, lists ... > > -]repl - truncated-print > > Right now I edit the installed (system repl c

Re: GNU Guile 2.1.7 released (beta)

2017-02-27 Thread David Pirotte
Hi Andy, > So! Release blockers. > ... Not a blocker, at all, but I was thinking to this, wrt manipulating (very) large vectors, arrays, lists ... -] repl - truncated-print Right now I edit the installed (system repl common), and wrote a tip in Guile-CV's manual so users can do that as w

Re: Guile benchmark

2017-02-27 Thread Chris Vine
On Mon, 27 Feb 2017 21:00:54 +0100 Andy Wingo wrote: > Hi, > > On Thu 26 Jan 2017 09:39, Rchar writes: > > > I wanted to compare Guile scheme to other scheme implementations > > and I found > > this:https://ecraven.github.io/r7rs-benchmarks/benchmark.html > > > > Is Guile slow or fast, comparin

Re: GNU Guile 2.1.7 released (beta)

2017-02-27 Thread Thomas Morley
2017-02-26 18:57 GMT+01:00 Andy Wingo : > On Fri 24 Feb 2017 18:46, Arne Babenhauserheide writes: > >> The main strategical question I see for that is: Does anything make it >> harder to complete or improve the lilypond transition to Guile 2? >> >> Is there something which would need to be done be

Re: Using '-1' in a method named '*'

2017-02-27 Thread Alejandro Sanchez
> It could be that this is totally the wrong thing. Is (* x 2) -> (+ x x) > a valid transformation if you don't know the type of x? I don't know. Only if both addition and multiplication are defined for the type. In a group-like structure there is only one operation, while ring-like structures

Re: Stack traces

2017-02-27 Thread Andy Wingo
On Sat 18 Feb 2017 20:59, Amirouche writes: > How do you access variables in the REPL? ,locals Andy

Re: guile can't find a chinese named file

2017-02-27 Thread Jan Wedekind
Hi :) On Mon 27 Feb 2017 17:07, Eli Zaretskii writes: From: Andy Wingo Date: Sun, 26 Feb 2017 22:20:31 +0100 In Scheme, strings are sequences of characters. Encoding and decoding is only needed when going to and from bytes. Guile supports a finite number of encodings, so in general some en

Re: guile can't find a chinese named file

2017-02-27 Thread Eli Zaretskii
> Date: Mon, 27 Feb 2017 20:24:19 + (GMT) > From: Jan Wedekind > cc: Eli Zaretskii , guile-user@gnu.org > > The encoding support of the Ruby programming language [1] is IMHO pretty > good. It can handle different encodings for source code, input/output, > string variables, and regular expre

Re: Stack traces

2017-02-27 Thread Amirouche
Le 27/02/2017 à 21:23, Andy Wingo a écrit : On Sat 18 Feb 2017 20:59, Amirouche writes: How do you access variables in the REPL? ,locals Andy It doesn't display something that I can use.

Re: GNU Guile 2.1.7 released (beta)

2017-02-27 Thread Andy Wingo
On Mon 27 Feb 2017 20:32, Mike Gran writes: > A C++ STL container holds a set of STL-allocated (non-GC allocated) > structs. > > Those STL-allocated structs are also used as the payloads of > SCM foreign objects. > > STL destruction can free those objects. That free > should not allow SCM foreig

Re: Guile benchmark

2017-02-27 Thread Andy Wingo
Hi, On Thu 26 Jan 2017 09:39, Rchar writes: > I wanted to compare Guile scheme to other scheme implementations and I found > this:https://ecraven.github.io/r7rs-benchmarks/benchmark.html > > Is Guile slow or fast, comparing to others? Besides what Mike said, there are two kinds of Schemes in t

Re: debugging help: how to read/use a backtrace?

2017-02-27 Thread Andy Wingo
On Sat 21 Jan 2017 11:21, Jan Nieuwenhuizen writes: > I often find myself struggling to pinpoint an error location from > Guile's backtrace (see below) and I am starting to wonder if there is > something that I'm missing. I believe this is comprehensively cleaned up and improved in 2.1.x. (Guile

Re: C-c in guile

2017-02-27 Thread Andy Wingo
On Sat 21 Jan 2017 12:55, Alex Vong writes: > However, when running the external program "yes" in guile, > > $ guile -c '(system* "yes")' > > We cannot terminate the process by pressing C-c, Indeed I can reproduce this! > but we can suspend it by pressing C-z. I believe the C-z is handled by

Re: guile can't find a chinese named file

2017-02-27 Thread Andy Wingo
Hi :) On Mon 27 Feb 2017 17:07, Eli Zaretskii writes: >> From: Andy Wingo >> Date: Sun, 26 Feb 2017 22:20:31 +0100 >> >> In Scheme, strings are sequences of characters. Encoding and decoding >> is only needed when going to and from bytes. Guile supports a finite >> number of encodings, so in

Re: Using '-1' in a method named '*'

2017-02-27 Thread Andy Wingo
Hi, On Mon 27 Feb 2017 11:06, Alejandro Sanchez writes: > (define v (make #:x 1)) > > (* -1 v) ; Does not work > (* -2 v) ; Works fine I believe that Guile is doing strength reduction, transforming (* -1 v) to (- 0 v). It could be that this is totally the wrong thing. Is (* x 2) -> (+ x x)

Re: guile can't find a chinese named file

2017-02-27 Thread Eli Zaretskii
> From: Andy Wingo > Cc: Chris Vine , guile-user@gnu.org > Date: Sun, 26 Feb 2017 21:58:00 +0100 > > On Wed 15 Feb 2017 18:07, Eli Zaretskii writes: > > > the [Emacs] MS-Windows port pretends towards Emacs internals that file > > names are encoded in UTF-8, and shadows relevant system APIs tha

Re: guile can't find a chinese named file

2017-02-27 Thread Eli Zaretskii
> From: Andy Wingo > Date: Sun, 26 Feb 2017 22:20:31 +0100 > > In Scheme, strings are sequences of characters. Encoding and decoding > is only needed when going to and from bytes. Guile supports a finite > number of encodings, so in general some encoding/decoding will always be > needed. The s

Using '-1' in a method named '*'

2017-02-27 Thread Alejandro Sanchez
Hello, I have been trying to write a Guile library for 3D motion and I wrote a ‘vector3’ class and added the method ‘*’ for scaling a vector. This works fine for any scalar, except for ‘-1’. Here is a minimal code example, I am using Guile 2.0.14 on OS X 10.11.6: (use-modules (oop goops)) (de

Re: guile can't find a chinese named file

2017-02-27 Thread Andy Wingo
On Mon 27 Feb 2017 13:09, David Kastrup writes: > Andy Wingo writes: >> I seriously invite you to read the fine manual, specifically the first >> four subsections of this node: >> >> >> https://www.gnu.org/software/guile/docs/master/guile.html/Input-and-Output.html > > ...somewhat unlikely th

Re: guile can't find a chinese named file

2017-02-27 Thread David Kastrup
Andy Wingo writes: > On Mon 27 Feb 2017 10:10, David Kastrup writes: > >>> String ports have nothing to do with the discussion AFAIU. (Ports in >>> Guile are sequences of bytes also. They may be accessed using >>> textual interfaces as well. >> >> They can _only_ be accessed using textual inte

Re: guile can't find a chinese named file

2017-02-27 Thread Andy Wingo
Hello, On Mon 27 Feb 2017 10:10, David Kastrup writes: > Andy Wingo writes: > >> Legacy programs don't use codepoints >255. > > Sort of a moot point when Guile makes the decision to interpret external > files with codepoints >255. Not every data processed by a "legacy > program" originates fro

Re: guile can't find a chinese named file

2017-02-27 Thread David Kastrup
Andy Wingo writes: > Hello, > > I feel the need to correct points in this mail for the benefit of > guile-user. No reply is needed. > > On Wed 15 Feb 2017 00:58, David Kastrup writes: > >> Mike Gran writes: >> >>> But, for what it is worth, the Latin-1/UCS-32 design decision came >>> from a co