A REPL plugin for Nvim

2017-03-13 Thread Alejandro Sanchez
Hello everybody, I have been doing some Scheme work in Guile over the past few week and I’m the one weirdo who doesn’t use Emacs, I use Nvim instead. The lack of proper REPL support was annoying me, I had to go through the ritual of opening a new terminal buffer and starting Guile with the corr

Re: How to make GNU Guile more successful

2017-03-05 Thread Alejandro Sanchez
Thank you for you responses, I will try to respond to them all in one email. > About Emacs + Geiser as the default development environment Emacs is a power tool. Giving someone Emacs to write a simple script is like handing someone a jackhammer to nail plywood together. OK, maybe I’m stretching

Re: How to make GNU Guile more successful

2017-03-04 Thread Alejandro Sanchez
If I may add my two cents as a Scheme layman: the question is not so much about making Guile more popular, but about making Scheme itself more popular. One big reason for Python’s popularity is something I haven’t seen mentioned in this thread so far: if you know pseudocode you basically know Py

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

2017-03-01 Thread Alejandro Sanchez
> On 01 Mar 2017, at 18:25, Andy Wingo wrote: > > 2.2.0 should come soon (a couple weeks hopefully), but I don't know > about 2.0.14. In the meantime if defining an implementation for "-" > works for you to handle negation, that's an OK workaround. > > Andy This may be a stupid question, but h

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

2017-02-28 Thread Alejandro Sanchez
> On 28 Feb 2017, at 10:19, Andy Wingo wrote: > > On Tue 28 Feb 2017 09:54, Andy Wingo writes: > >> In summary I think Guile's strength reduction is fine as it relies on >> type inference to prove when it is safe. This is "just" a bug, albeit >> an annoying one that we need to fix! > > Fixed

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

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