Questions tagged [runtime]
The runtime tag has no summary.
71 questions
19
votes
5
answers
5k
views
what does "runtime" mean in programming/software engineering?
I'm trying to understand what the term "runtime" means specifically in programming and software engineering.
The more research i do into the term, the more it seems it could mean several ...
3
votes
1
answer
320
views
Algorithms: How do I sum O(n) and O(mlog(n)) together?
I'm doing a running time analysis using the aggregate method and I'm a bit confused about what would be the result in this case. I have some intuition in inferring that it would be O(mlog(n)) but I'm ...
1
vote
3
answers
4k
views
Is it possible to instantiate a template class at runtime?
Suppose I have two abstract classes called Color and Animal
And I can create classes Green/Red/Blue derived from Color and classes Dog/Cat/Pig derived from Animal at runtime using factory pattern.
...
7
votes
7
answers
1k
views
Fighting the half-life of code
I am building a small application that supports a research project. My goal is to make the code to be painlessly executable and readable on as many operating systems as long as possible.
My reasoning ...
0
votes
0
answers
96
views
O(nlogn) + O(logn) =? [duplicate]
So I came upon this time complexity result and I was confused about it, it said that :
O(nlogn) + O(logn) =O(log(n+1))
Why is that the case? Shouldn't the result be O(nlogn)?
2
votes
2
answers
639
views
Mixing compile time condition with runtime conditions. Bad design?
On a C++ project I got an idea to mix some compile time macro with std::optional to do something like :
#include <optional>
struct Foobar
{
std::optional<int> foo;
std::optional&...
1
vote
1
answer
179
views
Programs running under Slurm for > 24 hours are being killed by process management. What are good approaches in Python to work around this issue? [closed]
I often run data processing/machine learning/filesystem-scanning scripts that can take well over 24 hours to complete. For processes with arbitrarily low memory requirements, I can run without using ...
2
votes
1
answer
310
views
How should a bytecode VM call external C functions?
I am trying to implement a basic bytecode VM, which I plan to target with a compiler. How can I implement the ability to call external C functions using the bytecode, i.e., call arbitrary functions in ...
0
votes
2
answers
114
views
Small confusion about time complexity
Suppose we have a code:
for(int i=0;i<n;i++) sum+=i;
We say the time function here is: f(n) = n+1+n = 2n+1. The order of the time function is 1. So, our time complexity becomes O(n).
But, for the ...
-1
votes
1
answer
775
views
Split object into multiple objects while keeping reasonable performance
I'm using C# but the problem could also be with Java.
I have an object in the flow that is muted for setting up some properties during the flow of the program.
Let say
public class Person {
public ...
2
votes
1
answer
1k
views
What are the pros and cons of adding SQL columns in run time, vs through a different design time architecture?
The company I'm currently working for has a feature in an enterprise app where a user can add columns to a table configuration on a web GUI through fields and a button, and a corresponding SQL table ...
1
vote
2
answers
280
views
design problem handling a dynamic object
I am writing an application for different geometrical types of fuel tanks.
I have a design problem that only at runtime I will receive the exact type of tank from the end user; and I don't know how ...
2
votes
1
answer
3k
views
How to parse a dynamically changing Json file? (c#)
So I know a little bit about parsing Json data but not too much so pardon if I am not describing everything as I should. Lets use this Json file as an example:
{
"firstname": "John",
"...
0
votes
2
answers
225
views
How to automatically triage production runtime errors before creating Jira issues?
How do "you" handle runtime incidents (say, a null-pointer exception, or an API input data validation failure) so that you (a) don't miss any, and (b) aren't spammed by duplicates? Are you doing log ...
1
vote
1
answer
98
views
Library with different runtime behaviour based on usage history (design question) [closed]
I want to design a hash table library that keeps usage statistics and based on how it is used will use different implementations at runtime. For example use a certain implementation for small size ...