Похожие презентации:
1 (15 files merged)
1.
2. Understanding Programming Languages
Programming languages formalize instructions bridgingh u m a n logic with hardware execution, ranging f r o m low
level machine code to high-level abstractions facilitating
complex software development.
3. First Generation Languages: Machine Code (1940s)
01Machine code is composed of binary digits directly
executed by CPUs, offering the fastest performance
possible. However, it is highly complex and difficult for
h u ma ns to read or d e b u g effectively.
02
Early computers like ENIAC utilized punched cards for
p r o g r a mmi n g using machine code. Although efficient
for the machine, it posed significant challenges for
programmers due to its low-level nature.
4. Assembly Language: Bridging Human and Machine
• C"P SI, CX• JE rJ_BUCLI
• "OUDI SI
I
Mnemonic Codes Simplify Programming
Limitations and Modern Uses
Assembly l a n g u ag e replaced bi nar y instructions
w i t h m n e m o n i c s like M O V and ADD, pr ovi di ng a
o n e - to-o n e m a p p i n g w i t h m a c h i n e instructions to
i m pr o ve h u m a n readability whi l e retaining
hardware control.
Assembly language's close tie to specific processors
limits portability b e t w e e n architectures like Intel a n d
ARM. Nonetheless, it remains essential in device
drivers, e m b e d d e d systems, and performance critical
software such as g a m i n g consoles.
5. High-Level Languages: Elevating Abstraction
$111'°1JTltlfltCUl.l(•.•. f.) I:)
,,,.,.nu
111i.10J
ftUI. . u o . 1 " 1 , Y l l A) ,
.
".
s
1((1.0
1Ml£,£1l M
4
•••••••••••••••••••••uouonooo..-ouo•uo1uo•o•••·o•u•••••••utooo.tuo
,a
St.llt0.t1H£ 2UR lU(Cl(llJ1E:tlSUll1IM.\l1'llf.
1IO1 '
UllLA01JWc; H l l , O t l l l • l CM PA.t.ut(TU;
5
t
0 , 'I.
l\IR LOUUllG
VOi'
.
l'•lf •Y
13 ' MME
H ' •
I S • J t
""l t n.•. ,.• '
...
tEAl
"t•.• x
"" .
" . t::
2'
2l
2t
lt
EIK'$UOA. AM€TE
It.: .ltt\U.a.£,llUl'IETU
:.i•• •••••••••••••uuoooou••••n•••••••n•••••e•••e=n•= u :oeuutuu .'.
)I
COlfShlfTUf
3?
))
:n)tl
,.
HI f O U O l t h
i
..
il<o ""llll'"•U
; i i .
lS
U
f'P0:1U•CHP'
Ol"!OlilOll 110 ltloftl:lf
lo
.\
•••••••••••••••••••••••••••••••••••-r·· ••••••••••n•,.....••••• ••••u•
Xiltl·YCM l / AIN. •I
DO 1f l r • l f L L 1
s.o.
00 2c0.c).d•ft'•tl,IC
.U•YUI
FORTRAN and Scientific Computing
FORTRAN pioneered h i g h -level p r o g r a m m i n g
f or n u m e r i c a n d scientific tasks, significantly
s i mp l i f yi n g c o m p u t a t i o n s c o m p a r e d to
assembly c o d e t h r o u g h h u m a n - readable
syntax.
COBOL Advances Business Applications
c and BASIC Expand P r ogr am m ing Reach
Designed for business data processing, COBOL
introduced English-like expressions to improve
accessibility and maintainability in enterprise
environments.
C balanced low-level control with higher abstraction
for systems programming,while BASIC emphasized
ease of learning, making programming accessible to
students and hobbyists.
6.
Procedural vs. Structured Programming FlowControl flow organization improving code clarity and reliability
Start: Define
Program Steps
7. Fourth Gen•eration Languages: Data-Centric
Fourth Gen• eration Languages: Data-CentricProgramming
FROM flight
VIHERE(flight . departure_time BETWEEN 1800 AND
2200 AND(flight . from_airport IN
(SELECT airport_service . airport_code
FROM airport_service
WHERE airport_service . city_code IN
(SELECT city . city_code
FROM city
WHERE city . city_name = 'LOS ANGELES' )
)
AND (flight . to_airport IN
(SELECT airport_service . airport_code
FROM airport_service
WHERE airport_service . city_code
IN (SELECT city . city_code
SQL's Role and Impact
Structured Query Language (SQL) b e c m e t h e
d o m i n a n t 4GL, enabling powerful relat1?nal
database interactions w i t h statements like
SELECT and WHERE clauses to efficiently query
data.
Commercial Database Systems
Enterprise systems such as Oracle and IBM DB2
extensively utilize 4GLs, f?cilitating . r o b st d.at<;i
manipulation a n d analytical reporting in m1ss1on
critical applications.
8.
O b j t-O r i e n t e d Programming: Modeling Real-WorldEnt1t1es
Enc.o..psulo..ti on
Inheritance
Polymorphism
l
IN - CA1=>5ULE - o..tion
Base Class
I
··"\
Compile-time
polymorphism
static polymorphism
•••
/ .e •
••
V"'1"'io. bles
/'\ tho.ls
Encapsulation Protects Data
Integrity
Encapsulation keeps an object's internal
state private, exposing functionality
through defined interfaces, improving
security and modularity.
' II
' ,
Derived Class
Derived Class
Inheritance Enables Reusability
Polymorphism Offers Flexibility
Inheritance allows new classes to derive
properties and behaviors from existing
ones, promoting code reuse and
hierarchical classification.
Polymorphism provides the ability for
objects to be treated asinstances of
their parent class, enabling dynamic
m eth od behavior across different types.
.
Abstraction Simplifies
Complexity
Abstraction hides internal implementation
details, exposing only essential features to
users, thereby managing complexity
effectively in software design.
9. Fifth Generation Languages: Al-Centric Development
Logic ProgrammingParadigms
Symbolic Computing with
Lisp
Modern Al Frameworks in
Python
Languages like Prolog prioritize rule
based logic a n d constraint-solving,
supporti_ng Al applications t h r o u g h
declarative kn o wle d ge representation.
Lisp facilitates symbolic manipulation
a n d recursive f unctions, foundational
in expert systems and early Al
research due to its flexibility and
expressiveness.
Contemporary Al leverages Python
libraries such as TensorFlow and
PyTorch, integrating neural networks
a n d m a c h i n e learning approaches
aligned w i t h SGL philosophies.
10.
Compiled vs. Interpreted Language ExecutionContrasting m e t h o d s of r u n n i n g p r o g r a m m i n g code
Executable
FileCreated
11. Generational Comparison of Programming Languages
Comparing key features acrosslanguage generations f r o m l G L to S G L
highlights t h e g r o wi n g levels of
abstraction and shifting priorities in
programming.
As abstraction increases f r o m l G L to
SGL, readability and portability
improve significantly, while raw
execution speed typically decreases,
reflecting trade-offs between h u m a n
usability and hardware efficiency.
2GL
3GL
4GL
5GL
Readability Very Low
Low
Moderate
High
Very High
Speed
Highest
High
Moderate
Lower
Variable
Portability
None
Low
Moderate to High
High
High
Use Cases
Direct hardware
control
System
programming
Application
development
Data
management
Al and expert
systems
Feature
1GL
12. Popularity Trends of Major Programming Languages (1960s-2020s)
c::::JProgramming Language PopularityThis chart illustrates the sustained
prominence of foundational languages
alongside the rapid g r o wt h of Python fueled
by Al and data science advances.
High-level and Al-related languages have
increasingly d o mi n a t e d usage trends,
mirroring shifts in c o m p u t i n g paradigms
toward abstraction and intelligent
applications.
7 0 - + -
+ -
FORTRAN
COBOL
- - - - <
c
- - - +
- - + -
Java
Python
-
SQL
13. Phases of Compiler Source Lan uage
Phases of CompilerSource
Lan u a g e
Translators: Compilers and
Interpreters
1t E n d
Compilers translate entire high-level source code into
machine-executable files before program execution,
optimizing for r u n t i me speed but requiring a compilation
step upfront. Example: GCC compiles C programs into
binary executables.
Interpreters execute code line-by-line at runtime,
facilitating immediate testing a n d flexibility but generally
resulting in slower program execution. CPython is a
c o m m o n interpreter for Python, enabling interactive
development workflows.
Target
Language
14. Logic Programming
Paradigm Shifts: Impact on Software and SocietyPolymorphism
Abstraction
Inheritance
OOPs
Concepts
Class
Encapsulation
SQL
Logic
Programming
withProlog
SecondEdition
Object
OOP Enhances Software Modularity and
Maintenance
Fourth Generation Languages Drive Data-Centric
Applications
Fifth Generation Languages and Al Foster
Intelligent Automation
Object-oriented programming revolutionized software design by
encapsulating data and behavior within objects, enabling easier
codereuse and modularity. This shift has supported the
development of large-scale systems with improved
maintainability and reduced complexity.
The emergence of declarative4Gls, particularly SQL,
transformed how organizations manage and extract insights
from data.These languages enabled non-programmers to query
databases effectively. accelerating business intelligence and
reporting.
SGLs embody constraint-based and logic programming
paradigms. laying groundwork for moaern Al software that
automates complex problem-solving.This evolution underpins
advances in expert systems and machine learning applications
shaping contemporary technology landscapes.