http://www.perlmonks.org?node_id=460340


in reply to Re: High Performance Perl
in thread High Performance Perl

I do agree that blindly using unboxed types (like Perl 6's int) is a Bad Idea. Actually, all uses of unboxed types, except in very tightly contained and verified places, are potential disasters waiting to happen.

I'd much rather the Perl 6 compiler being able to infer when it is safe to use unboxed types, and only apply unboxing optimisations when it is sound to do so. At least, that is my goal in my work on Perl 6 to Parrot codegen as part of Pugs.

Replies are listed 'Best First'.
Re: High Performance Perl
by jonadab (Parson) on May 26, 2005 at 10:54 UTC
    I'd much rather the Perl 6 compiler being able to infer when it is safe to use unboxed types

    Yeah, that'd be cool. Let me know how you solve the halting problem.

      Sure. You solve it by doing whole-program analysis, and preferably restrict eval "" calls to not able to add ad-hoc bindings to Int.