Re: guile-json: simple alist to json
On Thu, Feb 18, 2016 at 2:21 PM, Jan Nieuwenhuizenwrote: > Hi Aleix, > > Attached are two patches to allow converting simple alists > to json, this removes the need for strings or hash-tables > > scheme@(json)> (scm->json-string '((a . 1) (b . 2))) > $2 = "{\"a\" : 1,\"b\" : 2}" > > Hi Jan, thanks for the patch! I have tried with guile 2.0.11 and it's giving me th e error at the end. I had zero time to fix it, but I believe it's complaining because of this: scheme@(guile-user)> (symbol 'a) ERROR: In procedure string: ERROR: In procedure string: Wrong type (expecting character): a "a" is already a symbol. Best, Aleix scheme@(guile-user)> (use-modules (json)) scheme@(guile-user)> (scm->json-string '((a . 1) (b . 2))) ERROR: In procedure string: ERROR: In procedure string: Wrong type (expecting character): a Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt 4 (call-with-output-string #) In json/builder.scm: 173:4 3 (json-build ((a . 1) (b . 2)) # #f #f 0) 118:34 2 (json-alist? ((a . 1) (b . 2))) In ice-9/boot-9.scm: 1423:18 1 (symbol a) In unknown file: 0 (string a)
Re: What is needed in guildhall to include it in Guile?
Hi Arne! 2016-02-22 16:08 GMT+01:00 Arne Babenhauserheide: > Hi, > > In january there was a thread here about Guildhall with the notion > > > I encourage you to hack on Guildhall to make it more usable for your > > needs. > > I finished my PhD last month, so I have some freed-up time — and I would > like to use some of it to hack on Guildhall and make it ready for > inclusion in Guile. > > However there’s one stumbling block: I don’t see what’s actually missing > from it. So I want to be bold and request something: > > > Please tell me what’s missing in Guildhall, so I can implement it. > > I'm glad that you wrote about this topic. I admit that I haven't used neither Guildhall nor Guix, but from what I've seen in other languages, I think that while perhaps some packages depend on additional toolchains, I think this doesn't concern the pure Guile/Scheme modules, it is absolutely sane to have a "language-specific package manager". I think that perhaps it would need to focus on community -- I would like to have a place where I could keep my modules easily for me and other people to use -- similarly to github, but focused specifically on Guile/Scheme. I I think it would be awesome if there were some statistics concerning the popularity of modules, as well as an on-site possibility to report bugs and surprising behaviors. Another thing that I believe would be cool is if there was absolutely no need to install the packages -- that the invocation of (use-modules) would fetch them (with dependencies) from the remote server (and verified as needed). A controversial thing is whether to use the Guile module system or R6RS. I personally don't like the latter too much, but perhaps it is a question of integrating it nicely with Emacs (after all, it would be a big win for the whole Scheme community if the package manager could be ported to other implementations, and the packages could be shared -- as in the case of SNOW packages[1]) Best regards, Panicz [1] http://snow.iro.umontreal.ca/
Re: What is needed in guildhall to include it in Guile?
Arne Babenhauserheide writes: > Please tell me what’s missing in Guildhall, so I can implement it. I would like every interesting Guile package as it is right now either in Guildhall or packaged with Guile core. Most notably, I would very much like to have something like the functionality of (os process) / (run-with-pipe) in Guile itself. Also, I think that Guix has some nice functions that would be great to have split-off into a Guildhall package, e.g. substitute* and others in guix/build/utils.scm. Greetings, Jan -- Jan Nieuwenhuizen| GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl
Re: What is needed in guildhall to include it in Guile?
Arne Babenhauserheide writes: > Hi, > > In january there was a thread here about Guildhall with the notion > >> I encourage you to hack on Guildhall to make it more usable for your >> needs. > > I finished my PhD last month, so I have some freed-up time — and I would > like to use some of it to hack on Guildhall and make it ready for > inclusion in Guile. > > However there’s one stumbling block: I don’t see what’s actually missing > from it. So I want to be bold and request something: > > > Please tell me what’s missing in Guildhall, so I can implement it. > > > Best wishes, > Arne > > [1]: https://lists.gnu.org/archive/html/guile-devel/2016-01/msg00010.html > > PS: I write now, because I just stumbled over a situation again, where > I’d have loved to just have guildhall at hand by default. I wanted > to test uptop.scm which needs guile-ssh, so I just wanted to quickly > get guile-ssh and run the script. Yes, guix can do that. But the > guix daemons weren’t running. I've never run it so it's hard for me to know. The "obvious" idea might be to get a Guix package of Guildhall so more of us might play with it? ;)
Re: What is needed in guildhall to include it in Guile?
IMO, at least we need a convenient way to add new packages. Of course we may send mail to an official maintainer, but it's not good experience because folks do the work part time, most of the time they are busy. I may anticipate the packages amount for Guile would be increasing if we done it properly. And I believe we need a critical feature for "guild list-packages" to show the actual module path, say, if I installed "rbtree" module, I don't know how should I load it. I've tried (use-modules (rbtree)) and (use-modules (rbtree rbtree)) but failed. It's better to show it's module path in the information. It's unreasonable to force users to download and read the src. I think this feature could be put either "list-packages" or "show" command. Best regards. On Mon, 2016-02-22 at 16:08 +0100, Arne Babenhauserheide wrote: > Hi, > > In january there was a thread here about Guildhall with the notion > > > I encourage you to hack on Guildhall to make it more usable for your > > needs. > > I finished my PhD last month, so I have some freed-up time — and I would > like to use some of it to hack on Guildhall and make it ready for > inclusion in Guile. > > However there’s one stumbling block: I don’t see what’s actually missing > from it. So I want to be bold and request something: > > > Please tell me what’s missing in Guildhall, so I can implement it. > > > Best wishes, > Arne > > [1]: https://lists.gnu.org/archive/html/guile-devel/2016-01/msg00010.html > > PS: I write now, because I just stumbled over a situation again, where > I’d have loved to just have guildhall at hand by default. I wanted > to test uptop.scm which needs guile-ssh, so I just wanted to quickly > get guile-ssh and run the script. Yes, guix can do that. But the > guix daemons weren’t running. >
What is needed in guildhall to include it in Guile?
Hi, In january there was a thread here about Guildhall with the notion > I encourage you to hack on Guildhall to make it more usable for your > needs. I finished my PhD last month, so I have some freed-up time — and I would like to use some of it to hack on Guildhall and make it ready for inclusion in Guile. However there’s one stumbling block: I don’t see what’s actually missing from it. So I want to be bold and request something: Please tell me what’s missing in Guildhall, so I can implement it. Best wishes, Arne [1]: https://lists.gnu.org/archive/html/guile-devel/2016-01/msg00010.html PS: I write now, because I just stumbled over a situation again, where I’d have loved to just have guildhall at hand by default. I wanted to test uptop.scm which needs guile-ssh, so I just wanted to quickly get guile-ssh and run the script. Yes, guix can do that. But the guix daemons weren’t running.