perl6-internals
[Top] [All Lists]

Re: pdd30_install

To: Parrot Porters <parrot-porters@perl.org>
Subject: Re: pdd30_install
From: Reini Urban <rurban@x-ray.at>
Date: Sun, 31 Aug 2008 11:21:35 +0200
Delivered-to: mailing list perl6-all@perl.org
Delivered-to: perl6-all-poster@perl.org
Delivered-to: mailing list perl6-internals@perl.org
Delivered-to: perl6-internals@perl.org
Delivered-to: perlmail-parrot-porters@onion.perl.org
Delivered-to: parrot-porters@perl.org
In-reply-to: <48B825E3.6010104@perl.org>
List-help: <mailto:perl6-all-help@perl.org>
List-id: <perl6-all.perl.org>
List-id: <perl6-internals.perl.org>
List-post: <mailto:perl6-all@perl.org>
List-subscribe: <mailto:perl6-all-subscribe@perl.org>
List-unsubscribe: <mailto:perl6-all-unsubscribe@perl.org>
Mailing-list: contact perl6-all-help@perl.org; run by ezmlm
References: <6910a60808250108t65dda8bfqeaf6454a62d839d6@mail.gmail.com> <6910a60808260633u1c325040u3d87c4ea7370ebe7@mail.gmail.com> <48B670B2.8080603@casella.verplant.org> <6910a60808280510v6ecb510gf78c72401364638f@mail.gmail.com> <20080828132142.GA8858@pmichaud.com> <6910a60808280809rec80d2fqdc96a41b3198716b@mail.gmail.com> <a45468e30808281030u63c39f2dp947b1bc49c4e2985@mail.gmail.com> <48B71457.5030202@perl.org> <48B80653.5090501@x-ray.at> <48B80DD6.6080403@perl.org> <a45468e30808290920k570b4e78ya632c3882b980ad6@mail.gmail.com> <48B825E3.6010104@perl.org>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
Allison Randal schrieb:
Will Coleda wrote:

It's important to keep in mind that for the most part, at least on
unix-related operating systems, executables for a particular language will
simply be an 'ln -s' to /usr/bin/parrot (taking advantage of the $0
executable name information to set up certain configuration for the runtime
environment).

I'm curious how you envision languages registering themselves for this
special treatment?

I'm assuming that when a language module is installed, it will not only store its libraries in a lib directory, and its executables in a bin directory, but also a small config file in some directory like /etc/parrot/languages/. That would give the name of the language, a few relevant paths, and probably some meta-information like the license of the language module.

I don't like this idea of another language configuration file. We can do without.

The name of the startup .pir/.pbc module is the same as registered via compreg, which must be the same as the name of the language directory.
I want to call that now HLLNAME.
TODO: only unl

There are certain HLL's with multiple executables or different names.

tcl wants to be named tclsh, so it will be /usr/bin/parrot-tclsh.
Either symlinked to /usr/lib/parrot/library/tcl.pbc or as installable via pbc_to_exe --install linked to install_config.fpmc.

bf has bf.pbc, bfc.pbc and bfco.pbc and parrot-bf, parrot-bfc and parrot-bfco installables.

WMLScript has wmls2pir, wmls2pbc, wmlsd, wmlsi with its pbc's, but there's also the main WMLScript.pbc.

Just the load_bytecode 'languages/WMLScript/src/WMLScript.pbc' is forbidden in the wmls* scripts.
It must be load_bytecode 'WMLScript.pbc'
and 'WMLScript.pbc' must be generated to runtime/parrot/library/,
not in src.

This load_bytecode 'languages/..' problem is in eclectus, forth, lua, PIR, tcl and WMLScript. I'll fix that by generating these pbc's directly to runtime/parrot/library/.
--
Reini Urban
http://phpwiki.org/  http://murbreak.at/


<Prev in Thread] Current Thread [Next in Thread>