From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0CD4ER2NcGQWRgEASxT56A (envelope-from ) for ; Fri, 26 May 2023 12:42:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oCPqEB2NcGR2JAAAG6o9tA (envelope-from ) for ; Fri, 26 May 2023 12:42:37 +0200 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 0EA912AA6C for ; Fri, 26 May 2023 12:42:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2UtZ-0002It-62; Fri, 26 May 2023 06:42:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2UtW-0002IC-Hm for guix-devel@gnu.org; Fri, 26 May 2023 06:42:02 -0400 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2UtR-00013k-1z for guix-devel@gnu.org; Fri, 26 May 2023 06:42:01 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4QSM1F4w9bzDqMJ; Fri, 26 May 2023 10:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1685097713; bh=wj7c9HxfmsZEnydxMwsbUAkPGI5zjt4zG553jliJl7k=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Fnwe1JNg/LyNydx9w50S3GGE9iZxX/BD8G23VSpK0K9+vzmysK/3QyBd5VbtgUFpS WFQRIO8G0u2Ydl7I9ioPiZMnbGPYEUfBTVL2TIGBwIJ4sr9fmmhpulbLc+Ltsajl8h 7eplvZHC5fspuj1sLqOYSovSGJgcpVvmI2O0sIkU= X-Riseup-User-ID: 09E2368AFB1636F4D8FD6CA1DE7F6DB65C4E1585B9CD74EF4820BC966D53DC98 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4QSM1D6sMmzFpqb; Fri, 26 May 2023 10:41:52 +0000 (UTC) References: <08ad170f511730aea1d9fcc0e5f5c9c6@dismail.de> <87edn335cs.fsf@disroot.org> From: Csepp To: "(" Cc: jgart , guix-devel@gnu.org Subject: Re: How Can We Make G-Expressions Even More Interactive At The REPL? Date: Fri, 26 May 2023 12:39:43 +0200 In-reply-to: <87edn335cs.fsf@disroot.org> Message-ID: <87sfbjbcii.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685097757; a=rsa-sha256; cv=none; b=oQsQUl+V75M3ckUcnE7V54c4GT9+XyHo+NP1BXvDwvzbTPEMiejcJfa6YAxiIZc9OXaiMs jGRInK9z0rl6Ki6+nSSZ7sfgFrq+kYiJkfyiUz5s2En29ZBeDxoSDjAHyafrVMc21sY4fi M2EC/NGNoHxq2xnmIIYWP6yIjAFGxNEEVFE7JV9cwSCO4jhnrXibn+rowArPvEcDvHqHpq lmIZ6pCPvZqK52ii6JRNOEfiFz90CfH6we55Yo96wshp4C2VdsWgyOB8ySSy27GKWR6cOn 8N7GW2/AgG/xQFyIU9yCQsU51R/xmG3JuRVrgBm8X6IhfgQz5OAi9z9YyPQy9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Fnwe1JNg; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685097757; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+mtH+lqKU9vZagKdgCdczDvHha3gGlcjW/N/bQLoRFU=; b=S41ggBVTGbl+Jh2CwfuAqhMhICmR3iUwOJ6B5goRnK5IBsCd6a4GWfC2CmpN+bE3afC/uj d17lZxsf66YgP6maFZI7f+S3BMD2Rq3dbCQxwDNGGZhIyP55VphTeu40gOv77OyX2Z0i1o kpQyd3M40jvEaUKiaCekc2mdK41CAmPpektFOBzaBialhc/YyZ4K8BEXzoPm90t3bY3mq4 nuG28Lvj4vfK1gWfmID1q4HRSuDMujvf8lfGe2REV6wlgl3cEFmSSLf405mrrR1BdzH/1v gdKgO8RO20TMx9lhqtOWxcVqzC80sKPdhQJUGtBqQW/ZMpdLFKkJ1TU2j7iNBg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=Fnwe1JNg; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.99 X-Spam-Score: -3.99 X-Migadu-Queue-Id: 0EA912AA6C X-TUID: v6f8GZqNbzcA "(" writes: > "jgart" writes: >> Hi Guixers, >> >> How can we make g-expressions even more interactive at the REPL? >> >> For example, thing to explore is what can we print instead of '(*approximate*)? > > It's physically impossible to print anything other than a placeholder > there without actually building any derivations, which is the thing > GEXP->APPROXIMATE-SEXP is supposed to /avoid/ :) > >> WDYT if we had even more convenience meta-commands for interactive development with g-expressions? > > You'd need to give some concrete examples; what can't you do now that > you think could be a good REPL command? > > -- ( I would very much welcome if the REPL commands (like ,build) were actual first class functions, because right now it's quite a hassle to write Guile scripts that depend on the output of a build. Motivation: I'm trying to hack together a helper script that detects generated OPAM dependency lists.