From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Quicklisp importer bug in tarball->extract->parse Date: Sat, 27 Apr 2019 09:15:35 +0200 Message-ID: <87o94rkjfs.fsf@ambrevar.xyz> References: <874l7fzdbp.fsf@ambrevar.xyz> <87mukwlil1.fsf@ambrevar.xyz> <3f6d08e3-56d4-bc34-944d-b1305b8af37b@riseup.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKHYo-00070x-Ge for guix-devel@gnu.org; Sat, 27 Apr 2019 03:15:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKHYi-0002Vq-W3 for guix-devel@gnu.org; Sat, 27 Apr 2019 03:15:46 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41851) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKHYi-0002SH-Pc for guix-devel@gnu.org; Sat, 27 Apr 2019 03:15:40 -0400 In-Reply-To: <3f6d08e3-56d4-bc34-944d-b1305b8af37b@riseup.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: swedebugia , guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable swedebugia writes: > Hi > > Thanks a lot for taking the time to look at this. > > On 2019-04-11 16:31, Pierre Neidhardt wrote: >> Hi! >>=20 >> I've had time to look at it a little. >>=20 >> If you want to debug, you can, for instance, put a breakpoint in >> guess-requirements-from-source,=20 > > How exactly do you do this? See =2D-8<---------------cut here---------------start------------->8--- ,help debug =2D-8<---------------cut here---------------end--------------->8--- from the Guile REPL. In particular =2D-8<---------------cut here---------------start------------->8--- ,break PROCEDURE =2D-8<---------------cut here---------------end--------------->8--- should do what you want. > (memoize > ... `memoize' takes a procedure as argument, not an arbitrary expression. For instance in the following =2D-8<---------------cut here---------------start------------->8--- (let ((mfoo (memoize foo))) (mfoo 17) (mfoo 17)) =2D-8<---------------cut here---------------end--------------->8--- `foo' will be called only once. You don't have to use `memoize' though, you can also store the value you want in a local variable and check if it's set or not. We can always refine the code later. >> It seems that you are on the right track, great job! > > Thanks for the encouragement! And thanks for giving this a shot! :) =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlzEAZcACgkQm9z0l6S7 zH9JyAgAqJ9TJiDk66v1Yk1o2gQfJHtO9QqcOmbbS+YYVG379XvefdVKBhHQfeLz KytNJvTpJmB8IXKzaDO6xhkuH8HbMPKkSvVvB/LCG+fGHbG8yuJ9eX62FKCZv/Op ZNfdOU2y7vqt9s7sAXGyzYCTzqL4oaWsNagBY43fgBcQYTk3JW4YEVgvF7JtXBjp 7cPsuRf0xZW+LsfqQdeBPBw6vVMf5uUo66zqebJFJ+51Rhz48q2JvonfDAJFu/7P cesP5xZ/bTNAvGY6t00BtqoYmtUy09d7nbuJlAQ3izAXxxrjGK2X2vqnG6wlzfpD MYeo92TJwG0fPVpt48HaD9lgPMqMBQ== =mvIO -----END PGP SIGNATURE----- --=-=-=--