From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dimitris Papavasiliou Newsgroups: gmane.lisp.guile.user Subject: Re: Need help embedding Guile Date: Wed, 22 Dec 2021 22:14:38 +0000 Message-ID: References: <2a789e248ef8d1922caec7af553cf26e9b360619.camel@telenet.be> <87ee65shtv.fsf@laura> Reply-To: Dimitris Papavasiliou 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="39958"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "guile-user@gnu.org" To: Maxime Devos Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Dec 22 23:15:03 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 1n09t1-000ABa-FO for guile-user@m.gmane-mx.org; Wed, 22 Dec 2021 23:15:03 +0100 Original-Received: from localhost ([::1]:39204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n09t0-0004RQ-Dd for guile-user@m.gmane-mx.org; Wed, 22 Dec 2021 17:15:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n09sn-0004R0-NN for guile-user@gnu.org; Wed, 22 Dec 2021 17:14:49 -0500 Original-Received: from mail-0201.mail-europe.com ([51.77.79.158]:59063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n09sj-0004tj-Th for guile-user@gnu.org; Wed, 22 Dec 2021 17:14:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=protonmail2; t=1640211280; bh=pJ200DiibIXV/FQYkaME3uiunUpygJSSN2Z9E8+lAno=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=aqnTD2+e9Ofh9mK2nODJFRTXUoK4YM8//9ZSLibuJQZ9zDCduLfm/LwXLbwiQkIgQ Y73D4wop3mwkZNj5RRD2ortjqjlVrgfqtOVJUAQa6YDj7PvIY+DbPh5oDZCAJ8jzFM V8BPZDUc9tx5EgzTSINphUW6zsd0Br6uiaFOuY64Pg//PTs+8XsGrD69iGLtl0UNqt mXH3xHqmTWRxRkBT1YcYDOsIEbMHYoK8lUP7wRIXvvkmJiLuT1S+SyBqL8mlRnX1R3 rBTCvizRFZ6qnicCOGZNlwYIFB9PvmXmRSE4bRoBEebsiLDNBlftaLUL9miOWa67o6 FfjvmKi2e49Uw== In-Reply-To: Received-SPF: pass client-ip=51.77.79.158; envelope-from=dpapavas@protonmail.ch; helo=mail-0201.mail-europe.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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:17907 Archived-At: On Wednesday, December 22nd, 2021 at 5:29 PM, Maxime Devos wrote: > This seems clear to me (I think you mean that there's some guile code > that preprocesses the node graph to optimise it a little, before > evaluating things). I don't see what dead code elimination has to do > with the structure of your program though (it's a guile thing, not a > node graph thing?). Yes, you understand essentially correctly. Dead code elimination was just = the first example I could think of: If a certain cluster of nodes within the g= raph has no edges to nodes that output the results (say because the user has com= ented out the Scheme code that writes one of the output files) then the operation= s concerned need not be evaluated.