From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.user Subject: Re: is there a way to serialize hash tables? Date: Fri, 25 Dec 2020 23:28:10 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="499"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: Tim Meehan Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 26 05:29:02 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 1kt1CP-000AZb-Nw for guile-user@m.gmane-mx.org; Sat, 26 Dec 2020 05:29:01 +0100 Original-Received: from localhost ([::1]:52042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kt1CO-0008SU-NP for guile-user@m.gmane-mx.org; Fri, 25 Dec 2020 23:29:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt1Bq-0008SH-U5 for guile-user@gnu.org; Fri, 25 Dec 2020 23:28:28 -0500 Original-Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:32993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kt1Bm-0007oa-8C for guile-user@gnu.org; Fri, 25 Dec 2020 23:28:26 -0500 Original-Received: by mail-qk1-x730.google.com with SMTP id f26so5073866qka.0 for ; Fri, 25 Dec 2020 20:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cc+wXKUAp0pI8ZR46L2Dm7/cPMhAaz6IMkQW/aFRvJA=; b=PRt1JZO/ZxApDRQe+mfYNtSAukf5xW/e8zaGit7n/w3oojTfEUqwylIEJ1RVfRRZZH B+C2VREGG9U9ilgwNZ3GiLMF0SgQUzQiPGLHXoQbeNu7ueVRTAT3vxlF2UmmJ8WPRReM 8gRojZNCC8yledUnFt9wSSM/Jy+JcY8y1K3gQj6EJZTDj5swBLudrF1ivXBXzNmwHFs3 UGmuRow3bW44nWg0cP+hgKbj6a2vvQfXh/1hmfoB33cGHP5CAGzEZZP0krecxkuexjFe fvfKp25sp9zMS0R3QKBWAjYnOyNsRh1GTIieYIciXU9pa9kTpnXRCGpkbkHGjRbZmEtu XzjA== 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=cc+wXKUAp0pI8ZR46L2Dm7/cPMhAaz6IMkQW/aFRvJA=; b=BCSoXRQ6tqQbyUiZqnAxyies7nzodhCGp0nLIEWx8n/I0fz+T33e/uw0m4tahbZVz7 A1ft5p/LHvK+f9BiY7UOAQEQOmQnq8meH1MxuY17gvRmZYUrykUbOqdusRw8Lc+mh2Yy cDg825gPvlkO4yPGCwagcaOBip/IRBVUGq75UjGIKQaRTmRZI+QNQS6BKKVfbORcMJtu TGg1x00xK1B72HC9uDF0UNP9TGmleJUCYsWvuvpoW0UW+TxnQqi4v7dRlhmJT94BQ0yO tRzjT7ddz0meGBw4EE18uSa26s7KcdzFL9VXXh2pOMf1Sbs43BS1VzVopmevm6+O5cdd RN7g== X-Gm-Message-State: AOAM533cHG260Ln8LbamJeqtLBqINotAp7sGG9ADFveI/m+FL+On7WHy HxHvOEulfHPqJsbNXfzxYOh5Cr0qy5QvaFZjEgRyvA== X-Google-Smtp-Source: ABdhPJwF8Xhj66Rxt45//rOJusNVGPIl3AxPv91d7uWNzA4rVOAkO81BjwebrDEx/MDPtcXw7bIQZIx6NyzGG+t2oyc= X-Received: by 2002:a37:418d:: with SMTP id o135mr24908000qka.426.1608956901225; Fri, 25 Dec 2020 20:28:21 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=cowan@ccil.org; helo=mail-qk1-x730.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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:17112 Archived-At: 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 hoping that > there was something more clever ... perhaps it is plenty clever enough. >