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: Demanding Interoperability to Strengthen the Free (Libre) Web: Introducing DISFLUID Date: Mon, 2 Aug 2021 02:27:35 -0700 Message-ID: References: <5cbc279ee59779dcaca73de7745a9d0dbd5abfce.camel@planete-kraus.eu> <3e12fda58ea809ed16bb6706efcbd81614809480.camel@planete-kraus.eu> 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="19059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: Vivien Kraus Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Aug 02 11:28:01 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 1mAUEr-0004kn-CE for guile-user@m.gmane-mx.org; Mon, 02 Aug 2021 11:28:01 +0200 Original-Received: from localhost ([::1]:41190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAUEq-0002eJ-1t for guile-user@m.gmane-mx.org; Mon, 02 Aug 2021 05:28:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAUEf-0002e6-J9 for guile-user@gnu.org; Mon, 02 Aug 2021 05:27:49 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:37704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAUEd-0002P0-QW for guile-user@gnu.org; Mon, 02 Aug 2021 05:27:49 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id j3so3881486plx.4 for ; Mon, 02 Aug 2021 02:27:47 -0700 (PDT) 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=XN5rNd/Du7XHhOUzNtq7DIZgNzs26teWdyAV1a3ZCQE=; b=ajlf/BG8WgCXg80FHEx321WGnbfwQtIAF9wvUFdwvmFG0IcKg/0kkdXi+0GqVNOR1Q jAytVBSCXgYTkJGUaDz2vIcv89IIc7tDGC5HIpAGlluQC3XwSqF0pKjzgn5BYv9Zmlor z26N2unMOe+Og5Fx/5HSx87n8yegz84FghmsDq6SnS5U4Vpu1LRo3Ap58C1lucdTT1zL 1qD+ovmOL+CUO6tEtU9trixZatjRh4WMpGx8cVox9g2HB/ZG8DuJFFRKXKoo0nnB6nd/ GUoH0/jUS5emgp17HujNqNlx6JQ453S8h26OmgMyQ6HQgXbvv4M5XnM8y38/UHwuDY3r uCqQ== 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=XN5rNd/Du7XHhOUzNtq7DIZgNzs26teWdyAV1a3ZCQE=; b=gmHbAeXfXX0Rj8n/kTJIJFyrIKCLMIb0FSInckJBB0o9FcKmOUjE6eGRIDBksFVMg6 MO+a1SYQMam4Js/yqeWBUhXiEcYFhELXvD2m1tqHUaxWyb7gtjHQ0TdccRWYQgYR9osG SsZevej7VPs8TW4VX06F0d+zlXVXjk5ppanz8lVv0kpW1UobE/whB8CAPybKO/hS33Eq uPPE6Vf2De+BUOckNb7C/Y9KUfnfhijY1E0j1X1iEFhgX2VH50LHlIY10UIqnhhWBTqL cCTiBdSQhr5Cr8DC84cC2GBLdt/Dq8STwoXY8YZsgcgqWNAH/mN0oZFRQRU1pDc28BOB sIog== X-Gm-Message-State: AOAM533eKoABI+mbfN1HiVRlt2v666J8UmQHwodBs6RUDCARoz75vZwc 1px+2c9eASLxZkPPNpA9T4NHiaNb5MK+DDcZ1XzKn5/Z5zQUug== X-Google-Smtp-Source: ABdhPJzVya+7Tp5xhaZ4lvTcsZAe/w0DvBLyS4I8jFRfZawF20xRMPI5w+zQ5ICPKBqKzy98SzbMnQcQRRwv2COgi84= X-Received: by 2002:a62:7c4d:0:b029:3b0:b284:fd9c with SMTP id x74-20020a627c4d0000b02903b0b284fd9cmr13976831pfc.11.1627896466399; Mon, 02 Aug 2021 02:27:46 -0700 (PDT) In-Reply-To: <3e12fda58ea809ed16bb6706efcbd81614809480.camel@planete-kraus.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=aconchillo@gmail.com; helo=mail-pl1-x62d.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:17661 Archived-At: On Mon, Aug 2, 2021 at 1:20 AM Vivien Kraus wrote= : > Hello Aleix ! > > Hi! > Le dimanche 01 ao=C3=BBt 2021 =C3=A0 23:27 -0700, Aleix Conchillo Flaqu= =C3=A9 a > =C3=A9crit : > > Unfortunately guile-json doesn't follow srfi-180 api (it was created > > much sooner), but regarding alists' keys it can support both symbols > > and strings. So you can do (scm->json '((foo . "bar"))) or (scm->json > > '(("foo" . "bar"))) and both would work the same. > > Exactly! The problem is in the other way around, json->scm. By default, > I get stringly-keyed objects, so I add another pass to convert them to > symbolicly-keyed objects. > > Oh, duh! I see what you mean now. I'm on vacation and it seems my brain is too :-) (it might always be...). Maybe I could add a flag to json->scm to choose between the two. > By the way, a long time ago I also worked on guile-jwt ( > > https://github.com/aconchillo/guile-jwt) which is SUPER basic > > compared to what you've done. I was planning to add JWK support at > > some point. I'm wondering if we could take your code and merge it > > into guile-jwt so other projects can use it. What do you think? Right > > now I don't have much time but if you say it's fine I could work on > > it whenever I'm free. > > That would be awesome, but working with C bindings is a pain with > guile. If you inherit all the JWS and JWK code, I still need to keep > them around for things like hashing the URIs for the cache and resource > server and generating random numbers. The clever thing to do would be > to switch to guile-gcrypt first (so that I don=E2=80=99t have any more C)= and > then move the code to guile-jwt (we can still change the API if you > prefer another one, I don=E2=80=99t have a 1.0 release yet). > > Oh, more duh! I actually saw it was in C the other day and I thought it would be cool to use guile-jwt (well, what I would like guile-jwt to be). I completely forgot. Actually, now that you mention guile-gcrypt, I started working on a branch for guile-jwt to use guile-gcrypt a while back ( https://github.com/aconchillo/guile-jwt/tree/gcrypt-port). I was waiting for a guile-gcrypt release (I basically upgraded the base64 module https://notabug.org/cwebber/guile-gcrypt/commit/f8934ec94df5868ee8baf1fb0f8= ed0f24e7e91eb) to cut another guile-jwt release, but it hasn't happened yet (I just saw there's a new commit from Ludo...so maybe someday soon, Ludo? :-) ). > Since that code will most likely be run on web servers, have you > considered releasing it under the AGPL? > No, I have never thought about that... Aleix