[Bug 672015] New: Review Request: perl-Eval-Closure - Safely and cleanly create closures via string eval

bugzilla at redhat.com bugzilla at redhat.com
Sun Jan 23 09:23:32 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Review Request: perl-Eval-Closure - Safely and cleanly create closures via string eval
Alias: perl-Eval-Closure

https://bugzilla.redhat.com/show_bug.cgi?id=672015

           Summary: Review Request: perl-Eval-Closure - Safely and cleanly
                    create closures via string eval
           Product: Fedora
           Version: rawhide
          Platform: Unspecified
               URL: http://search.cpan.org/dist/Eval-Closure/
        OS/Version: Unspecified
            Status: NEW
          Severity: unspecified
          Priority: unspecified
         Component: Package Review
        AssignedTo: nobody at fedoraproject.org
        ReportedBy: iarnell at gmail.com
         QAContact: extras-qa at fedoraproject.org
                CC: notting at redhat.com, fedora-package-review at redhat.com
   Estimated Hours: 0.0
    Classification: Fedora


Spec URL: http://fedorapeople.org/~iarnell/review/perl-Eval-Closure.spec
SRPM URL:
http://fedorapeople.org/~iarnell/review/perl-Eval-Closure-0.01-1.fc14.src.rpm

Description:
String eval is often used for dynamic code generation. For instance, Moose uses
it heavily, to generate inlined versions of accessors and constructors, which
speeds code up at runtime by a significant amount.  String eval is not without
its issues however - it's difficult to control the scope it's used in (which
determines which variables are in scope inside the eval), and it can be quite
slow, especially if doing a large number of evals.

This module attempts to solve both of those problems. It provides an
eval_closure function, which evals a string in a clean environment, other than
a fixed list of specified variables. It also caches the result of the eval, so
that doing repeated evals of the same source, even with a different
environment, will be much faster (but note that the description is part of the
string to be evaled, so it must also be the same (or non-existent) if caching
is to work properly).

Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=2737882

*rt-0.10_01

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list