From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gubinelli Massimiliano Newsgroups: gmane.lisp.guile.user Subject: Re: Problem with modules in Guile 2.0 Date: Sat, 10 Mar 2012 01:33:52 +0100 Message-ID: <98C676BD-A7F7-47C7-B837-5E7FB6C30231@gmail.com> References: <54183C89-DE93-417E-84EC-5C454E56EE35@gmail.com> <87eht4yww5.fsf@pobox.com> <79B073AF-B3A8-46E0-A047-C4F5686E167E@gmail.com> <87obs7vojn.fsf@netris.org> <87r4x1spox.fsf@netris.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1331339672 13775 80.91.229.3 (10 Mar 2012 00:34:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2012 00:34:32 +0000 (UTC) Cc: guile-user@gnu.org To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Mar 10 01:34:25 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S6AGO-0008US-H9 for guile-user@m.gmane.org; Sat, 10 Mar 2012 01:34:24 +0100 Original-Received: from localhost ([::1]:43001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6AGN-0005RT-Mp for guile-user@m.gmane.org; Fri, 09 Mar 2012 19:34:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6AGI-0005RK-Sa for guile-user@gnu.org; Fri, 09 Mar 2012 19:34:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6AFy-0007vU-7l for guile-user@gnu.org; Fri, 09 Mar 2012 19:34:18 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:45879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6AFx-0007rI-Uv for guile-user@gnu.org; Fri, 09 Mar 2012 19:33:58 -0500 Original-Received: by werj55 with SMTP id j55so1924417wer.0 for ; Fri, 09 Mar 2012 16:33:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=llcorjaqNXHeVd4aetD4F6PelIMQ6SIjmTTRKlaVEnQ=; b=ZiAPaxDq6ssG8+EhCFH1eRrgBJ2rIcn2e7X7WjxlrMVLezAmWgmhkR8Vu8kTbJDqLr Xz/hSsPUh7hO1z3+1jAkGzPD2uJUoQChsuVk5mEoqjR2XrjpJMOSoKW+rHTZ/pFT6AWx naIDnD5SrLfckiw9m85lCdytONzuxgUwbh/lDCLWRuPrlPhJMIB3z6tIy4uVgdLPud9c H5gREd51GmWfMeUzj+RtzTwm/S9UwzkzzuFN/qzVOTvo289Ol5GbkkpyxNDsHp53PWKf xMMt46K78p7sZ6T1FpBu4bEKh1oR+gg6Nwqc6aDtE6rAlpZq7A06O0G09xP1l6EYvGFV XbbQ== Original-Received: by 10.216.137.163 with SMTP id y35mr2553676wei.33.1331339634608; Fri, 09 Mar 2012 16:33:54 -0800 (PST) Original-Received: from [192.168.0.11] (mor75-3-78-192-22-137.fbxo.proxad.net. [78.192.22.137]) by mx.google.com with ESMTPS id fb2sm9479984wid.3.2012.03.09.16.33.52 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Mar 2012 16:33:53 -0800 (PST) In-Reply-To: <87r4x1spox.fsf@netris.org> X-Mailer: Apple Mail (2.1257) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9336 Archived-At: Hi Mark, On Mar 9, 2012, at 5:29 PM, Mark H Weaver wrote: > Gubinelli Massimiliano writes: >=20 >> Hi Mark, >> thanks again. I start to understand better the Guile 2 compile >> system. I decided to dig into boot-9.scm to have a more precise idea >> of the ecosystem around my scripts. Unfortunately it seems that the >> basic TeXmacs scripting infrastructure need a major change to be run >> into Guile 2.0 and I'm afraid not to be sufficiently proficient in >> scheme to do this in a short time. >=20 > Why not convert your scripts to use the standard Guile module syntax? >=20 TeXmacs is currently composed of 250 scheme files for \sim 60000 lines = of scheme. Guile is used for customization and for other operations = which do not require special performance. All the rest of the program is = written in C++, in particular the typesetter and the GUI code. It has a = slightly customized module system and features contextual overloading of = functions (a function can be redefined to act differently is some = condition is met without modifying the module which implemented the base = behaviour). We would like to preserve the current system as much as = possible. Moreover we want also to be compatible with previous versions = of Guile (now we support Guile 1.4 up to Guile 1.8). The code does not = depend very much on specific Guile features a part form the module = system. >> Is there anyone on this list which would like to assist me to port = GNU >> TeXmacs to Guile 2.0. Currently the code in svn builds fine against >> 2.0 so the problem is just to adapt the scheme scripts which rely on = a >> customized module system. >=20 > I'd be glad to take a look. Where can I find your scripts? >=20 TeXmacs codebase is hosted at savannan = (https://savannah.gnu.org/projects/texmacs/). Check out the svn trunk = via svn co svn://svn.savannah.gnu.org/texmacs/trunk then you can find the scheme script in trunk/src/TeXmacs/progs at boot C++ evaluate init-texmacs.scm which in turn bootstrap the custom = module system defined in kernel/boot.scm and start to load modules. We = have a facility to lazy load modules since in old machines the bootstrap = of the scheme code is too slow.=20 With the current svn you will not be able to build TeXmacs with Guile = 2.0. If you are interested in that I will tell you how to do. I still do not know very well the scheme code (almost all of it has been = written by the main developer, Joris van der Hoeven).=20 Massimiliano > Regards, > Mark