mirror of
https://github.com/linkedin/school-of-sre
synced 2026-01-09 18:18:03 +00:00
This reverts commit 7aebfc652c.
This commit is contained in:
@@ -73,7 +73,7 @@ We know compilation is involved in all 3 languages we are discussing. Just that
|
||||
|
||||
Those bytecodes are language specific. Python has its own set of bytecode defined (more in `dis` module) and so does java. So naturally, your operating system will not know how to run it. To run this bytecode, we have something called Virtual Machines. Ie: The JVM or the Python VM (CPython, Jython). These so called Virtual Machines are the programs which can read the bytecode and run it on a given operating system. Python has multiple VMs available. Cpython is a python VM implemented in C language, similarly Jython is a Java implementation of python VM. **At the end of the day, what they should be capable of is to understand python language syntax, be able to compile it to bytecode and be able to run that bytecode.** You can implement a python VM in any language! (And people do so, just because it can be done)
|
||||
|
||||
```text
|
||||
```
|
||||
The Operating System
|
||||
|
||||
+------------------------------------+
|
||||
|
||||
@@ -122,7 +122,7 @@ What goes inside the `deco` function might seem complex. Let's try to uncover it
|
||||
|
||||
Let's visualize it for better understanding
|
||||
|
||||
```text
|
||||
```
|
||||
BEFORE function_object (ID: 100)
|
||||
|
||||
"hello_world" +--------------------+
|
||||
|
||||
@@ -36,7 +36,7 @@ b'GET / HTTP/1.1\r\nHost: localhost:65432\r\nConnection: keep-alive\r\nDNT: 1\r\
|
||||
|
||||
Examine closely and the content will look like the HTTP protocol's format. ie:
|
||||
|
||||
```text
|
||||
```
|
||||
HTTP_METHOD URI_PATH HTTP_VERSION
|
||||
HEADERS_SEPARATED_BY_SEPARATOR
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user