From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.user Subject: Re: is there a way to serialize hash tables? Date: Wed, 30 Dec 2020 09:48:15 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28207"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 Cc: guile-user To: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Dec 30 09:49:07 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuXAJ-0007Ep-BA for guile-user@m.gmane-mx.org; Wed, 30 Dec 2020 09:49:07 +0100 Original-Received: from localhost ([::1]:50120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kuXAI-0003ZE-Db for guile-user@m.gmane-mx.org; Wed, 30 Dec 2020 03:49:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuX9w-0003Z1-QL for guile-user@gnu.org; Wed, 30 Dec 2020 03:48:45 -0500 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:33379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuX9t-0006hH-Dd for guile-user@gnu.org; Wed, 30 Dec 2020 03:48:44 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 452889FA; Wed, 30 Dec 2020 03:48:37 -0500 (EST) Original-Received: from imap1 ([10.202.2.51]) by compute6.internal (MEProxy); Wed, 30 Dec 2020 03:48:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.se; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type:content-transfer-encoding; s=fm2; bh=ExPHd HHeIHp0RxEejlomUaIoWfe9UIoht6ZVEi2HW2E=; b=Tw0HF9+TAmcscoKvERzSK YLLtfKNjiOzrFIYAKx7n4p6hTK5CZ3vp6AVtn6+FTL28zh6IV0sQ/BP4uZX2s5b2 52EJTE/gU9bUN7aaRApc/tzb84hJvW4DOtGOmxuSlIxBx9VSmbZjvFeAcNIej1qj uP2UaQUcr+Hoz518F2EaUW7BznBMD1/CVOppY8sbY/6yjVFI4XNT4amwr9PFIcwY rhCCjRqEvpTslciDYalQCyIV9WLRriYTUu5Bog7t9e1uJ02Z8d3ghg0HQVgQMTIw y6VW+oqMExYTraCaCt7sy+2Oy6olp2TBy+Knh2Djbx29I3wUr96tu56Tz3FOFdF7 A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=ExPHdHHeIHp0RxEejlomUaIoWfe9UIoht6ZVEi2HW 2E=; b=Hy2bgJUZbIM2qi3CZKxhqN63qt4IY32l76GAbMaGIpffZIq0f2f7lht0S f0wPJV/gxDHVqu1LgX0UJEMyVLCJJ0ywtkR/itDhy9ojEc6rMMXMOkxuH6bHW0Kg 5xjcc8zUCgCLfGS30wHx1T3s7SL00qNdZs6outTTZcPKzxVZzHcz9jL8b806pGjF DIB7/eyC3fWA6pbwmwyDMFfX4Z8HrmmKoz/sD5UtkWL4D9oYkjkZf/z3dx8/vQBc zVDCZkr/vbKlhix30vhAtPCRL54w9Cue0TUQgt6/EYa4O7Lg/cm4ilBmFJC28hrl sdENefRvSqWBIASDk+8Ihc6pkHWzg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddvvddguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepnfhi nhhushgpuehjnphrnhhsthgrmhcuoehlihhnuhhsrdhinhhtvghrnhgvthesfhgrshhtmh grihhlrdhsvgeqnecuggftrfgrthhtvghrnhepveevieekuefhleegteelfeekledtgfef ffejleeiheefhfdthfegteegkeetuefgnecuffhomhgrihhnpeifihhkihhpvgguihgrrd horhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep lhhinhhushdrihhnthgvrhhnvghtsehfrghsthhmrghilhdrshgv X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id C5CC4C200A5; Wed, 30 Dec 2020 03:48:36 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=64.147.123.24; envelope-from=linus.internet@fastmail.se; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17136 Archived-At: I have added it to my phone's dictionary, but for some reason it still a= utocorrects to Alex. Sorry about that. I know very well that it is Aleix= . I remember I had the same problem last time. --=20 Linus Bj=C3=B6rnstam On Wed, 30 Dec 2020, at 00:18, Aleix Conchillo Flaqu=C3=A9 wrote: > You almost got it right Linus, it's Aleix. :-) >=20 > For the curious, it sounds something like "Alaish" or here in the US=20= > most people can pronounce it as "Alesh". But more accurately [ale=CA=83= ]=20 > (https://en.m.wikipedia.org/wiki/Help:IPA/Catalan) >=20 > Anyways, happy hacking and happy New Year to everyone! >=20 > Aleix >=20 > On Sat, Dec 26, 2020, 4:10 AM Linus Bj=C3=B6rnstam=20 > wrote: > > Alex and I got the speed of guile-json up to about 19megs a second u= nder guile 3 on a 4 year old intel i5, which may or may not be adequate = for your needs, Tim. > >=20 > > I have some code I wrote during that spurt that preforms slightly be= tter than guile-json in general (about 3-4% on my machine. Alex could no= t repeat those numbers) an on files with many large strings in particula= r (10% in extreme cases). If that is interesting I could put it online = somewhere. The functioning code is a derivate work of guile-json, so the= GPL applies. > >=20 > > --=20 > > Linus Bj=C3=B6rnstam > >=20 > > On Sat, 26 Dec 2020, at 05:28, John Cowan wrote: > > > I think that's the best bet, although JSON is also a possibility. = I'm > > > working on a more general text-serialization solution, but it will= be quite > > > some time before I have a chance to work on it. > > >=20 > > > On Fri, Dec 25, 2020 at 10:28 PM Tim Meehan w= rote: > > >=20 > > > > I have a big-ish blob of key-value pairs that I would like to no= t have to > > > > store as text and then convert to a hashtable when I am filterin= g my data. > > > > > > > > Right now I am saving it as an alist and then converting back to= a > > > > hashtable using "alist->hashtable" from SRFI 69. I was just hopi= ng that > > > > there was something more clever ... perhaps it is plenty clever = enough. > > > > > > > > >