Questions tagged [runtime-compilation]

Use this tag for questions related to Runtime Compilation, i.e. the compilation of a program during Runtime.

is used in its general meaning, and is usually accompanied by Java, C based languages, Scala, ASP.NET, etc. .

123 questions
0
votes
1 answer

Render Angular 4 component with text coming in from an API

I want to render incoming text from an API as subsequent HTML and component template. Most of the solutions I found here use @ViewChild to inject the components but that doesn't work for me since I need to iterate the same behavior for all items in…
0
votes
0 answers

Revisiting the conflict of lombok with java runtime compilation

I am working in IntelliJ Idea, with JDK and JRE 8. The project makes use of lombok, and I would like to have code generation and runtime compiling. My aim is to produce a code that does the same task as some complicated runtime generated lambda…
0
votes
1 answer

Manipulating Code - Editing and Running Code

I'm trying to write a Selenium java program that will take commands from an external source. e.g. I have externally wrote driver.findElement(By.id("username")).sendKeys("FirstName"); in a user friendly way so users can create selenium scripts…
0
votes
1 answer

time complexity for array insertion

i am writing function to find the position where the target value should be inserted in the given array. We assume the array has distinct values and is sorted in ascending. here i want the time complexity to be O(logN). public static int…
user7799918
  • 55
  • 1
  • 1
  • 6
0
votes
0 answers

Run-time compile C# code in Portable Class Library (PCL)

I am writing a PCL (Portable Class Library) in C#. I was wondering how can I compile a C# code (given as string) and run it. Already tried to use CSharpCodeProvider and CodeDomProvider but none of them is available in PCL and I didn't find NuGet…
Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123
0
votes
0 answers

Running time of a algorithm which prints arrays elements using divide and conquer approach

Let's say there is an array A of size n. Which has some elements in it. Target is to print them as fast as possible. The printed order does not matter. The naive algorithm will be, print_number (A) for(i = 0 to n) print A[i] And it will…
prime
  • 14,464
  • 14
  • 99
  • 131
0
votes
1 answer

ASP.Net runtime compilation not leaving compiled dll, and deletes temporary files

We're experiencing an issue with ASP.Net runtime compilation. At the start (and after restarts) of the IIS, user controls and layouts compile just fine without any problem. But at some point during the lifecycle, the runtime compilation simply…
morten.engel
  • 101
  • 4
0
votes
1 answer

Variable '' of type 'System.Data.DataRow' referenced from scope '', but it is not defined

I am trying to build generic function to apply rules on DataRows. But I am getting following error while running the programe Here is my code. public Func CompileRuleDataRow(Rule r) { var paramUser = Expression.Parameter(typeof(T)); …
0
votes
1 answer

dynamic keyword in string input during CodeDom compilation

in order to convert string to code I was using the CodeDom compiler. I am talking about Compiling C# Code at Runtime! Especially I want to make Runtime Compilation with several parameters which types can be different. using System; using…
0
votes
1 answer

Getting runtime error in C in spoj toandfro classical

Here is the link to the problem. http://www.spoj.com/problems/TOANDFRO/ And here is the link to my code http://ideone.com/w5wafl On codepad,it says floating point exception. Here is link to codepad http://codepad.org/FW9bKp5k (remove the space bw…
0
votes
0 answers

Getting BC31019 excepetion while compiling vb.net at runtime on Windows 10

we are generating a mass of documents very dynamically. Therefore we concatenate source code and build a dll at runtime. This is running since windows XP. Now we are in tests of windows 10 and it fails compiling this dll with the error "BC31019:…
0
votes
3 answers

Java runtime compilation and class file generation

Working on an application which requires several source files(.java) to be compiled and corresponding class files(.class) to be generated at runtime and this happens at application start-up. Currently using below code for class generation: int…
Xavier DSouza
  • 2,861
  • 7
  • 29
  • 40
0
votes
2 answers

How do I import a C# monobehavior script during runtime and add it to a component?

I am a bit of a newbie in Unity3D and I have made a script that generates a new C# script (on void Start() for now). this C# script has to be added to a gameObject after it has been made. I tried to find a way how to import this script during…
0
votes
1 answer

CodeDOM & .Net Modules

How do I programmatically embed a .Net module to the assembly generated by CodeDOM?
Vyas Bharghava
  • 6,372
  • 9
  • 39
  • 59
0
votes
1 answer

C# Runtime Compilation - Add new interface to namespace

I am currently confused, if it is possible to compile an interface at runtime and add it to a "hardcoded" namespace. Some code to explain: using System; using System.Runtime.CompilerServices; using EngineCore; namespace EngineCore { public…
1 2 3
8 9