Tagged Questions
-1
votes
2answers
116 views
How the cross programming language compiler or translator works [closed]
These days there are more cross programming language compilers (specially from some 'X' language to JavaScript). I wonder how these are developed? What are the general steps to be taken care to write ...
2
votes
2answers
434 views
How is it possible to write the compiler of a programming language with that language itself [duplicate]
Possible Duplicate:
How could the first C++ compiler be written in C++?
You probably heard that Microsoft released a new language called TypeScript which is a the typed superset of ...
2
votes
5answers
259 views
How are operators organized in memory
How are operators organized/saved in the memory in context of a programming language. Are they procedures/functions saved somewhere and compilers just manipulate things to call these procs whenever ...
1
vote
3answers
249 views
Dynamic choice of compilers?
An application has the following logic:
client => created *.cpp => sent to the server => cl.exe + *.cpp =
*.exe
client => created *.cs => sent to the server => csc.exe + *.cs =
*.exe
client => ...
4
votes
2answers
518 views
Whats the difference between an interpreted language and one compiled to a VM?
It occurs to me that there's not a heck of a lot of difference between
$>python module.py
And:
$>javac module.java
$>java module.class
The former compiles to an intermediate language ...
5
votes
2answers
554 views
Writing a new programming language - when and how to bootstrap datastructures?
I'm in the process of writing my own programming language which, thus far, has been going great in terms of what I set out to accomplish. However, now, I'd like to bootstrap some pre-existing data ...
12
votes
6answers
1k views
What came first, the compiler, or the source?
I'm curious about the birth of the compiler. How did programming begin? Did people first build hardware that recognized a certain set of commands, or did people define a language and then build ...
4
votes
9answers
684 views
Why are effect-less functions executed?
All the languages I know of would execute something like:
i = 0
while i < 100000000
i += 1
..and you can see it take a noticeable amount of time to execute.
Why though, do languages do ...
2
votes
0answers
140 views
CoffeeScript translates to JavaScript. Is there something like it for C? [duplicate]
Possible Duplicate:
Is there a language that transcompiles to C with a better syntax?
There are many language implementations which compile to C. However, most of them have some language ...
7
votes
9answers
959 views
Why are virtual machines required?
Instead of compiling the source code for the respective OS (on which it is targeted), you compile once and run everywhere.
For the sake of this question, I would call it VM (for example, both for ...
8
votes
5answers
1k views
Interpreted vs Compiled: A useful distinction?
A lot of questions get asked here about interpreted vs compiled language implements. I'm wondering whether the distinction actually makes any sense. (Actually the questions are usually about ...
7
votes
3answers
3k views
Why doesn't Python need a compiler?
Just wondering (now that I've started with C++ which needs a compiler) why Python doesn't need a compiler?
I just enter the code, save it as an exec, and run it. In C++ I have to make builds and all ...
3
votes
3answers
615 views
Do You Have To Know CIL To Make A Compiler for .NET?
Assume one wants to create a simple .NET language, or slightly more difficult, a compiler for an existing .NET language. Do you absolutely need to be familiar with the CIL (Common Intermediate ...
3
votes
1answer
463 views
Io (Language) IDE/Compiler
Can you recommend a free compiler/IDE for writing some simple Io programs?
I want to learn the language at home in my spare time.
15
votes
3answers
4k views
How could the first C++ compiler be written in C++?
Stroustrup claims that Cfront, the first C++ compiler, was written in C++ (Stroustrup FAQ).
However, how is it even possible that the first C++ compiler be written in C++?
The code that makes up the ...