How Python works under the hood 👩‍💻 #coding #programmer #softwareengineer #technology #coder

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I love shorts that don't end with "and this is why"

aledoD
Автор

1. Lexer/Tokeniser: transforms the program into a collection of tokens

2. Parser: Transforms the output of the Lexer/Tokeniser into to AST(abstract syntax tree)

3. Compiler: converts the AST into bytecode(a set of basic instructions represented in binary format)

4. The python virtual machine: it reads the bytecode and executes it

MISK
Автор

The simpler the language, the more complex it is under the hood

zuja
Автор

Your explanations are always on point. Thanks for sharing your knowledge!

MyCodingDiary
Автор

I used to only use python but have been learning C. I think it is something everyone should do now as working with C has given me a deeper understanding of not how code works but why it works.

justsomebeanz
Автор

So basically, python pushes java's byte code compilation concept to the runtime

Dev-Siri
Автор

The complexity of complex behaviour always has to be somewhere. If it is simple on the surface, it must be complex under the hood. And if you want it to be simple under the hood, it becomes more complex on the surface.

Lampe
Автор

Wow your explanation is making python more easy, that's why I follow you

southafricacppaarl
Автор

For such a simple language it can get pretty complicated? Of course. That’s the drawback for having simple but rich languages. You move the problem to the lower level of abstraction.

If you think about it, complex languages like C is way easier to convert to assembly code. The only reason why C compilers are so complicated is because of the multiple passes at optimisation and handling which out of the countless target architectures and OSes to build for.

blablabla
Автор

What you called interpreter is a lexer/parser. The interpreter is the program that executes the byte code on the fly.

xtay
Автор

I have programmed since 1999. It's only in 2024 I finally decided to learn Python. The reason I never did earlier, even though I've used it, is because the syntax is awful and whitespace matters which I find intrusively annoying when I code. But that aside it's so useful it's impossible to ignore as a coder in the AI age.

tehfn
Автор

Well, if my years working with several programming languages and building many sorts of middleware and end-user software have taught me something, it's that the simpler a software solution looks and feels to use, the more complex and sophisticated i probably is inside.

TheDragShot
Автор

Fun fact: python interpreter in written in C language

t.suraj_
Автор

Understanding of Compiler Design is also necessary for writing optimized code

ankanbrahmachary
Автор

I came across an Indian YouTuber creating his own programming language using JavaScript and it blew my mind to know how some concepts like Lexer and Abstract Syntax Tree works. 💯

dakshbhatnagar
Автор

The more “simple” something is, the more stuff is going under the hood.

Angeloflight
Автор

I love seeing videos like this where you can learn. Keep up the great work.

delord.green
Автор

"optimizes it even further" 💀

erpetek
Автор

I’ve embedded the Python interpreter for scripting a bot’s extensions years ago and I forgot how I did it

rolandmetivier
Автор

it annoys me when people say they don't like python because it has dynamic typing, even though in python you can choose whether you want to use test: str = 'string' or test = 'string'

mr_minepiesek
join shbcf.ru