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?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.user Subject: Re: is there a way to serialize hash tables? Date: Wed, 30 Dec 2020 09:19:00 -0800 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="34806"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Dec 30 18:19:48 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 1kuf8W-0008vj-EN for guile-user@m.gmane-mx.org; Wed, 30 Dec 2020 18:19:48 +0100 Original-Received: from localhost ([::1]:37554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kuf8V-0003ly-7R for guile-user@m.gmane-mx.org; Wed, 30 Dec 2020 12:19:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuf81-0003lp-7C for guile-user@gnu.org; Wed, 30 Dec 2020 12:19:17 -0500 Original-Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:38784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kuf7z-0001mU-9J for guile-user@gnu.org; Wed, 30 Dec 2020 12:19:17 -0500 Original-Received: by mail-pj1-x102c.google.com with SMTP id j13so3993740pjz.3 for ; Wed, 30 Dec 2020 09:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1uce/3lCx3FpdIZhha18xLT2ejVJS4bHAa4mgrQVnfY=; b=NdaLGs4S/TXtwtU8Vj2soCl4j+LMkPL3SSxmzwmC5FGL5sTOK2JskPPffDKjwtyvDS OAV6w2moP8y055icSL3NSsqjM388/KJ7xXHaiygSCAZcBwO4ScMPCevAp79XNYqEPaLw sJgEXvbVujj1JgIn3zF33rb91QoY9a2OE3xeRB2O3bW+2aupzIFFnR8Vs3rTEjGPCFwl mcfDY4dO1RyGNIhDPNkpJu7SGoEF1NrjtwXb71esGxiZFENsibQqwypUho48kjep2hlg OJcHEeAFUcIux59rxvuEENgEm2g7LjqdmxKiugZdXrDUEOw4Zcj4KxxKH8NospDK9Gzw j7Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1uce/3lCx3FpdIZhha18xLT2ejVJS4bHAa4mgrQVnfY=; b=Z6DIrVJ4cwz/HtktnDW6wh/tc5iG38B8JPgC7BmMSJsZNFsR78He3rPV62yTSfS5Hl I4kaKzbG5zd4iGReKRwMjTBOyP6qhJCP/HWLHdkUVJgcbqdOZRiVovCj6bCrfNGiRTdU tlmsW7A7NoGWW+TbDm/35AnhKQEO0kXwmOarh12km3/jWAyZtDSN7f8mrtNG80k3lIsB SS5VP20hdgrBUhspCEbivf76UazLW9EddPMaFgxxed0TpJOeoEG5QWnwjmcgm/z+W/RG e7+pBvOz4ngGarWn/FxuyXMlrMUllpdE1P31fC6sWvQjDwRKCwyS191rtzMeAmg59QzD NR4A== X-Gm-Message-State: AOAM533/gfDl+BzfU9D008NcOx7Bo8YiOUambA8Z+SFZwBcFvySmpuud LSSYhqXM9tV0Ch62owjjBUWrcOKkBczclwaf2/Y= X-Google-Smtp-Source: ABdhPJygBAMpe2fTxcJxy1TglaA/lW3ExPdFLRrzmy3bddKI1aBUBMeQ5qhUJ9vpAx16tjfaXqYhccSS/dIxu3TX1b8= X-Received: by 2002:a17:90b:697:: with SMTP id m23mr9424238pjz.35.1609348753244; Wed, 30 Dec 2020 09:19:13 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=aconchillo@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:17139 Archived-At: No worries at all :-). I know you know. I just took the opportunity to explain how it is pronounced, I'm aware most people don't know. Best, Aleix On Wed, Dec 30, 2020, 12:48 AM Linus Bj=C3=B6rnstam wrote: > I have added it to my phone's dictionary, but for some reason it still > autocorrects to Alex. Sorry about that. I know very well that it is Aleix= . > > I remember I had the same problem last time. > > -- > 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. :-) > > > > For the curious, it sounds something like "Alaish" or here in the US > > most people can pronounce it as "Alesh". But more accurately [ale=CA=83= ] > > (https://en.m.wikipedia.org/wiki/Help:IPA/Catalan) > > > > Anyways, happy hacking and happy New Year to everyone! > > > > Aleix > > > > On Sat, Dec 26, 2020, 4:10 AM Linus Bj=C3=B6rnstam > > wrote: > > > Alex and I got the speed of guile-json up to about 19megs a second > under guile 3 on a 4 year old intel i5, which may or may not be adequate > for your needs, Tim. > > > > > > I have some code I wrote during that spurt that preforms slightly > better than guile-json in general (about 3-4% on my machine. Alex could n= ot > repeat those numbers) an on files with many large strings in particular > (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. > > > > > > -- > > > Linus Bj=C3=B6rnstam > > > > > > 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. > > > > > > > > On Fri, Dec 25, 2020 at 10:28 PM Tim Meehan > wrote: > > > > > > > > > I have a big-ish blob of key-value pairs that I would like to not > have to > > > > > store as text and then convert to a hashtable when I am filtering > 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 hopin= g > that > > > > > there was something more clever ... perhaps it is plenty clever > enough. > > > > > > > > > > > > >