Questions tagged [dynamic-compilation]

Questions about code compilation in runtime. Alternatively, "Just-in-time compilation", "dynamic translation" or "runtime compilation". Used mostly by the runtime environment of tokenizing or interpreted languages.

Questions about code compilation in runtime.

Advantages

  • Compilation can be optimized for the current runtime system. This information is normally unavailable in compilation time.
  • Compilation to binary code is possible even independently from the CPU architecture.
  • Compilation can happen into memory, resulting platform-independent code combined with nearly binary code performance.

Disadvantages

  • Compiler must be part of the runtime environment.
  • Slow startup time.
  • Compile-time errors might appear only in runtime.

References

121 questions
0
votes
1 answer

Dynamic ASP.NET application compilation

My web application (ASP.NET v3.5 / C#) dynamically creates other asp.net applications (creates aspx, aspx.cs, classes, web.config, project.csproj file etc.). The thing is even after I configure the 'new' application folder as APPLICATION in the IIS,…
geevee
  • 5,411
  • 5
  • 30
  • 48
0
votes
2 answers

Dynamic assembly compile and load

I'm compiling assembly at runtime and link it via adding to new domain. I use it and then unload domain. But when I try to compile again during same run I can't get access to that assembly because it currently in use. Here are some of my code using…
Kostya
  • 141
  • 3
  • 14
0
votes
0 answers

Visual Studio Dynamic Compilation working for .aspx but not for .ascx

After migrating a website project I am facing a strange behaviour of Visual Studio Dynamic compilation. Whenever I modify an aspx file or master page and save it, the modification is visible instantly in my debug browser, I just need to refresh the…
0
votes
0 answers

Injecting new compiled function implementations into a native executable during run-time?

I'm implementing a Lisp-like language with a primary design goal of full interoperability with C. This means static typing, direct support of all primitives defined by the C standard, pointer arithmetic and low-level memory management. Macros are…
user3026691
  • 497
  • 2
  • 11
0
votes
1 answer

Dart VM itself implement `eval` in `dart:mirrors` and developers use it. Are planned to make this method public?

Here is code that use this eval method in Dart platform. This is done via reflection. runtime/lib/mirrors_impl.dart _getFieldSlow(unwrapped) { // ..... Skipped var atPosition = unwrapped.indexOf('@'); if (atPosition == -1) { …
mezoni
  • 10,684
  • 4
  • 32
  • 54
0
votes
2 answers

Dynamic decrypting and compiling of source code

I am having the following scenario: I need to dynamically compile an assembly at client machine, so currently I am deploying the source of that assembly along with my primary executable and then using MSBuild to dynamically compile the source into…
Samarsh
  • 565
  • 5
  • 18
0
votes
2 answers

Runtime Compilation

Is it a good idea to compile java classes in runtime for updating a project without stopping the server? And my next question is: can I replace the class of an existing object? I mean update some method behavior without recreating the Object.
Oleksandr Samsonov
  • 1,067
  • 2
  • 14
  • 29
0
votes
1 answer

How do I manage development and testing of dynamically compiled applications?

I am looking to go back into Android Dev, and one idea I want to try involves limiting the amount of code in the app per selected options. For example, there is basic functionality that every combination has and then other components that can be…
user1281598
  • 217
  • 4
  • 17
0
votes
1 answer

compile with javax.tools & running without reflection

I am new in the forum and pretty new about Java coding. Anyway I am implementing my Java code to dynamically compile and run different classes which are not know a priori and which could change over time (not too frequently). I fount very useful…
user2497897
  • 45
  • 2
  • 6
0
votes
0 answers

Rendering a view from another MVC web-site

mMy task is to create an action allows to get a downloadable copy of another asp.net MVC site output (let's think of it as a template and the result should be zipped collection of pages). The template site is located somewhere on the disk, but not…
0
votes
1 answer

Where can I find the InlinePageParser class?

Having found several examples for parsing cshmtl files, I would like to experiment a bit myself, yet I can't find the class InlinePageParser in any assembly or namespace available to me. I have MVC3 and 4 installed with VS 2012, and I have…
ProfK
  • 49,207
  • 121
  • 399
  • 775
0
votes
1 answer

Track compilation time of user controls and pages

Using pre and post build tasks in Visual Studio 2010, I can record compilation time through the day. I'd like to do the same with dynamically compiled user controls and pages, to monitor what happens in Temporary ASP.NET. Should I create a custom C#…
Francois
  • 10,730
  • 7
  • 47
  • 80
0
votes
1 answer

C get compilation options inside the code

I'm writing a GUI to an application, but the main developer wants to set in Makefile if the GUI get or not compiled with the rest. I'm putting all the GTK+ code in a separated file, but in the main file I need to test if the application is being…
Frederico Schardong
  • 1,946
  • 6
  • 38
  • 62
0
votes
1 answer

What's the difference between Dynamic Compilation used in Cg and Interpreter used in some scripts?

In a Cg tutorial it says that Cg uses dynamic compilation. I've noticed it's compiler has some similarities with an interpreter, in that they don't need to compile all the code in the first pass, and if an error exists you will find it when running…
TonyLic
  • 647
  • 1
  • 13
  • 26
-1
votes
1 answer

How to include library jar from lib to main jar with maven

I want to add jars, from another folder to my main jar at runtime, to make main jar lightweight. How to do it? I am using maven. I thought about scope provided, but I don't know how to add these jars. ./lib/hikari.jar ./lib/h2.jar …
korallo
  • 87
  • 2
  • 8
1 2 3
8
9