Questions tagged [runtime]
71 questions
108
votes
5 answers
How does shifting to microservices create a run-time problem?
The following commentator writes:
Microservices shift your organizational dysfunction from a compile time problem to a run time problem.
This commentator expands on the issue saying:
Feature not bug. Run time problem => prod issues => stronger,…
hawkeye
- 4,859
35
votes
2 answers
How does the Python Runtime actually work?
I have some problems understanding the concept of a runtime library, especially the Python one.
So I have written some a hello world python program and intend to execute it, so I write python ./hello_world.py.
What steps happens between me hitting…
hgiesel
- 821
19
votes
5 answers
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 different things like
the space of time that the program is…
How To Linux
- 373
17
votes
7 answers
How do I determine the runtime of a double recursive function?
Given any arbitrarily double-recursive function, how would one calculate its run time?
For Example (in pseudocode):
int a(int x){
if (x < = 0)
return 1010;
else
return b(x-1) + a(x-1);
}
int b(int y){
if (y <= -5)
return -2;
…
15
votes
3 answers
Is it a good practice to use suppress warnings in your code?
I use @SuppressWarnings("unchecked") and @SuppressWarnings("null") mostly above methods to let the code compile without any warnings but I have my doubts. Found this Stackoverflow question. Jon Skeet wrote an answer to it which I find…
Bilesh Ganguly
- 363
15
votes
3 answers
What is the difference between ref and out in runtime?
C# provides the ref and the out keyword to make arguments to be passed by reference. The semantic of the two is very similar. The only difference is in the initialization of the flaged variable:
ref requires the variable to be initialized before…
Gabor Angyal
- 1,079
14
votes
3 answers
What is an "application model"?
Currently I'm studying .NET Core and in the early docs which first introduced .NET Core we see that talk about the many different verticals. This can be seem in this picture:
In all the verticals we see the runtime, the framework, but there's also…
user1620696
- 4,967
13
votes
3 answers
How to design a C++ program to allow for runtime import of functions?
today, I like to ask you a question towards the capabilities of C++ to realize a specific software architecture.
Of course, I have used the search but have not found any directly linked answer.
Basically, my goal is to build a program which allows…
Oliver
- 157
10
votes
5 answers
Building a DSL: Scripted atop a general-purpose language or stand-alone?
I'm debating designing a domain specific language to simplify a given, obscure programming model. Part of the debate is whether to build it (as a script) atop an existing language/runtime (e.g. Java) or to make it stand-alone (own compiler,…
Jé Queue
- 3,917
9
votes
4 answers
Why not free memory as soon as its reference counter hits zero
A lot of languages like Java and C# have garbage collectors that free memory when that memory no longer has any reference. Yet they don't immediately free it after the reference counter hits zero but instead every once in a while they check on all…
Caesar
- 201
8
votes
2 answers
single for-loop runtime explanation problem
I am analyzing some running times of different for-loops, and as I'm getting more knowledge, I'm curious to understand this problem which I have still yet to find out.
I have this exercise called "How many stars are printed":
for (int i = N; i > 1;…
owwyess
- 145
8
votes
3 answers
Why is inheritance only defined at compile-time?
I found this statement from the gang of four's "Design Patterns" particularly odd; for some context, the authors are comparing inheritance versus composition as reuse mechanisms [p. 19]:
"...you can't change the implementations inherited from…
jds
- 1,102
7
votes
7 answers
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 is that 2-3-5-10 years down the line I will work…
user7088941
- 569
6
votes
2 answers
What is run-time support required by a language?
I read somewhere that C is preferred for drivers and firmware on embedded systems because it requires less run-time support. I could not understand the part 'run-time support'. My understanding is C code is converted to assembly code, which is…
6
votes
2 answers
Returning Unmodifiable Collections only tees you up for runtime exceptions?
Seeing as how there are no distinct Unmodifiable Collections interfaces, aren't you just setting yourself up for runtime exceptions by returning Unmodifiable Collections from method invocations? example:
public class Start {
public static…
konishiki
- 475