DEV Community

Sivakumar Mathiyalagan
Sivakumar Mathiyalagan

Posted on

Platform Architecture of Programming Languages

JAVA

Java Development Kit(JDK):

This kit provides all required tools and libraries to develop java program this contains

JDK
├── JRE
│ ├── JVM
│ └── Libraries
└── Development tools

Development Tools helps to develop and to compile code
where java code is translated to byte code and class file is created

Java Runtime Environment(JRE):

he JRE contains the core Java libraries that your program needs at runtime

The JVM(Java Virtual Machine) inside the JRE executes the bytecode. It may interpret it or compile frequently used code to machine code using the Just-In-Time (JIT) compiler.


JavaScript

JavaScript's architecture is different from Java because it doesn't have separate JDK, JRE, and JVM components. Instead, it consists of a runtime and a JavaScript engine

  1. JavaScript Development Environment

Developers typically use:

  1. Node.js (for server-side development)
  2. npm (package manager)
  3. Build tools like Vite, Webpack, Babel, or TypeScript (optional)

  4. JavaScript Runtime

The runtime is the environment where JavaScript executes.

Examples:

  1. Browser (Chrome, Firefox, Safari, Edge)
  2. Node.js

  3. JavaScript Engine

The engine is responsible for executing JavaScript code.

Examples:

  1. V8 – Chrome and Node.js
  2. SpiderMonkey – Firefox
  3. JavaScriptCore – Safari

Python

Python's architecture is closer to Java's than JavaScript's because it also compiles source code into bytecode, which is then executed by a virtual machine.

          Python Source (.py)
                   │
                   ▼
          Python Interpreter
                   │
      Compiles to Bytecode (.pyc)
                   │
                   ▼
     Python Virtual Machine (PVM)
                   │
         Executes Bytecode
                   │
                   ▼
             Machine Code
                   │
                   ▼
            Operating System
Enter fullscreen mode Exit fullscreen mode

Python Interpreter changes the python code to byte code then Python Virtual machine executes byte code to machine code

Top comments (0)