develooper Front page | perl.bootstrap | Postings from July 2000

Re: specific plan (was Re: Working Group Proposal)

Thread Previous | Thread Next
From:
John Tobey
Date:
July 21, 2000 03:09
Subject:
Re: specific plan (was Re: Working Group Proposal)
Message ID:
m13FScr-000FOJC@feynman.localnet
Ken Fox <kfox@vulpes.com> wrote:
> Joshua N Pritikin wrote:
> > I'm not sure whether perl can be implemented in perl.  Even if it can,
> > why bother?
> 
> Because it's a good way to get an implementation with clearly defined
> interfaces and simple structure without a lot of code. For example, I'd
> love to have the Perl 6 parser and resulting parse tree hackable in
> Perl without having to dive into C. IMHO the best way to achieve that is
> to implement the parser in Perl. If we have a Perl parser in Perl, then
> why wouldn't we slap a back-end on it and make it a Perl compiler? (Even
> if it's just a subset of Perl it would still be *really* useful.)

Yes.  Also, if we maintain both implementations, or at least some glue
for Perl to hook into, we might get a Perl debugger in pure Perl.
Basically a runops() in Perl with the ops written in C*.  It would be
more powerful than the current (IMHO grotesque) Perl debugger because
it could act at the opcode level.

There is no way Perl6 will be written entirely in any dialect of Perl.

> I'd also like to never see another line of XS code

Sorry, I can't resist tooting my horn.. Check out Pickle, "Perl to C++
and back without <perl.h>" - http://search.cpan.org/search?dist=pickle

-- 
John Tobey, late nite hacker <jtobey@john-edwin-tobey.org>
\\\                                                               ///
]]]             With enough bugs, all eyes are shallow.           [[[
///                                                               \\\

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About