Re: Vocabulary

2003-12-18 Thread David Wheeler
On Dec 16, 2003, at 10:20 PM, Rafael Garcia-Suarez wrote:

There's a need (more or less) for special blocks that can be run at the
end of the compilation phase of any arbitrary compilation unit.
This would be especially useful in an environment such as mod_perl, 
where CHECK and INIT blocks currently _never_ execute, no matter when 
they're declared.

Regards,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED]  ICQ: 15726394
http://www.kineticode.com/ Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]
Kineticode. Setting knowledge in motion.[sm]


Re: Vocabulary

2003-12-18 Thread David Wheeler
On Dec 17, 2003, at 1:39 AM, Simon Cozens wrote:

The desire to optimize the hell out of Perl 6 is a good one, but surely
you optimize when there is a problem, not when before. Is there a 
problem
with the speed you're getting from Perl 6 at the moment?
Yes, it's taking too long to be released! ;-)

Regards,

David (Who wants to start writing Perl 6 applications yesterday.)

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED]  ICQ: 15726394
http://www.kineticode.com/ Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]
Kineticode. Setting knowledge in motion.[sm]


Re: Vocabulary

2003-12-18 Thread Larry Wall
On Wed, Dec 17, 2003 at 06:20:22AM -, Rafael Garcia-Suarez wrote:
: Larry Wall wrote in perl.perl6.language :
:  On Wed, Dec 17, 2003 at 12:11:59AM +, Piers Cawley wrote:
: : When you say CHECK time, do you mean there'll be a CHECK phase for
: : code that gets required at run time?
:  
:  Dunno about that.  When I say CHECK time I'm primarily referring
:  to the end of the main compilation.  Perl 5 appears to ignore CHECK
:  blocks declared at run time, so in the absence of other considerations
:  I suspect Perl 6 might do the same.
: 
: This has proven to be inconvenient except for a few specialized usages,
: such as the B::/O compiler framework.
: 
: There's a need (more or less) for special blocks that can be run at the
: end of the compilation phase of any arbitrary compilation unit.

Well, if you want to run at the end of the current compilation unit, a
BEGIN block at the end is close to what you want.  Admittedly, the BEGIN
block can't easily *know* that it's the last thing...

That's not to say we can't improve the semantics of CHECK and INIT.

Larry