Skip to main content

Compilers and interpreters

Programming languages allow you to interact with computers but writing a program would end in itself without compilers and interpreters. A computer would not be able to understand a program written with programming languages without the code being first translated into machine language; in the case of compilers, or interpreted in the case of interpreters. 

Compiled and interpreted languages

Except for Java where we can summarize with a term typical of (middle way) the constraints of a compiled program as in C, C ++ compared to an interpreted one, to understand them you have to go back in time to the birth of the Web; this is the only way to understand what prompted the need to find alternative solutions to those of compiled languages. Even though things have changed today with languages that have improved the internet experience such as:
  • JavaScript,
  • PHP,
  • ASP,
  • JSP
at the time, the "small applications written in Java" Applets were the first to open the way to the new way of understanding the Web. The Netscape Browser was the first to integrate a Java Virtual Machine into it; demonstrating and allowing interaction through the client-side Browser, in Run time.

Compilers and interpreters

The difference between an interpreted program is that the compiled one is assembled in binary code only once creating the executable; vice versa the interpreted code is executed every time in run time. A concrete example of an interpreted code is the one used for the Web.

Compilers and interpreters
Compilers and interpreters 


The success of Java

The JVM has determined the success of Java by allowing the Byte code of an application written in Java code to be interpreted, in Run Time; platform-independent! The Java Virtual Machine can be integrated on any operating system be it:
  • Linux,
  • Mac Os,
  • Windows,
  • Solaris 
allowing to circumvent all those constraints that you had instead with compiled programs like C ++; which were forced to include third-party external libraries to increase portability, not without a few compatibility issues.

Comments

Popular posts from this blog

How to insert JavaScript into web pages

You have learned everything there is to know about HTML and CSS to start building your static website and now you would like to make it dynamic but you don't know how to insert JavaScript into web pages; right? Don't worry! Inserting the scripts into html files is really a breeze. If you read this article, in the next five minutes you will discover all the methods for inserting JavaScript into html files. How to insert JavaScript into HTML file JavaScript need HTML file to work.  Like CSS all methods of inserting JavaScript into a Web Page can be divided into two sections; add the scripts inside the TAG of  HTML file or by calling them externally. In detail we can insert JavaScript: Directly into Body of the HTML file. In the Head Tag and recall it in the body. With a relative or absolute external reference. Insert JavaScript into HTML file We will see an example of how to insert JavaScript shortly but first let's focus on when it is useful to do an explicit or implicit ...

Introduction to the JavaScript language

In this introduction to the JavaScript language we discover one of the programming languages that has changed the concept of understanding the Web. The added value of JavaScript to the HTML code is to make the Web page dynamic in its interactions with the user. JavaScript is a client-side web programming language. Web 2.0 was born with the JavaScript language. The advantages of the JavaScript JavaScript or "JS" in its abbreviated form; is the most widely used client-side scripting language on the web. The advantage of the JavaScript is that it can be interpreted by almost all browsers; while what has allowed a strong expansion is the availability of many frameworks and libraries that can be easily integrated into scripts. The language is unique in its kind for data exchange thanks to the asynchronous AJAX (Asynchronous JavaScript and XML) functions that allow you to interact with users without reloading web pages and to exchange data in JSON (JavaScript Object Notation) for...

The origins of computer programming

Modern computers can process large amounts of data. Before the current computers we can only refer to the analytical machine of Charles Babbage; This machine performed calculations thanks to the rotation of gear wheels. Countess Ada Lovelace participates in the creation of Charles Babbage's analytical machine by decoding the language to make it work; US Department of Defense dedicates the ADA programming language in the name of the Countess.  The role of women in computer science  Apparently, the position of women in the history of computer programming seems to cut out only a marginal role; in reality, it is not so! As already mentioned in the previous paragraph; without the contribution that Countess Ada Lovelace left to the world of information technology; this science could be decades behind. The origins of computer programming languages  The origins of programming languages were determined by a mechanical and mostly experimental approach; with reference to the an...