yeah, parrot has NQP & PCT, seems not enough. there should be a common
interface for languages including NQP(perl) writing HLL implementations, i
think the interface is more important than just NQP.
there are many & many perfect c libs round the world, should be used by many
projects. i think implementing a HLL(translated into pbc directly) in c may
keep the HLL clean,efficient , compact, especially for embedding
application.
if parrot allows implementing a HLL in both high and low levels, i think
parrot will be more and more popular.
2010-01-25
atex.way
发件人: Geoffrey Broadwell
发送时间: 2010-01-25 11:43:06
收件人: atex.way
抄送: Andrew Whitworth; parrot-dev
主题: Re: ways of implementing a HLL based on parrot
On Mon, 2010-01-25 at 10:45 +0800, atex.way wrote:
> since parrot is a vm for dynamic languages, and mostly written in c ,
> i have suggestions for the ways of implementing a HLL.
> 1. can completely implement a HLL in c. for c is a common
> language for most people, the c APIs should be the inner interface to
> pir.
> 2. implementing a HLL in pir(allow c modules embeded).
> 3. through a common extention interface for other lanuages to
> implement a HLL. the parrot core should include the interfaces of
> perl, php,python . (perl may be a language running on parrot, also a
> language for implementing a HLL, instead of a language to be used to
> compiling parrot, certainly, except for parrot being implemented in
> perl completely)
> 2010-01-25
Generally (yes I know there are exceptions!), new HLL implementations
for Parrot are done in NQP (in particular, the NQP-rx variant), because
it is much more succinct than raw PIR or especially C. There is always
an opportunity to drop down to PIR as needed; NQP provides deep
integration for users needing access to raw PIR features not exposed
through standard syntax.
NQP stands for 'Not Quite Perl (6)', and is a subset of Perl 6 syntax
that can be implemented in Parrot without needing a supporting library.
It ships with (and is built and installed by) Parrot, and thus is always
available.
NQP and the PCT (Parrot Compiler Toolkit) together provide an extremely
productive platform for writing HLL implementations, vastly easier to
work with than PIR or C alone.
-'f
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev