From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "pelzflorian (Florian Pelz)" Newsgroups: gmane.lisp.guile.user Subject: Re: UUID3 implementation for Guile Date: Mon, 8 Jan 2018 16:47:45 +0100 Message-ID: <20180108154745.tqfquyiq5tkk5j6g@floriannotebook> References: <20180108145801.zljsglp4fhve2djn@floriannotebook> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5rdpqhmbeqotraur" X-Trace: blaine.gmane.org 1515427735 22243 195.159.176.226 (8 Jan 2018 16:08:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2018 16:08:55 +0000 (UTC) User-Agent: NeoMutt/20171208 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 08 17:08:51 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYZyh-0005Bi-B7 for guile-user@m.gmane.org; Mon, 08 Jan 2018 17:08:47 +0100 Original-Received: from localhost ([::1]:41795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYa0d-0007s4-77 for guile-user@m.gmane.org; Mon, 08 Jan 2018 11:10:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYZdf-0004Hv-KT for guile-user@gnu.org; Mon, 08 Jan 2018 10:47:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYZdc-0001my-94 for guile-user@gnu.org; Mon, 08 Jan 2018 10:47:03 -0500 Original-Received: from pelzflorian.de ([5.45.111.108]:38438 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eYZdb-0001lz-VJ for guile-user@gnu.org; Mon, 08 Jan 2018 10:47:00 -0500 Original-Received: from floriannotebook (eduroam-ipv4-4-0312.triple-a.uni-kl.de [131.246.177.56]) by mail.pelzflorian.de (Postfix) with ESMTPSA id A5F3C360007 for ; Mon, 8 Jan 2018 16:46:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1515426418; bh=aEBg0tjLdKvijjJltY9xkF7B0De87nJBlCDe7eFpTjM=; h=Date:From:To:Subject:References:In-Reply-To; b=Zn2dtkAsJu+fvbeydbHZMjK7YD2eEY/vq31WrRxUq86ESpyToa0kVVlHQx7/VhYle nW59PwDtBnbJp0pxD9N5fvNDtXmUnoOlyPBHVsX1jqaaB0QXgmj7czLyPfgn9gGCCa WdEmhy1GeAouPuc2G3IKAkZ9LxWYlt6Vj5Z+KmFQ= Content-Disposition: inline In-Reply-To: <20180108145801.zljsglp4fhve2djn@floriannotebook> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.45.111.108 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14418 Archived-At: --5rdpqhmbeqotraur Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 08, 2018 at 03:58:01PM +0100, pelzflorian (Florian Pelz) wrote: > P.S. If and only if you want to check it out, this is my current > implementation. It should probably be made to accept messages from > ports instead of taking a complete bytevector as input. >=20 I forgot to mention; (use-modules (uuid) (rnrs bytevectors)) (display (make-version-3-uuid (u8-list->bytevector ;; URL namespace UUID is 6ba7b811-9dad-11d1-80b4-00c04fd430c8 '(#x6b #xa7 #xb8 #x11 #x9d #xad #x11 #xd1 #x80 #xb4 #x00 #xc0 #x4f #xd4 #x30 #xc8)) "https://example.org")) (newline) yields the same result as Python=E2=80=99s import uuid uuid.uuid3(uuid.NAMESPACE_URL, 'https://example.org') --5rdpqhmbeqotraur Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwRjGsqAMqXB4uw3y3T6EbElHBVsFAlpTkqEACgkQ3T6EbElH BVt3qQ//Z5DP0Bm+00BZRHPwJKcUyLzeofARgdq/J+riVqy9RiogFeGeyO2jLyBx 7kud4brmtqhmDOCKpEyxniZbeHyfnhTXgAyX05ugdZoPsSjye1jptZgR+NjVUWTc uf8zl2PfuaKaap6/qlU0JyQR6wv3wLeaqkW8JUTFgkwQFXEygOBkJnfRrLb3G1Ug 9V/vWv07Ir+0mlCCFkri2/hMzLqiErLnfFzgFkvRfIQDaT47WKl+ILqW7zGRNGqj c2QVoUAICEJ0/czQVHSQDUT5R9OLN1UhQ8FuwrC6oBez6qjyIV1cJKbgmiy/dGFh 6Q4+WFd7NiV11Ge8B8Y3bqQd4VvG1GVbT27Hnm+WNzk1qs3GjNqgMIS/u9kO7Th1 xM4zznqIjKWRrB9OzajbyZqz6BQLsfUy5ugnwYHvPPMNFKVszsR5sIQURgL609N+ BEBfwAmp1V43ZkBNFcvew2jb02pP+PIWIJTeIn3hZ1bE/aEvCJyGw9IWq7C8EBMs PzQPqqlXCg9PXNEBAQRhcMQRK/1Rp+x6MNNdvQoM0L93fdlA4hv1fQW7Rx1aj9sv PjM+ydXTbSTUakDYHA/zNVHvBI90rMe8qk4nXIbZqaHEsZwmizuTm79XBg/wy4yt m2hnxNl46iE4auyEh7BAKWT7r4BnYxuG/ocyNCcj1ZIHimpX74o= =eemq -----END PGP SIGNATURE----- --5rdpqhmbeqotraur--