From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iKRnEbMb42DbnwAAgWs5BA (envelope-from ) for ; Mon, 05 Jul 2021 16:48:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iDcpDbMb42DhXgAAB5/wlQ (envelope-from ) for ; Mon, 05 Jul 2021 14:48:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EC225103F7 for ; Mon, 5 Jul 2021 16:48:18 +0200 (CEST) Received: from localhost ([::1]:45066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0PtR-0005Bu-VY for larch@yhetil.org; Mon, 05 Jul 2021 10:48:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0PfQ-0004Zc-Ir for guix-devel@gnu.org; Mon, 05 Jul 2021 10:33:48 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:34722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0PfL-0007PU-UT for guix-devel@gnu.org; Mon, 05 Jul 2021 10:33:47 -0400 Received: by mail-pg1-x52f.google.com with SMTP id 62so10374243pgf.1 for ; Mon, 05 Jul 2021 07:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vieiraproenca-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=WLmLGqgAIjwkoiY7i0JWUvJMxIYfSm1vxO3CbCIBSFQ=; b=sT6WFLslD54pr2Kqwl1YzkhWlsamHBbX2ZpeJdcfYKqEpAbzs+5PEPGZLD3EsZkBkg wKj5HiuEkGABnSMuFKEB4HSN1QiGsC3IUBfDPJzQE/OSeihP1ku8RCFiKBe4AoYg7KSf 2WVD9BnFp59cwswzovipcg+K4vn95s1UiB7MajbPqPaWREqDO1wZoaUROItonhDZAnwy FI6NILX5pNiAq5qpW3XYaXq+QByyLfjkEYe5IEjuvLG7xQPZlZT/n4euSBqGKLBHT4N7 j8cAOeDxyCTdZh/dKDq4yWu6sxodDWQarwfytS/gPL8KVuW+awJiT7pQudnGA1DejeLI 7WMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=WLmLGqgAIjwkoiY7i0JWUvJMxIYfSm1vxO3CbCIBSFQ=; b=FPrdVQaXz6tI6uxnr3/o8y5H1GlhLcU4eBK5nLX3o1x/Embvo+9pwwUoTw0K4Ux4vo mYgT8PLAsiKv1stGeduMuSd1Tto6B5lrLnTn37EfdPFrZnYPzVBRVQlozxfIpTaxGX9x R5FTbRuQHaIdpGka+g2CUabUaELVVnc2HGEXyfx2aEsLv1GWzDWYrb6IwFnjy7b2qE4O 1DS82anE9PPmAJt9I9HaJ6anrBWk9R+E/uV5eWcL77wpYxlRJzlgq3JaYX5+q5//9sHa RTyANOcrKq8ippoCqLIFW1Ikhpt1oUSE2rv8MQSokpC2xv3EFKyht5yUaIw9X/kg7dTr Nr0Q== X-Gm-Message-State: AOAM533/P5FpuSeUGV8JZjpmr9pPqzucLVgJSuh+XhTGANtzWOgbJKEA YW3JWQzw0p07kJAON/Lf1xEO0js3iyPvoKPY X-Google-Smtp-Source: ABdhPJwUiIVAqfulql9og3eFK8OBStQzHpU5ENih/jY5QUq7VWCgsFIoiKLSnh5P4qlWQhIRCmfNZQ== X-Received: by 2002:a65:6443:: with SMTP id s3mr4206386pgv.72.1625495620721; Mon, 05 Jul 2021 07:33:40 -0700 (PDT) Received: from archlinux ([177.62.236.234]) by smtp.gmail.com with ESMTPSA id j2sm13612890pfb.53.2021.07.05.07.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 07:33:40 -0700 (PDT) From: =?utf-8?Q?Nathan_Benedetto_Proen=C3=A7a?= To: guix-devel@gnu.org Subject: Exploiting hashes for Scheme refactoring Date: Mon, 05 Jul 2021 11:33:36 -0300 Message-ID: <87lf6komnz.fsf@archlinux.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: neutral client-ip=2607:f8b0:4864:20::52f; envelope-from=nathan@vieiraproenca.com; helo=mail-pg1-x52f.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 05 Jul 2021 10:47:21 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625496499; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WLmLGqgAIjwkoiY7i0JWUvJMxIYfSm1vxO3CbCIBSFQ=; b=Kh2hrW0lMWgtGqv/iU6x9H2YjfzioHrc68wMqeO36G0g41hBQtCcm9cVeQzemHwqMA4mtm Cxz233xCfTR1ZzgH/RXJCEkqO+2PA0I5cVDtoJ89TSRkV+Y5DFwevwB29ST71XOWMIU/Kh F5fu5eqtC1s7Cyhpikk7SKr8IYPlqMW2E/VGuPKDSUhjmfoKjaPD8RWQ7b9P2w2JaOjekA FQD57yOMzCefKS5ewHBn9CBdrl3I60SSrsOiZ3b86UOlHO5hUVSLUVJthQoUhLLNu0kTkT vQ3s7v1ZET9285Duo8ZD3F6b0zl1DQByL+iN0jITiq0IrwMIL95fDZeioM7i7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625496499; a=rsa-sha256; cv=none; b=X6OPneq1s3AJNkBcXdyXY5di5X5Wc3/JQijDIq9xndpjDWPFN5bxHYC0uZ4bbVRvS0+NA7 Jo7Xi/uY9fzRzjpgeDbtto4vvW43IZcNTjF8ppYixaBiy3Z2xHbvMc/bX2yG2Lpt1MxGdW fVMV/bpbihVh5ju7/dzGTobF33YEHyCgGz7FYHmoicnoIGD0oXTsswbpPT0QJVzZEz8nuN gmy6Z9rvbXrojjU5kUBaHDpIrm5otsTvdSBsmmgUiSm1rGntCRNVGXvE9Ox86M9248zT2P LX3DdQyVw2SOJQJvlgz+CdRHsCQgCR/ObKjpdVjjP+5mw1aIk7TXoFX8KrlHDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=vieiraproenca-com.20150623.gappssmtp.com header.s=20150623 header.b=sT6WFLsl; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=vieiraproenca-com.20150623.gappssmtp.com header.s=20150623 header.b=sT6WFLsl; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: EC225103F7 X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3Zgh6ogy75fY Good morning! As a new Guix developer, I want to learn about workflows which help me catch bugs in Scheme development. Is it a good idea to exploit Guix hashing infrastructure to ensure that a Scheme refactoring did not change the packages produced? Has some developer already done that? Are there another tools and techniques I should be aware of? As I said in the other email I sent to the mailing list, I am interested in upgrading the texlive package in tex.scm. Depending on what you teach me there, a solution could involve changing more than 100+ places where the origin of packages is specified. Without proper tooling, this can demand a whole lot of developer time --- be it my time, or other contributors time. Would this imply more than 100+ patches submitted and reviewed, and perhaps in an alternative branch which core developers would have to maintain? Then I noticed I could use the hashes for the packages produced as a test of whether my refactor was satisfactory or not. For example, let's say I want to change the signature of a function. I could simply change the function, and Emacs my way into changing the call sites (Occur-mode, search-replace, or perhaps a some custom elisp). While developing, I could simply test if the hash of a single package was the same as its previous hash. When I got confident with my change, I could then log to a machine stronger than my notebook and test if *every* package I touched has the same hash as the previous one. This log/procedure could even be sent together with a possible patch, so to help reviewers trust my patch. Is this a good use of hashes? Are there similar techniques already in place? Thanks in advance, Nathan