[IronPython] Lightweight Code Generation?

Curt Hagenlocher curt at hagenlocher.org
Fri Sep 17 02:56:21 CEST 2004

"Lloyd Dupont" <ld at galador.net> writes:

> Also, just from the .NET point of view (disregarding Pyhton for a
> little while) If I launch the MS.NET 1.1 doc, and type
> DynamicMethod in the index: it's not there!
> And yep if I do that for .NET 2.0 doc it's there.
> But it's not in 1.1! even tought 2.0 is already out as a beta!
> (and that won't likely change! it will never make it in 1.1!)

Well, yes.  The question is, given that FePy is in early beta,
and .NET 2.0 is in early beta, and lightweight code generation
could considerably simplify some of FePy's implementation,
does it make sense to consider use of this feature?  Of course,
it would mean that you'd need .NET 2.0 or a newer version of
Mono to use FePy.

Right now, FePy has to generate an assembly to contain all of
its dynamic code.  It generates this assembly to the file
snippets.dll.  I'm not sure if it has to generate the assembly
to a file (versus in-memory), but one side effect of this is
that you can only run a single instance of FePy from the same
directory at the same time.

Being able to generate dynamic code that lives in memory and
doesn't have to be part of an on-disk assembly could be very

Curt Hagenlocher
curt at hagenlocher.org

More information about the Ironpython-users mailing list