Re: Simulating rational number addition/subtraction

2016-02-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 24, 2016 at 06:32:12PM -0500, dsm...@roadrunner.com wrote: [representing rationals] > This https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-14.html might be > enlightening Yes. "Structure and Interpretation of Computer Programs

Re: Simulating rational number addition/subtraction

2016-02-24 Thread Jan Wedekind
On 24. Februar 2016 22:27:45 GMT+00:00, Lawrence Bottorff wrote: >With guile (and a few other Schemes/Lisps) you can directly add >fractions >or rational numbers: > >(+ 1/2 1/12) >=> 7/12 > >It's like magic, no? Anyway, I'm trying -- for educational purposes -- >to >reproduce this functionality.

zeromq bindings

2016-02-24 Thread dominic meiser
Hi, I'm a guile noob. To get my hands dirty I've made an attempt at setting up continuous integration testing for Andy Wingo's zeromq bindings. The code is in the following repo: https://github.com/d-meiser/guile-zeromq-3 and I wrote a few words about it here: http://d-meiser.github.io/2016/02/

Re: Simulating rational number addition/subtraction

2016-02-24 Thread dsmich
Lawrence Bottorff wrote: > With guile (and a few other Schemes/Lisps) you can directly add fractions > or rational numbers: > > (+ 1/2 1/12) > => 7/12 > > It's like magic, no? Anyway, I'm trying -- for educational purposes -- to > reproduce this functionality. But right out of the blocks

Simulating rational number addition/subtraction

2016-02-24 Thread Lawrence Bottorff
With guile (and a few other Schemes/Lisps) you can directly add fractions or rational numbers: (+ 1/2 1/12) => 7/12 It's like magic, no? Anyway, I'm trying -- for educational purposes -- to reproduce this functionality. But right out of the blocks I'm stuck trying to figure out how to handle inco

Re: guile-json 0.5.0 released

2016-02-24 Thread Jan Nieuwenhuizen
Christopher Allan Webber writes: > Aleix Conchillo Flaqué writes: > >> I am happy to announce a new minor guile-json release 0.5.0. This >> release allows converting simple alists to json. Thanks to Jan >> Nieuwenhuizen! Yay! > BTW, how do you differentiate between these two cases? > > {"a": [

Re: guile-json 0.5.0 released

2016-02-24 Thread Christopher Allan Webber
Aleix Conchillo Flaqué writes: > Hi, > > I am happy to announce a new minor guile-json release 0.5.0. This > release allows converting simple alists to json. Thanks to Jan > Nieuwenhuizen! > > For example: > > scheme@(json)> (scm->json-string '((a . 1) (b . 2))) > $2 = "{\"a\" : 1,\"b\" :

Re: [potluck dish] Compiler for the Joy language

2016-02-24 Thread Ludovic Courtès
Eric Bavier skribis: [...] >> > My interest in Joy came from a search to find a small language whose >> > minimal base could be implemented as an easily-audited assembly >> > interpreter, but which has higher-level language capabilities. >> >> Interesting. Was this in the context of destroy b