Re: Guile-Emacs update

2013-07-22 Thread Taylan Ulrich B.
Great news! :) Noah Lavine writes: > I looked at the emacswiki page you linked. It links to a page called > GuileEmacsTodo, but that doesn't seem to be your current to-do list > (it was edited too long ago). The GSoC project has a better to-do list if I'm not mistaken. By the way I've had it i

Re: Guile-Emacs update

2013-07-31 Thread Taylan Ulrich B.
joa...@verona.se writes: > Paul Smith writes: > >> On Wed, 2013-07-31 at 20:54 +0200, joa...@verona.se wrote: >>> #make takes a loong time, much more than a normal emacs >>> ./autogen.sh && ./configure && make >> >> I'm not familiar with building Emacs, but doesn't its build system >> support par

Re: Define in let

2013-08-20 Thread Taylan Ulrich B.
Dmitry Bogatov writes: > It seems following is invalid: > >(let ((a 2)) > (define (foo x) (+ a x))) > > I prefer to reduce scope of variable as much as possible, so > I find this restriction unconvinent. Is is part of standard or technical > limitation? Is it any workaround? > > Pleas

Re: Syntax-rules generate symbol

2013-09-09 Thread Taylan Ulrich B.
Panicz Maciej Godek writes: > Actually, the whole point of hygienic (syntax-rules) macros > is that you don't need to worry about the names of variables. > > I often use a very similar python-like for loop macro in my projects: > > http://hg.gnu.org.ua/hgweb/slayer/file/554a63bd3c6c/guile-modules

Re: Syntax-rules generate symbol

2013-09-10 Thread Taylan Ulrich B.
Panicz Maciej Godek writes: > I assume that the main reason for using this is efficiency (rather > than simplicity), because allegedly guile's continuations are rather > inefficient. > > On one hand, it's good to know that (and would be even better > to be able to find it out by skimming section

Re: pretty-print for 1+

2013-09-18 Thread Taylan Ulrich B.
Chaos Eternal writes: > In guile-scsh, user would like the guile recognize -i as symbols > rather than complex numbers, is there any way? I doubt that there is a way. Arguably, one should use a different mechanism to represent command-line switches. Keyword symbols would probably be suitable f

Re: guile-json 0.2.0 released

2013-04-04 Thread Taylan Ulrich B.
Panicz Maciej Godek writes: > - firstly, guile's hash tables are maps, not dictionaries, so they are > insensitive to order. This behaviour is desired if we want to use them > to represent sets or maps; however, PHP arrays, and -- as I presume -- > JavaScript objects -- store the information abou

Re: guile-json 0.2.0 released

2013-04-04 Thread Taylan Ulrich B.
Panicz Maciej Godek writes: > Well, I see why the representation based on hash tables is adequate > for JSON. There are, however, situations, when one wants to have an > ordered set, and it's good to have choice. Clojure, for instance, > offers such choice, and from the perspective of a programme

Re: guile-json 0.2.0 released

2013-04-07 Thread Taylan Ulrich B.
Panicz Maciej Godek writes: > I agree. But Adam Smith would say that it's the market who says what's > right and what's wrong ;) I don't know Adam Smith, but I know that I disagree with this particular quote, at least at face value. I will continue to disregard adoption rates while considering a

Structured access to bytevector contents

2013-05-18 Thread Taylan Ulrich B.
Good day, I would like to announce a small project of mine, which I started out of boredom but figured could be useful in a couple of FFI situations. Just throwing it out there. https://github.com/TaylanUB/scheme-bytestructures/ You know how C's weak type-system basically just provides "views" o

Re: The equivalent of racket's break-thread in guile?

2013-05-31 Thread Taylan Ulrich B.
This is only partially relevant to the topic, but I'm very fond of the run-loop/operation-queue based solution to the problem of ad-hoc interleaved code execution in a certain thread, should the application also otherwise lend itself to that generic architecture. I have some spare time so let me e

Re: The equivalent of racket's break-thread in guile?

2013-05-31 Thread Taylan Ulrich B.
Thien-Thi Nguyen writes: > () taylanbayi...@gmail.com (Taylan Ulrich B.) > () Fri, 31 May 2013 13:20:00 +0200 > >I'm not aware of any Guile library that implements run-loops and >dispatch queues yet; perhaps I should try to implement one. > > See also module

Re: Exceptions that pass continuations

2013-07-19 Thread Taylan Ulrich B.
I agree with Thien on that all resource-management should be delegated to the garbage collector via smob types. However, I found this supply-demand pattern quite neat (could have other uses perhaps), was kind of bored, with a little free time on my hands, and enjoy an occasional exercise in delimi