From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.devel Subject: cannot compile: srfi-10 define-reader-ctor 'hash '#,( Date: Fri, 04 Jul 2014 14:30:47 +0200 Organization: AvatarAcademy.nl Message-ID: <87y4w9jog8.fsf@drakenvlieg.flower> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1404477086 9253 80.91.229.3 (4 Jul 2014 12:31:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2014 12:31:26 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jul 04 14:31:20 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X32e6-0007BL-Pw for guile-devel@m.gmane.org; Fri, 04 Jul 2014 14:31:18 +0200 Original-Received: from localhost ([::1]:36010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X32e6-0007Px-Di for guile-devel@m.gmane.org; Fri, 04 Jul 2014 08:31:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X32dz-0007NW-GO for guile-devel@gnu.org; Fri, 04 Jul 2014 08:31:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X32du-0000g1-LT for guile-devel@gnu.org; Fri, 04 Jul 2014 08:31:11 -0400 Original-Received: from lb3-smtp-cloud6.xs4all.net ([194.109.24.31]:60564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X32du-0000fx-Fy for guile-devel@gnu.org; Fri, 04 Jul 2014 08:31:06 -0400 Original-Received: from drakenvlieg.flower.peder.onsbrabantnet.nl ([62.140.132.51]) by smtp-cloud6.xs4all.net with ESMTP id NCWp1o00X16hWBA01CWw6h; Fri, 04 Jul 2014 14:31:05 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Url: http://AvatarAcademy.nl X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 194.109.24.31 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17288 Archived-At: --=-=-= Content-Type: text/plain Hi, The attached hash.scm works fine with guile-1.8. With Ubuntu 14.04's guile-2.0.9 and latest GIT master 5ded849 Convert slot allocation to use intsets I do get output but compilation fails: $ guile ./hash.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/janneke/vc/verum/development/language/asd/./hash.scm ;;; WARNING: compilation of /home/janneke/vc/verum/development/language/asd/./hash.scm failed: ;;; ERROR: unknown hash-comma tag hash cat Is this a bug in the documentation, in guile, or ...? I need to produce a json file from a guile tree that currently looks like ((event0 (state (var . value) ...) (trace (loc0 loc1 ...))) ... ) contents of the tree are symbols and numbers. I hacked guile-json to grok and produce symbols too. So far so good for lists. However, json wants hash maps. SRFI-10 hash looked like a nice ascii data exchange format for hash maps. (I would like to have pretty-print use that notation too, as an alternative for the opaque # I get a suspicious feeling that I'm doing something very wrong if no one else is using this, please enlighten me? Greetings, Jan --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=hash.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChzcmZpIHNyZmktMTApKQoKKGRlZmluZS1yZWFkZXItY3RvciAnaGFzaAog ICAgICAgKGxhbWJkYSBlbGVtcwogICAgICAgICAobGV0ICgodGFibGUgKG1ha2UtaGFzaC10YWJs ZSkpKQogICAgICAgICAgIChmb3ItZWFjaCAobGFtYmRhIChlbGVtKQogICAgICAgICAgICAgICAg ICAgICAgIChhcHBseSBoYXNoLXNldCEgdGFibGUgZWxlbSkpCiAgICAgICAgICAgICAgICAgICAg IGVsZW1zKQogICAgICAgICAgIHRhYmxlKSkpCgooZGVmaW5lIChhbmltYWwtPmZhbWlseSBhbmlt YWwpCiAgKGhhc2gtcmVmICcjLChoYXNoICgidGlnZXIiICJjYXQiKQogICAgICAgICAgICAgICAg ICAgICAoImxpb24iICAiY2F0IikKICAgICAgICAgICAgICAgICAgICAgKCJ3b2xmIiAgImRvZyIp KQogICAgICAgICAgICBhbmltYWwpKQoKKGRpc3BsYXkgKGFuaW1hbC0+ZmFtaWx5ICJsaW9uIikp CihuZXdsaW5lKQo= --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20 --=-=-=--