./devel/p5-Eval-Closure, Safely and cleanly create closures via string eval

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.14nb1, Package name: p5-Eval-Closure-0.14nb1, Maintainer: pkgsrc-users

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).


Required to run:
[lang/perl5] [devel/p5-Sub-Exporter] [devel/p5-Try-Tiny]

Required to build:
[devel/p5-Devel-LexAlias] [devel/p5-Test-Requires] [devel/p5-Test-Fatal]

Master sites: (Expand)

SHA1: b4e5c8f943caabc6811b10b283ce1a0d6d952939
RMD160: b3b6150d8efaf41c8e92c5004839ca55a22d0f97
Filesize: 19.656 KB

Version history: (Expand)


CVS history: (Expand)


   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.
   2016-06-05 14:08:40 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Eval-Closure to 0.14
-------------------------------------
0.14  2016-05-29
      - a couple minor optimizations (dolmen, #8)
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-06-12 12:54:36 by Thomas Klausner | Files touched by this commit (1)
Log message:
Remove unused and broken bl3.mk file.
   2015-06-12 12:52:19 by Thomas Klausner | Files touched by this commit (3152)
Log message:
Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
   2015-05-23 02:02:18 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
(pkgsrc)
 - Add one BUILD_DEPENDS to devel/p5-Devel-LexAlias for make test.
(upstream)
 - Update to 0.13
--------------
0.13  2015-05-12
      - one more fix for blead (eserte, jplesnik, #6)
   2015-01-29 09:49:35 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Update to 0.12
0.12  2015-01-17
      - fix tests under blead (sprout, #4)
   2014-10-09 16:07:17 by Thomas Klausner | Files touched by this commit (1163)
Log message:
Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.