Any programming language that is primarily implemented by using a compiler, i.e. programs written in the language are translated into machine code before execution.
Questions tagged [compiled-language]
43 questions
0
votes
0 answers
Design Pattern Factory Method question - why the factory method in ConcreteCreator won't be available yet?
I am reading "Design Patterns" by Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides. In chapter of factory method, there's one paragraph:
"Factory method in C++ are always virtual functions and are often pure
virtual. Just be careful not to…

Nigel
- 161
- 12
0
votes
1 answer
How to ckeck Java Internal code which is written by Java Complire implicitly
People say that there are some codes in Java that are mandatory even if the programmer doesn't write them. Java compiler writes it by itself implicitly.
Like my code is this
class Test {
public static void main(String args[]) {
Test obj…
0
votes
1 answer
What prevented a WebAssembly-like system from being implemented and adopted on the web to begin with?
JavaScript was designed specifically for browsers. It wasn't pulled off the shelf. So what were the reasons behind making it a scripting language rather than a compiled language?
With the introduction of WebAssembly, it's proof that compiled…

Croolsby
- 1,416
- 1
- 14
- 14
0
votes
1 answer
Compiler and Interpreter preferable
When is a compiled language more preferable to an interpreted language and vice versa ?
I know compiler compiles the whole code at once and produces the object code whereas interpreter interprets the code line by line. When is one more advantageous…

Pritam Das
- 1
- 3
0
votes
0 answers
Precompiled templates with initializators (factory pattern) or single interface and method or what else?
PROBLEM
I'm trying to use authboss (https://github.com/volatiletech/authboss) with quicktemplate (https://github.com/valyala/quicktemplate).
The authboss rendering system is defined by one interface: Renderer.
I have created two different versions…

Fred Hors
- 3,258
- 3
- 25
- 71
0
votes
0 answers
Why is it important that Java (and other JVM languages) is highly portable?
I understand that the whole thing with the JVM is that you compile it once and you can run it anywhere with a JVM installation. But what's the point of that? Why not just compile the code multiple times, with different compilers for each OS?

user8578415
- 341
- 1
- 4
- 8
0
votes
1 answer
Data files when using intepreted languages
Say I have some data which I want several kinds of. I think the easiest example could be tiles in a game: I would have grass, rock, tree, etc. each with different sets of values.
I would immediately go ahead and make a file and read it in at…

PrettyPrincessKitty FS
- 6,117
- 5
- 36
- 51
0
votes
1 answer
Reasons and history for choice of common comment signs
Most of the programming languages use // or # for a single line comment (see wiki). It seems to be that # is especially used for interpreted languages. According to this question the reason for that seems to be that one of the early shells (bourne…

SearchSpace
- 105
- 1
- 10
0
votes
1 answer
JavaScript compilation in V8
In the V8 home (the Google's JavaScript engine) we read this:
V8 compiles and executes JavaScript source code
Does it mean that JavaScript is not an interpreted language in V8?
Does V8 use a just-in-time compilation approach for…

Boni García
- 4,618
- 5
- 28
- 44
0
votes
2 answers
Import D modules from multiple projects
I need to import modules from multiple projects to current project.
Currently I get following message from compiler:
map/map.d(9): Error: module game_object is in file 'steering/game_object.d' which cannot be read
import path[0] =…

php--
- 2,647
- 4
- 16
- 18
-1
votes
2 answers
If Scala is a compiled language, then why didn't it detect an out of bound exception in this program beforehand?
The program is:
object Hello extends App {
val a: List[Int] = List(1, 3, 4, 5, 8, 10, 11, 22, 33)
for (i <- 0 to 11)
println(a(i))
}
The Output is:
1
3
4
5
8
10
11
22
33
java.lang.IndexOutOfBoundsException: 9 // continues as a…

lousycoder
- 451
- 6
- 10
-2
votes
1 answer
Why Golang for loop is slower than Python for loop?
I have tested how golang performs on for loop
Just looping 50,000 times in python and golang and I found that it took 0.59 seconds in python while in golang it took 9.12 seconds
Can any experienced go developer tell me why Golang is too slow at for…

Mohamed Adel
- 29
- 8
-2
votes
1 answer
Is CMake an equivalent of npm?
I am totally new to CMake and compiled languages for that matter. I have seen this question and answer. But I still don't fully understand what CMake is.
I am coming from a nodeJs/Javascipt environment, therefore if I could know a CMake equivalent…

YulePale
- 6,688
- 16
- 46
- 95