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
1
vote
2 answers

How to properly use include stdio.h in an NVRTC-compiled program?

I have written an amazing kernel which will bring me fame and fortune - if I can only get it to compile with NVRTC: #include __global__ void do_stuff() { } I would have hoped that system headers should be recognized by the (runtime)…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
vote
1 answer

Why do R functions use more memory the first time they are run?

I've been toying with comparing vectorised R code with non-vectorised R code, and noticed that functions appear to use more memory the first time they are run. Here is a reproducible example: library(bench) squares <- function(x) { y <- x …
MånsT
  • 904
  • 5
  • 19
1
vote
1 answer

C# Is there a way I can compile an exe

When people download my project from GitHub, I launch a Setup Guide on Start Up that contains a button that reads 'Launch Connection String Builder'. The problem is GitHub doesn't store the .exe, so I have to explain in every video or tutorial 'Open…
user10950779
1
vote
1 answer

Compiling C# code from txt file to interface with running wpf application

I have been searching online for a neat way to compile code at runtime and manipulate the running application's objects (properties etc.). I have come across Snippy, CodeDom and CSharpCodeProvider but I didn't completely understood how I can use…
Ling Xing
  • 181
  • 2
  • 14
1
vote
1 answer

C++ Make a Program Write Over Itself

I posted a question on a similar topic a couple days ago (and one a couple years ago), but I decided to go ahead and get started. I am trying to inject C++ code into C++ code (in a somewhat portable manner using no os specific features and trying to…
1
vote
1 answer

C# - Dynamically create function body from user input string

I am trying to create a C# program that lets user's provide an implementation for for a function by inputting text into a text box. I provide the function header (input types, output type), they just need to provide actual implementation. I then…
Andrew
  • 1,355
  • 2
  • 13
  • 28
1
vote
1 answer

How to provide exteranl jars at runtime while invoking the .class file

I am trying to compile and run a java class at run time in eclipse which uses an external jar example : JSON library in this case. I have successfully compiled the java code but when i am trying to invoke the method, it is giving me following error…
Prakhar Agrawal
  • 153
  • 1
  • 6
1
vote
0 answers

Roslyn slower than CodeDom

I am using Roslyn to generate a runtime dll using a number of VB files on disk. I am first creating syntax trees from all those files and then using them for creating VBCompilation and them emitting the assembly. The whole process takes ~ 10 min.…
Anoop
  • 101
  • 1
  • 10
1
vote
0 answers

Issue using 'My.Computer' with roslyn

I am trying to compile VB code using Roslyn. Some of the files use My reference like: My.Computer.FileSystem.FileExists(ExtraPath) While compiling code I am getting the error: error BC30456: 'Computer' is not a member of 'My'. I am not exactly…
Anoop
  • 101
  • 1
  • 10
1
vote
0 answers

Issue dynamically Compiling VB code

When I compile VB code using CodeDom, I need not specify fully qualified path for system references. For example: Dim param As New CompilerParameters param.ReferencedAssemblies.Add("System.dll") works as expected. But when I do the same using…
Anoop
  • 101
  • 1
  • 10
1
vote
1 answer

Compile c# code from file on memory

I want to compile my codes from a file straight into memory (Runtime-Compilation or RunPE method). This is the code i use: var param = new CompilerParameters { GenerateExecutable = false, IncludeDebugInformation =…
1
vote
1 answer

Python - using multi-processing / multi threading for web scraping

I am using wikipedia python package to scrape data of a particular topic q=['NASA', 'NASA_insignia', 'NASA_spinoff_technologies', 'NASA_facilities', 'NASA_Pathfinder', 'List_of_NASA_missions', 'Langley_Research_Center', 'NASA-TLX',…
1
vote
1 answer

Runtime C# Compile All Files in a Folder from Code

I am successfully doing run-time compilation using the code below. Except that when the number of input *.cs files is large I get the following error. System.SystemException: Error running mono.exe: The filename or extension is too long. I believe…
Abdalla
  • 2,071
  • 2
  • 16
  • 27
1
vote
3 answers

Scala.js Runtime Compilation to Javascript

Hey, all. I want to figure out how to use Scala.js tools to compile Scala expressions to Javascript during runtime. Here's a simplified setup, as an example. Say, we have a simple DSL that consists of Ctx => Boolean functions and boolean operations…
silverberry
  • 786
  • 5
  • 20
1
vote
2 answers

Compiling Java code under Android in runtime

I have a class name String and a String which containing the class code. For example, "Example" is the name of the class, and public class Example { public void example () {System.out.println ("Hello world!"); } } The class code. I looked at…
1 2 3
8 9