From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: request: libguile to wrap getsid(2) Date: Mon, 28 Dec 2009 11:11:03 +0000 Message-ID: <878wcnfj5k.fsf@ossau.uklinux.net> References: <87ws09y3g3.fsf@ambire.localdomain> <87pr601t5c.fsf@ossau.uklinux.net> <877hs8xbwi.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261998687 2191 80.91.229.12 (28 Dec 2009 11:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Dec 2009 11:11:27 +0000 (UTC) Cc: guile-user@gnu.org To: Thien-Thi Nguyen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Dec 28 12:11:20 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NPDVP-00049c-Ie for guile-user@m.gmane.org; Mon, 28 Dec 2009 12:11:19 +0100 Original-Received: from localhost ([127.0.0.1]:35965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPDVP-0002bC-7I for guile-user@m.gmane.org; Mon, 28 Dec 2009 06:11:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPDVJ-0002az-OO for guile-user@gnu.org; Mon, 28 Dec 2009 06:11:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPDVF-0002aW-0P for guile-user@gnu.org; Mon, 28 Dec 2009 06:11:13 -0500 Original-Received: from [199.232.76.173] (port=48112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPDVE-0002aT-OV for guile-user@gnu.org; Mon, 28 Dec 2009 06:11:08 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]:41114) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPDVE-0003iv-MK for guile-user@gnu.org; Mon, 28 Dec 2009 06:11:08 -0500 Original-Received: from arudy (host81-153-58-148.range81-153.btcentralplus.com [81.153.58.148]) by mail3.uklinux.net (Postfix) with ESMTP id 714341F67D7; Mon, 28 Dec 2009 11:11:07 +0000 (GMT) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 93D3938023; Mon, 28 Dec 2009 11:11:03 +0000 (GMT) In-Reply-To: <877hs8xbwi.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Sun, 27 Dec 2009 23:58:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7582 Archived-At: Thien-Thi Nguyen writes: > As years go by, i have come to venerate old code per se less and > less. I think it would be cool to write tools to distill the > essence of old code, recasting into new code. That is what > compilers do, after all... If the new compiler/translator framework in Guile 1.9.x is capable of handling ECMAScript and elisp, it should certainly (in principle) be able to handle slightly different variants of Guile Scheme. So that might be a good way of handling any recasting at runtime. I believe it also supports writing out recast code - although perhaps at the cost of losing some formatting and comments. > Dreaming, i'd like to see compilers > that go beyond: > > compilation > source ---------------------> "executable" representation > > to > > grok-db -----+<-------+ > v | > compilation | > source ---------------+----> "executable" representation > > where grok-db contains the analysis results of (this and other) > source, both present and past. Can you give an example of what grok-db might say? Also note that grok-db is in a sense already present, in the source code of the compiler. Regards, Neil