perl6-internals
[Top] [All Lists]

Re: pdd19_pir.pod: See C<docs/imcc/macros.pod>

To: "Parrot Porters" <parrot-porters@perl.org>
Subject: Re: pdd19_pir.pod: See C<docs/imcc/macros.pod>
From: "Reini Urban" <rurban@x-ray.at>
Date: Thu, 28 Aug 2008 17:09:33 +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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=fp1M4FLm1BpgGGN9BVpazcLejbPG1/VEbwKw5H+gu0w=; b=s434x0lx02G0//Hpq6Tz9jZK0/uwIhHoU7ok9t6iAVl45I5OxwThrxz4BvI1BFcYZm IE7wkY1PIMqPgtudxz9QhYKSWc1N50fPwOOCFhChXmY+f8cJ3M4CFZrD/yMtV1gJAOjR vfp2msZFq+E0FCcsacYexPE/YIUwp6ZOipb7M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=Aq81ZVJ1TTyU3PxR+PJKRE5UHXFKWl/dfhHxHEzlllkE17CxrNAIpcDLb0LiY3KeKq 7DnvXOUBN97mRtDLiPS9damXUU9vsgyKaoI6fiQ9IJ3d48U5FuRsalQygB8t6GIxLSxY X+8yCEW75+0L3LtBGrkJfvmSRzK0MpGblV6v4=
In-reply-to: <20080828132142.GA8858@pmichaud.com>
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> <48B2F14B.6040409@casella.verplant.org> <a45468e30808251105i4cf17896saa335f3e083ab8dc@mail.gmail.com> <48B30D43.9060703@perl.org> <6910a60808260633u1c325040u3d87c4ea7370ebe7@mail.gmail.com> <48B670B2.8080603@casella.verplant.org> <6910a60808280510v6ecb510gf78c72401364638f@mail.gmail.com> <20080828132142.GA8858@pmichaud.com>
Sender: reini.urban@gmail.com
2008/8/28 Patrick R. Michaud <pmichaud@pobox.com>:
> On Thu, Aug 28, 2008 at 02:10:27PM +0200, Reini Urban wrote:
>> Open problem:
>> For language pbc's a new dir like script_dir or lib_dir/parrot/bin
>> would be required.
>> They could also pollute $(DESTDIR)@lib_dir@/parrot/library where the other
>> pbc's are.
>> The language group and op shared libs go to $(DESTDIR)@lib_dir@/parrot/dynext
>> for sure.
>> e.g. tclsh.pbc, APL.pbc, ...
>
> I'd be a bit surprised if the .pbc files went into dynext/ -- that doesn't
> seem to match what currently exists there (which is all .so files on
> my system).

Sure.

My comment about the tclsh.pbc, APL.pbc, ... was referring to the
language pbc's, not to the group and op shared libs.

> At the moment I'm planning for language pbcs to go into
> .../parrot/library/ so they can be easily accessed via
> load_bytecode.  I've found that in a dynamic environment like
> Parrot there's very little difference between a language and
> a library [1].  :-)

That's probably the best, but we can also think of not installing that at all,
and only install executables. But then the new pddxx_language_interop.pod
at http://nopaste.snit.ch/13890 will have problems. exe cannot loaded
from other languages, only pbc's.
So each language will need its root namespace reserved for it's <lang>.pbc.

We could thing of symlinking it to runtime/parrot/library
at make languages, so language_interop can be tested.

> Also, I wonder if any of this relates to RT #47992 ("'parrot foo'
> automatically finds and invokes foo.pbc")?

If foo.pbc is in parrot/library/foo.pbc then it will be found.

The pbc library searchpath is only "." and "@lib_dir@/parrot/library".

Also PARROT_RUNTIME can be defined in ENV to override
the runtime prefix and therefore the library search path..

-- 
Reini Urban
http://phpwiki.org/ http://murbreak.at/


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