[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: future of bytecode verifier
- From: David Given <dg@...>
- Date: Thu, 05 Mar 2009 15:47:05 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Luiz Henrique de Figueiredo wrote:
> This would break existing programs, though. And it'd be policy not mechanisms,
> while Lua goes for the oposite.
> The one really portable Lua format is source. Really. The parser is very
> fast as it is. But I see your point, of course.
Would there be much scope, then, for a Lua library that allowed portable
code generation? An interface to lundump/ldump, say? This would allow
people to write pure-Lua bytecode dumpers/loaders/verifiers in whatever
format they like, as well as allowing all kinds of neat stuff along the
lines of bytecode transformation, Lua compiler front ends, etc.
Such a thing would seem to align nicely with the Lua philosophy. OTOH,
it would of necessity have to have an unstable API (as the bytecode can
change at any point), and would be Yet Another hideously dangerous API
that shouldn't be exposed to untrusted code.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----