Lect3Evolution of Programming Languages
Lect3Evolution of Programming Languages
PROGRAMMING
LANGUAGES
BY:
D. B. Naga Muruga,
Dept of mechanical engineering,
Sriram engineering college
WHAT IS
PROGRAMMING
LANGUAGE?
A language consists of set of instructions to
perform a specific task to get the required
output is known as programming language.
Example:
main()
{
int a,b;
scanf(“%d %d”,&a,&b);
printf(“%d”,(a+b));
}
2
Classification Of Programming Languages
Low-level Languages
Machine Language.
Assembly Language.
High-level Languages
Procedural.
Object based.
Purely Object Oriented.
ADD A FOOTER 3
FORTRAN
The first high-level programming language was Plankalkül, created by Konrad Zuse between 1942 and 1945.
The first high-level language to have an associated compiler was created by Corrado Böhm in 1951, for his
PhD thesis. The first commercially available language was FORTRAN (FORmula TRANslation); developed
in 1956 (first manual appeared in 1956, but first developed in 1954) by a team led by John Backus at IBM.
FEATURES: APPLICATIONS:
4) Modules. 4) Crystallography
Procedural programming
Developed by Dennis Richie ,bell lab,1972
EXAMPLE:
FEATURES:
#include<stdio.h>
Low access to memory void main()
Super Fast and efficient {
Portable printf(“%d”,printf(”Hello world”));
Flexible }
Modular
Easy to debug Output:
Hello world11
5
APPLICATIONS:
1) Designing OS
2) Designing compilers
3) Designing networking devices
4) Developing new languages(like UNIX)
5) Used in embedded system
6) Gaming and Animations
DISADVANTAGES:
1) Operating systems
2) Graphics
3) Banking applications
4) Embedded systems
5) Web browsers
DISADVANTAGES:
6) Platform dependent
7) Not fully object oriented
8) Can’t support garbage collection
8
JAVA
Object oriented
EXAMPLE:
Write once run anywhere(WORA)
Designed by James Gosling,1995 Import java.util.*;
class Simple{
public static void main(String args[]){
FEATURES: int a;
Simple scanner s=new scanner(System.in);
Portable a=s.nextInt();
System.out.print(“entered no. is:”+a);
Platform independent
Compiled and interpreted }
}
Secured
OUTPUT:
Robust 5
9
entered no. is:5
APPLICATIONS:
DISADVANTAGES:
10
PYTHON
Interpreter Language
Created by Guido Van Rossum in the year of
1991 EXAMPLE:
l=list(map(int,input().split()))
FEATURES: l.sort()
for i in l:
print(i,end=“ ”)
1) Works on different platforms.
2) Simple syntax. Output:
5 3 1 4 2//input
3) Can be treated as a procedural as well as
1 2 3 4 5 //output
object oriented language.
11
APPLICATIONS:
1) Web applications.
2) Can handle big data and performs complex mathematical functions.
3) Robotics.
4) Data analytics.
5) Machine Learning.
DISADVANTAGES:
12
SQL(Structured Query Language):
UPDATE COMMAND:
14
Update student set marks=marks+10;
JAVASCRIPT
JavaScript was created by Brendan Eich, who was an employee at Netscape Communications Corporation at
that time. He began to develop a scripting language which was initially called as LiveScript with the purpose of
utilizing it both in the browser and on the server. Thus, the Netscape moved into a specific development
cooperation with Sun Microsystems for a comprehensive implementation of LiveScript in time for release.
FEATURES:
Client-Side execution
User Interface Interactivity
Rapid Development
Browser Compatible
Make XMLHttp Request() Object
15
APPLICATIONS:
DISADVANTAGES:
5) Client-side insecurity.
6) Browser Support.
7) Lack of Debugging Facility. ...
8) Single Inheritance. ...
9) Sluggish Bitwise Function. ...
10) Rendering Stopped.
16
Front-end Back-end
Websites
Client-side Server-side
MSN.com JavaScript C#
Facebook.com JavaScript Hack, PHP (HHVM), Python, C++, Java, Erlang, D, XHP Haskell
1
eBay.com JavaScript Java,JavaScript,Scala
WORLDWIDE
Python - $8,809
Clojure - $72,000 Java - $7,341
Rust - $65,714 JavaScript - $7,047
Elixir - $65,000 C# - $6,901
Go - $64,516 SQL - $6,695
Perl - $63,068 C++ - $6,622
Ruby - $60,000 C - $6,240
Scala - $60,000 PHP - $5,286
R - $57,125
CoffeeScript - $55,054
Haskell - $53,763
Python - $53,763
Swift - $53,763
C# - $53,750
C++ - $51,324
VBA - $50,476
JavaScript - $50,000
Matlab - $50,000
SQL - $50,000 18