[gambit-list] Module system ELS20 presentation

Hendrik Boom hendrik at topoi.pooq.com
Mon Apr 27 15:34:48 EDT 2020


On Mon, Apr 27, 2020 at 10:11:36PM +0300, Lassi Kortela wrote:
> On 27.04.2020 21.56, Hendrik Boom wrote:
> > > Good point. I'd advocate for standardizing a simple rewriting and filename
> > > mapping engine to work around problems like this (which I believe will come
> > > up no matter what kind of practical naming scheme we choose).
> > 
> > The progrmming language Eiffel has a module linking notation used to
> > direct its compiler.
> > 
> > It recognised that modules get aggregated into packages, that packages
> > get aggregated into larger packages and so forth.
> > 
> > Each level of this hierarchy can get name clashes.  So this notation
> > has a mechanism to rename anything on import or export
> > 
> > The idea is that each complete program comes with such a file telling
> > the compiler in what hierarchy all these modules are to be combined and
> > be renamed and have their imports and exports renamed.
> > 
> > Presumably such a file can contain information where these modules and
> > such can be found.
> > 
> > Presumably it can also be wrapped with instructions about finding these
> > modules, perhaps even rewriting the URLs or module names.
> > 
> > I found this notation described near the end of one of the books
> > describing Eiffel.  I no longer have access to this book, or I'd give yo
> > a detailed reference.
> > 
> > But I suspect this mechanism shouls be considered when making similar
> > decisions about Scheme.
> 
> Very valuable tip, thank you for writing it up!
> 
> The Eiffel site uses the term "cluster": "A group of related classes or,
> recursively, of related clusters." It says Eiffel projects have .ecf files
> that describe their configuration and dependencies. Here's one example:
> <http://seldoc.eecs.yorku.ca/doku.php/eiffel/faq/ecf>. Does this seem
> familiar to you?

No. not familiar at all.  The example in the book was not written in XML.
I can't tell whether this is an XMLized version of that they had back then, or something completely different.

I wish I still had the book.

-- hendrik
 
> 
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list
> 




More information about the Gambit-list mailing list