From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.lisp.guile.user Subject: Re: [EXT] Guile AWS Date: Mon, 12 Apr 2021 18:19:13 +0200 Message-ID: <87lf9nv5ku.fsf@elephly.net> References: <87r1jfv71p.fsf@elephly.net> 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="14155"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 27.2 Cc: Guile User To: "Thompson, David" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Apr 12 18:21:27 2021 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 1lVzJW-0003ah-LW for guile-user@m.gmane-mx.org; Mon, 12 Apr 2021 18:21:26 +0200 Original-Received: from localhost ([::1]:49740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVzJV-0006Ew-L8 for guile-user@m.gmane-mx.org; Mon, 12 Apr 2021 12:21:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVzHk-0005Zi-EG for guile-user@gnu.org; Mon, 12 Apr 2021 12:19:40 -0400 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVzHY-0001TZ-1E for guile-user@gnu.org; Mon, 12 Apr 2021 12:19:35 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1618244359; cv=none; d=zohomail.com; s=zohoarc; b=YTEKvytkxJTgHo/aAis6755+zi/JKFdYihCIdbTcGIuDzWRI93ETVpqx1JtXaTSI9zHDiK/jQi+bqrxJE7T6TEXppgDEHaYSI/K3YSwtdKie6ZqChELvkW+QZ00bMFm16PhbdxuJOMlC+j0OaqkX+YJ5xoEFDEOxZ3rE85NzjO0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618244359; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Bh7/ho/9baqbPuxHNApBQ7oLaQdGE5NyZKC9C7lEdvI=; b=mlW1RiyyJsVeyWv/2B+OO8wOSy62FCYvBlYTaL4CBE0WyOaePvHoTZCOsNG9IoNS+p5SfPGaRK+Mw1nqvZYki9dUK5hYF3OeloOI0/MdzGLYhH5a9mJsSs+AE3OPSdxYFojaiQuawhKi7XV2jBsZ4nB79vEjYy00+2kqXLqYzXs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1618244359; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Bh7/ho/9baqbPuxHNApBQ7oLaQdGE5NyZKC9C7lEdvI=; b=Ttehv97W2P61dyeATSn1HPfPcx74+LdLw8FYwkZWS2YsDJa2HReBDfigwihwfk0l ypgsNkpf2p+crcYQnGm6S04EKXgjBvlP7vBhs7yCgC3mu4F/XYkvw4a5gHf644WfKoh tbTZ7okvmP0O3bQN74fRGlwwwyhd8a3SSz7Rgrp8= Original-Received: from localhost (p54ad4dc1.dip0.t-ipconnect.de [84.173.77.193]) by mx.zohomail.com with SMTPS id 1618244356026395.4920488824888; Mon, 12 Apr 2021 09:19:16 -0700 (PDT) In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:17413 Archived-At: Thompson, David writes: > Years ago I took the same approach to generate a Guile API for > CloudFormation (an unreleased experiment) and was hoping that someone > would do the same for the entire AWS API. Your CloudFormation experiment was indeed the spark that ignited the fire. Guile AWS isn=E2=80=99t based on your code, but I learned a lot from looking at it a few years back, and it planted the seed to implement Guile AWS using the same approach. > As far as error handling goes, the official AWS SDK for NodeJS may be > something to study. It uses asyncs (which is a syntax over simple > promises) to allow for threading together multiple API requests > together and handle errors without too much headache. Most of the time > I use the Ruby SDK, less often the Python SDK (boto3), and in both you > just have to catch exceptions or inspect responses yourself, so if > that's what you have to do with the guile-aws for the time being then > you're still on par with several official SDKs. Those SDKs don't do > anything magical with the responses, either, so I consider being given > a big ol' deserialized json/xml response in the form of a compound > s-exp to be just fine. Ah, that=E2=80=99s good to know. Still, I think at the very least guile-aws ought to present a unified data structure =E2=80=94 either an alist, a JSON expression, or some SXML, but not a different structure dependent on whatever the API uses internally. --=20 Ricardo