Re: guile-json 0.2.0 released

2013-04-07 Thread Daniel Hartwig
On 7 April 2013 19:40, Panicz Maciej Godek wrote: > > 2013/4/5 Taylan Ulrich B. > > >> >> > All in all, you don't write vector->list and list->vector to get a >> > nice printable representation of vectors -- there was an issue, and it >> > has been solved. There was never an issue. Vectors have

Re: guile-json 0.2.0 released

2013-04-07 Thread Daniel Hartwig
On 8 April 2013 04:38, Taylan Ulrich B. wrote: > 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

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

Re: guile-json 0.2.0 released

2013-04-07 Thread Panicz Maciej Godek
2013/4/5 Taylan Ulrich B. > > All in all, you don't write vector->list and list->vector to get a > > nice printable representation of vectors -- there was an issue, and it > > has been solved. Racket has its printable representation of hashes, > > which is much nicer than the one of guile (alth

Re: guile-json 0.2.0 released

2013-04-05 Thread Noah Lavine
Hello, On Fri, Apr 5, 2013 at 5:35 AM, Daniel Hartwig wrote: > > On 05/04/2013 10:47 AM, "Noah Lavine" wrote: > > Although hash tables in general do include arbitrary procedures, in > Guile's implementation there are only three to choose from, so it should be > possible to represent them in syn

Re: guile-json 0.2.0 released

2013-04-05 Thread Panicz Maciej Godek
2013/4/5 Daniel Hartwig > On 4 April 2013 20:06, Panicz Maciej Godek wrote: > > 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 programmer it's better to have a

Re: guile-json 0.2.0 released

2013-04-05 Thread Daniel Hartwig
On 05/04/2013 10:47 AM, "Noah Lavine" wrote: > > Hello, > > I haven't thought about this whole email, but I disagree with this part of your response: > > On Thu, Apr 4, 2013 at 8:17 PM, Daniel Hartwig wrote: >> >> Hash tables are not just a set of (key, value) pairs, they also >> include the part

Re: guile-json 0.2.0 released

2013-04-05 Thread Panicz Maciej Godek
2013/4/5 Aleix Conchillo Flaqué > Thank you both for the comments. > > I must admit that I got kind of lost and I ended up not knowing if you > had any specific suggestions for guile-json. It is my very first guile > (scheme) package and I am pretty new to scheme. > > From what I understood, the

Re: guile-json 0.2.0 released

2013-04-04 Thread Noah Lavine
Hello, I haven't thought about this whole email, but I disagree with this part of your response: On Thu, Apr 4, 2013 at 8:17 PM, Daniel Hartwig wrote: > Hash tables are not just a set of (key, value) pairs, they also > include the particular hash and equality procedures that are used with > the

Re: guile-json 0.2.0 released

2013-04-04 Thread Daniel Hartwig
On 4 April 2013 20:06, Panicz Maciej Godek wrote: > 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 programmer it's better to have a choice. > Note that Scheme provide

Re: guile-json 0.2.0 released

2013-04-04 Thread Daniel Hartwig
On 5 April 2013 06:21, Taylan Ulrich B. wrote: > Panicz Maciej Godek writes: > >> Plainly, the size is kept in the internal representation of the hash >> table: >> >> typedef struct scm_t_hashtable { >> unsigned long n_items; /* number of items in table */ >> ... >> >> cf. >> http://git.savannah.

Re: guile-json 0.2.0 released

2013-04-04 Thread Aleix Conchillo Flaqué
Thank you both for the comments. I must admit that I got kind of lost and I ended up not knowing if you had any specific suggestions for guile-json. It is my very first guile (scheme) package and I am pretty new to scheme. >From what I understood, the main concerns were: 1. Hash tables might not

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-04 Thread Nala Ginrut
If not so, I've sent a patch to get hash-size and hash-items directly. Maybe it's still useful.

Re: guile-json 0.2.0 released

2013-04-04 Thread Panicz Maciej Godek
2013/4/4 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 -- > > JavaScrip

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 Panicz Maciej Godek
Hi! I'm glad that you've made a great piece of work to integrate guile with the rest of the world. I see you implemed it using guile's hash tables and lists, which seems sound. The problem lies within the way guile deals with hash tables. Actually, there are several problems that need to be address

guile-json 0.2.0 released

2013-04-02 Thread Aleix Conchillo Flaqué
Hi, I am pleased to announce guile-json 0.2.0. No big changes but it comes with better parser error information. Row and column number can now be obtained if a "json-invalid" exception is thrown, which is pretty convenient. http://savannah.nongnu.org/projects/guile-json Happy hacking! Aleix