runtime-compilation

Where would you use C# Runtime Compilation?

I happened upon a brief discussion recently on another site about C# runtime compilation recently while searching for something else and thought the idea was interesting. Have you ever used this? I'm trying to determine how/when one might use this and what problem it solves. I'd be very interested in hearing how you've used it or in w...

CodeDOM & .Net Modules

How do I programmatically embed a .Net module to the assembly generated by CodeDOM? ...

On-the-fly, in-memory java code compilation for Java 5 and Java 6

How can I compile java code from an arbitrary string (in memory) in Java 5 and Java 6, load it and run a specific method on it (predefined)? Before you flame this, I looked over existing implementations: Most rely on Java 6 Compiler API. Those that don't, rely on tricks. Yes, I checked out commons-jci. Either I'm too dense to understa...

Defining a class while a Java application is running.

In Java, is it possible to create a class definition on the fly while an application is running, and then create an object of that class? For example, a running application would read in a text file that contains a list of class members to include in the new class. The application would then define a class definition based on the list o...

Run-time compilation: How is it possible that this isn't a performance hit?

I've heard that some types of runtime compilation aren't a performance hit. The official Python documentation asserts that running a .pyc file is no faster than .py. (I can't find the link right now.) How is this possible? Doesn't it take time to generate bytecode from the .py? What about languages like PHP? Isn't it necessary to compil...

Compile and run dynamic code, without generating EXE?

I was wondering if it was possible to compile, and run stored code, without generating an exe or any type of other files, basically run the file from memory. Basically, the Main application, will have some stored code (code that will potentially be changed), and it will need to compile the code, and execute it. without creating any file...

Runtime code generation and compilation

Say I have this code that uses some input (e.g. a URL path) to determine which method to run, via reflection: // init map.put("/users/*", "viewUser"); map.put("/users", "userIndex"); // later String methodName = map.get(path); Method m = Handler.class.getMethod(methodName, ...); m.invoke(handler, ...); This uses reflection so the per...