Questions tagged [runtime]
Runtime is the time during which a program is running (executing)
7,586
questions
1
vote
0
answers
11
views
what is the Job of ThreadPoolWorkQueue.Dispatch()
i want to understand some topic about threadpool in the dotnet runtime so my question is :
what is the job of ThreadPoolWorkQueue in the threadpool and what ThreadPoolWorkQueue.Dispatch() does ?
0
votes
0
answers
28
views
why park_m() still call getg() in golang runtime
Recently reading golang source code, found some interesting points. One of them, there is a park_m() in runtime/proc.go like below:
// park continuation on g0.
func park_m(gp *g) {
_g_ := getg()
...
0
votes
1
answer
77
views
How can sizeof determine size of an array, if it's length is determined on runtime?
As much as I know, sizeof can only know size of something, if the size is determined at runtime.
int a1;
cin>>a1;
int x2[a1];
cout<<sizeof(x2)/4<<"\n";
If I give input 10, ...
1
vote
0
answers
22
views
What action do I need to take?
Can someone please help me:
understand what is happening in this code bit:
With objOLE
.Name = sCaption
.Top = rngCell.Top
.Left = rngCell.Left
...
1
vote
1
answer
76
views
How to check if a c++ typeid(T) call is compile time or runtime determined?
C++ keyword typeid has a magic: it know when to use compile-time type info and when to use runtime type info:
#include <iostream>
#include <typeinfo>
using namespace std;
struct Interface ...
3
votes
2
answers
125
views
+300
How to convert/use the run time variable in compile time expression?
I have the following situation (live code : https://gcc.godbolt.org/z/d8jG9bs9a):
#include <iostream>
#include <type_traits>
#define ENBALE true // to enable disable test solutions
enum ...
0
votes
1
answer
23
views
Struggling with the concept of relating g(n) to f(n)- is my reasoning correct for these examples?
I need to determine the relationship of the following functions and prove them. I don't think I fully understand their relationship and how to approach this in general. Is my reasoning correct for ...
-1
votes
1
answer
34
views
Print_All_PDF_Files_in_Folder()
I've been using this code to print PDFs from a folder at work but the code isn't working anymore. I'm working remotely from home and I've updated the file path and I still receive a run time 53 error ...
0
votes
1
answer
17
views
How to set Blasorise.DataGrid cell's forecolor at run-time?
How to set Blazorise.DataGrid cell's forecolor at run-time?
I wanted the forecolor of the sample weather forecast app's Temp.C. cells to be set depending on their values, for example,
if a value is ...
0
votes
1
answer
33
views
How to enforce Google Colab to utilise the GPU (using an external package to make sure GPU is used)?
So I am using Google Colab because I have some functions I need to execute that take far too long on my cpu. I have set the runtime to the GPU accelrator, however when I run the cell, I still get this ...
1
vote
1
answer
41
views
How can I make my code more efficient for Roman to Integer conversion?
I'm new to programming. In Python, I wrote a program to convert Roman numerals to integers. The constraints are:
1 <= s.length <= 15
s contains only the characters ('I', 'V', 'X', 'L', 'C', 'D', ...
1
vote
0
answers
46
views
fatal error: antlr4-runtime.h: No such file or directory
i'm trying to build a project with antlr4, once i run the command sudo make to start building the project, i get the following error:
/home/ubuntu/new/transpiler/main.cpp:2:10: fatal error: antlr4-...
0
votes
1
answer
16
views
Asymptotic analaysis nlogn vs. n
image of code that is analyzed for asymptotic runtime
I was given a problem of analyzing the runtime of this code, and I came up with NlogN since the outerloop is Logn and the innerloop is N, so the ...
0
votes
0
answers
10
views
Sunny Explorer .net runtime fatal execution engine error (7A0BD76A) (80131506)
Has anybody ever received a similar error using Sunny Explorer by SMA solar technology?
I'm getting the error in the picture attached.
If anybody could assist with pointing me in the right direction, ...
0
votes
1
answer
36
views
Is the `runtime.deferreturn` ever called in go defer
At the bottom of a Go func with defer, the assembly looks like this:
0x000000000047e1a0 <+256>: callq *%rsi
0x000000000047e1a2 <+258>: movb $0x0,0x7(%rsp)
...
0
votes
1
answer
52
views
C++. What could cause a runtime error here? Radix sort [duplicate]
Task:
To write a program that inputs key-value pairs, sorts them in ascending key by the specified sorting algorithm in linear time, and outputs the sorted sequence.
Radix sort.
Key type: dates in the ...
0
votes
0
answers
10
views
Constants in sorting algorithm runtime
When searching for runtime comparison of sorting algorithms, I only find the asymptotic runtime in O(.) notation. I am curious, whether there exists any comparison which actually provides the ...
0
votes
1
answer
20
views
How to include your run-time code in a main method in Python?
This was asked at the end of a Python challenge. [Here is the link to the challenge][1]
I would really appreciate it if you could explain it to me or address me to documentation in this subject.
I ...
0
votes
1
answer
34
views
kotling mutableMapOf<String, MutableSet<String>> error
val bucket = mutableMapOf<String, MutableSet<String>>()
I insert multiple keys in bucket.
My logic is here
for(temp in report_unique){
val str = temp.split(" ")//str ...
0
votes
0
answers
54
views
What's the purpose of CSS Parser in JavaScript Runtime?
I recently came across a new javascript runtime called bun.js. It claims to be faster than node and deno in rendering, hashing etc.
So while scrolling through the roadmap of bun.js, I came across CSS ...
0
votes
1
answer
26
views
Advice on how to make my regex string matching in R faster
I'm doing string matching in R that is basically a more complex version of the code below:
library(tidyverse)
my_restaurants <- tibble(restaurant = c("MCDONALD 'S ON FRANKLIN ST",
...
0
votes
0
answers
21
views
Updating json files while using pytest
I am running tests and I have json files that includes configurations for every test.
Example:
'Test1': { 'expected_version' : 'a'}
I want to edit the configuration after getting the items (tests ...
0
votes
0
answers
24
views
Load pre-compiled dart code at runtime using a shared library
Let's assume I have the following project structure:
interfaces/
A.dart, B.dart, etc
app/
main.dart, etc
addon1/
Aimpl.dart, Bimpl.dart, etc
addon2/ etc
The code being executed lies in app/, ...
2
votes
1
answer
54
views
Does preallocation of R list improve loop run time? how?
I am running a simulation in R, in which the outputs should be stored in numeric vectors in a variable of the type list. However, I am wondering why when I preallocated the list with numeric vectors, ...
0
votes
0
answers
20
views
foreach..dopar runs significantly slower on Docker vs local laptop
I am currently running into a weird issue that the foreach...dopar runs like 10x faster in my local laptop (Dell laptop, Windows 10 OS) with 15 cores than when the R code was put onto Docker container ...
5
votes
0
answers
34
views
In R, why do operations using dplyr take different amounts of time depending on the format of the dataframe (long vs wide)?
I've noticed depending on the number of variables/features a data set has it might be faster to first pivot_wider (less variables) or pivot_longer (more variables). I'm wondering what this is ...
0
votes
2
answers
37
views
Find the mismatch between two python dataframe
I have two dataframe below:
df1>>
df2>>
I need to compare the two dataframe and find the id's in col1 where col2 value is a mismatch i.e. for the sample dataset 3 should be the answer.
...
2
votes
2
answers
32
views
Will a google colab notebook connected to a local GPU/runtime ever disconnect?
I am running a google colab notebook using my local GPU therefore using the colab feature of connecting to a local runtime.
I was wondering if, when running colab this way, it will remain with the ...
0
votes
0
answers
49
views
java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableListableBeanFactory.getApplicationStartup()
We are getting the below error, when we are trying to migrate to the srping version.
Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableListableBeanFactory....
0
votes
0
answers
43
views
Elasticsearch: Nested JSON object parsing and aggregation
I am currently working on a project that takes GitLab Security Scanner artifacts, curls the JSON artifact files to ElasticSearch, and then visualizes certain information from said artifacts. In this ...
-1
votes
0
answers
42
views
Leetcode two sum problem in Python in bruteforce method
There is a two sum problem in Leetcode which is as follows:
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
You may assume ...
0
votes
0
answers
40
views
How to load assets from folders contained in Resources in a built project - Unity
I have in my Resources folder other folders that each of these contains one or more sprite sheets:
In order to use these sprites, I use a method that reads this folders structure and saves its ...
0
votes
0
answers
42
views
antlr4 runtime : error while loading shared libraries libantlr4-runtime.so.4.7.1
Hey I'm trying to run a transpiler (compiler / translator), that translates alfa to solidity smart contracts.
To run this project, I've followed the following steps:
Cloning the runtime repo and ...
-1
votes
0
answers
39
views
.net core, model: how to generate model dynamically, based on database columns
For my API I need to generate a model class for .net core application based on database columns in runtime.
can anyone suggest me a way.
-1
votes
0
answers
21
views
How can I add controls to ASP.NET MVC during runtime
I want to create a customized user input form with dropdowns, radio buttons and other controls.
I am reading the format from a CVS file and want to create the user input form during run time.
How can ...
1
vote
1
answer
39
views
Simple algorithm Big-O Runtime
I am a beginner, and i have this fundamental doubt...
What is the Big-O runtime of this simple algorithm ?
Is it O(n2) [ cause of two for loops ] or O(n3) [ including product of two numbers which ...
0
votes
1
answer
42
views
How to improve the performance of a while loop which is processing a large dataframe for each element in a large list?
I have a code with the following while loop:
def get_names(key):
temp = pd.DataFrame(columns=['name','tot_count'])
df2 = dfx.loc[(dfx['name1'] == key) | (dfx['name2'] == key) | (dfx['name3'] =...
0
votes
0
answers
22
views
Set docker env vars programmatically at runtime
Is there an idiomatic way in docker for setting computed environment variables (e.g. expose details about the host) at runtime?
The logic for computing the environment variables should be embedded in ...
1
vote
0
answers
21
views
How add property at runtime to already existing class Reflection.Emit
I'm trying to add a field to an existing class, I found a solution through Reflection.Emit, but this output only works if we define a new class, and I need to add it to an existing one, and I can't ...
1
vote
1
answer
29
views
When does a variable get its value assigned in c#?
Example:
string input=Console.ReadLine();
Base obj1;
if (input=="a"){
obj1=Derived();
else{
obj1=Base();
}
In this case i know that a variable gets its value at runtime. But ...
0
votes
1
answer
21
views
How does a nested if statement affect actual runtime before f(n) simplifies to O(g(n))?
I am aware that constant coefficients and constants are simply ignored when calculating runtime complexity of an algorithm. However, I would still like to know whether an if statement nested in a ...
-1
votes
2
answers
151
views
"You must install .NET Desktop Runtime to run this application"
I make a Desktop application Form using C# and .NET. Then I simply deploy it and make a .EXE file of it. But when I runt his .EXE file on my other Laptop, it is going to ask me "You must install ....
0
votes
1
answer
51
views
How To Change Path of a File At Runtime In C?
I Have To Change The Path Given by An Macro of The Custom Header Files At Runtime.
Suppose That I Have a Directory Where All My Custom Data Structures are Stored
Path: E:\Programming Files\Code\C\...
0
votes
0
answers
24
views
Getting ImageIcon- image path in runtime
I'm trying to get the image file path or file name of an ImageIcon. I've created a screen in my Java gui app, which contains properties for a custom JButton (extends JButton). From that screen I'm ...
0
votes
0
answers
22
views
AndroidStudio Chipmunk heap size for tests runtime
How can I increase heap size for my tests runtime? Tried Appearance & Behavior > System Settings > Memory Settings with no results.
Using:
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #...
0
votes
2
answers
69
views
PublishSingleFile error on upgrading from netcoreapp3.1 to net6.0
I am getting this below error while trying to publish my app via the command line after upgrading it from netcoreapp3.1 to net6.0:
dotnet cake build/build.cake --target=Publish --Verbosity=Diagnostic -...
0
votes
0
answers
23
views
Unable to evaluate the expression Object has been collected
There is one object from one class which is not getting identified during the runtime or debugging.
The same object gets highlighted on devtools. I'm not understanding what is wrong over here.
Does ...
0
votes
1
answer
217
views
Is Bun really ~3 times faster than nodejs?
I was looking at Bun Official Site there i noticed that they are claiming, bun is nearly 3 times faster than nodejs.
Is it really true or it is just a marketing strategy to promote bun over nodeJS?
...
0
votes
0
answers
27
views
Angular trailing slash getting not found error, unable to load runtime, vendor, etc
I recently created a new project using Angular 14.
I'm using RoutingModule to map my app's routing:
import { NgModule } from '@angular/core';
import { Router, RouterModule, Routes } from '@angular/...
1
vote
0
answers
52
views
How to single step into runtime code in Golang
I wonder how can I single step into runtime code (presumably in Visual Studio Code). I don't think this problem ties to any specific version of Go, but for context, I'm using 1.18.3 on Intel Mac.
What ...