How Does a Computer (Physically) Read Code?

  Рет қаралды 20,736

Apeulu

Apeulu

Күн бұрын

[All diagrams and footages in this video belong to their respective owners, otherwise, they are drawn by me]
Music played in this video can be found here: [Grand Apeulian Symphony]
• Grand Apeulian Symphony
I wanted to focus more on the conceptual application and software side of things in the video, so I did not go too deep into how electrical circuits worked. The website JavaTPoint has a great catalog of introductory to advanced lessons on transistors and memory networks, so if that piques your interest, here is the link:
www.javatpoint.com/what-is-a-....
The Python interpreter I mentioned in the video -- CPython -- is publically available on GitHub; these amazing developers include everything from their exact config files to the troubleshooting of errors:
github.com/python/cpython
The word "parsing" is not just exclusive to programming as it may refer to parsing a video into a bunch of PNGs, or parsing audio into frames for analysis. But for the sake of this conversation, parsing in computer processing just means translating high-level code into machine code. The good people over at GeeksforGeeks have made several concise articles about the topic and more advanced processes:
www.geeksforgeeks.org/types-o...
More information about the CMOS inverter configuration and logic systems is detailed in this PDF created by Michigan State University. It includes more in-depth topics such as power consumption and energy transitions:
www.egr.msu.edu/classes/ece41...
I briefly mentioned how input devices like keyboards use conductive pads to transmit signals and scan codes, so here is a more detailed observation of how the hardware exactly works:
www.rubber-keypad.com/How-Doe...
The ALU is a crucial component of the CPU, doing calculations and handling the rational side of things, and to look into how the two work in complement to each other, you can find your answer here in this article:
www.techopedia.com/definition...
Once again, thank you all for your time.

Пікірлер: 76
@crckrbrrs
@crckrbrrs 10 ай бұрын
youtubers with a hundred subs on their way to create the most digestible and amazing content imaginable
@Rudxain
@Rudxain 10 ай бұрын
10:59 bytecode isn't converted to machine-code, because the machine-code is *already there.* This is a subtle detail most people get wrong, which may cause confusion when learning about JIT compilers. An interpreter is just a virtual CPU (a VM component) that puppeteers the real CPU into executing code that the interpreter understands. Despite the name, *interpreters don't translate code.* A JIT compiler uses the CPU to compile fragments of bytecode into m-code that the same CPU could understand, all *on-the-fly,* while deciding which fragments should be interpreted and which should be directly passed to the CPU as m-code. This is why coding an interpreter is easier than coding a static compiler, and *SO MUCH EASIER* than coding a safe-and-fast JIT compiler. Basically, executing bytecode requires executing an interpreter, which temporarily "converts the CPU into another instruction-set" without modifying its hardware, because CPUs are meant to be general-purpose. Unless we want an FPGA which is optimized to directly run Java bytecode, in that case it does modify the hardware, lol
@tatterdemalion898
@tatterdemalion898 9 ай бұрын
Well is there an fpga tgat can be used as a jit, if so, why on earth would that be? *Cries in C code*
@Rudxain
@Rudxain 9 ай бұрын
@@tatterdemalion898 IDK of any real examples, lol. But there's JOP: en.wikipedia.org/wiki/Java_Optimized_Processor
@tatterdemalion898
@tatterdemalion898 9 ай бұрын
@@Rudxain ty for the reply! i've searched online about any real life use cases, but found none. could it be that since java is so high level, many java programmers shy away from developing on microcontrollers, and the hassle that comes with that (psu, debuggers, oscilloscopes, etc) ? I mean all my java dev friends instantly leave the conversation once i dare say anything about such stuff XD
@Rudxain
@Rudxain 9 ай бұрын
@@tatterdemalion898 lmao. Speaking about that, someone had the _"great idea"_ to make HyperText Machine Language (HTML). A low-level lang (like C) but with HTML syntax and quirks (and even more undefined behavior, lol). I also had the idea to use *Javascript to write kernels,* and make it compilable for OSes by defining a "browser API" equivalent to the GNU-libc ABI. In that sense, the runtime-environment would be an OS, instead of Deno/Node/Browser. Needless to say, both are extremely cursed, lol
@h3ftymouse
@h3ftymouse 8 ай бұрын
@@Rudxain there's Jazelle DBX (en.wikipedia.org/wiki/Jazelle), an ARM extension to directly execute JVM bytecode, but it only runs a subset of instructions
@thekillshootable
@thekillshootable 10 ай бұрын
wait, how come you don't have legs?
@wizinity
@wizinity 9 ай бұрын
that aint table legs
@aray2924
@aray2924 8 ай бұрын
He is the table
@johnray854
@johnray854 8 ай бұрын
The "table" is his hips and the "table legs" is his legs
@thebloxxer22
@thebloxxer22 8 ай бұрын
"I AM THE TABLE."
@lexnastin9011
@lexnastin9011 8 ай бұрын
@@johnray854cursed asf
@Ozzymand
@Ozzymand 10 ай бұрын
This is unironically a question I've been having recently but never bothered to actually search for it. So the fact that youtube gave this to me is a godsent. Also I absolutely love the editing style. subbed
@danfelix8
@danfelix8 10 ай бұрын
Quality educational content that delivers it with great humour! Glad to be sub 80 :)
@MelloCello7
@MelloCello7 8 ай бұрын
You need WAY more subs, thank you for being the first online resource to actually make mention of the Control Unit. I've been searching for this part of the operation for years, everyone just talks about Higher Language, Lower Language, Machine Level, but **never** talk about how that code is actually turned into physical work, and therefor change
@Gotinha123
@Gotinha123 10 ай бұрын
pretty cool, always had this question in the back of my head, I don't know why I had not heard the answer before
@overpricedjpegs3140
@overpricedjpegs3140 8 ай бұрын
Short, precise and concise. Great video!
@pipsqeak7104
@pipsqeak7104 9 ай бұрын
400 subscriber channel on the way to make the most fascinating video ive seen in a while
@suhasanimation6193
@suhasanimation6193 10 ай бұрын
Finally found a worthy, underrated channel.
@CallousCoder
@CallousCoder 10 ай бұрын
Depends 1 byte, 2 bytes, 4 bytes or 8 bytes at a time. And computers before the 70s read 12 bits at a time (4 octal). And it reads the data of the data bus every so many click cycles. As easy as that.😅great and fun video! Well done ❤
@romrom83
@romrom83 10 ай бұрын
100th sub :D i hope this video blows up, this is high quality stuff
@RealCatWeekly
@RealCatWeekly 10 ай бұрын
Extremely underrated
@commenteroftruth9790
@commenteroftruth9790 10 ай бұрын
my limited connected information on how computers basically functioned has been solidified further. hazaa. thank you.
@temp3219
@temp3219 9 ай бұрын
Great content, well written and funny as hell. Just one input, I felt the screen was flashing between bright and dark way too much with memes and animations changing constantly. At times I had to look away. but it could be something medical in me.
@Apeulu
@Apeulu 9 ай бұрын
Gotcha, will take this into consideration in my next vids
@arandomperson3933
@arandomperson3933 10 ай бұрын
ty. helped me finally understand what python is
@eightfold3195
@eightfold3195 8 ай бұрын
Splendid video very cool 👍
@astroorbis
@astroorbis 10 ай бұрын
underrated as hell, subscribed
@cyclone761
@cyclone761 9 ай бұрын
Quality educational Video. Good job👍 got a sub :)
@jackdeespadas
@jackdeespadas 9 ай бұрын
Came for the title stayed for the Robotech music.
@Dysonsphere42
@Dysonsphere42 10 ай бұрын
damn this is good, keep making these videos please!
@HisNameIsRobertPaulson01
@HisNameIsRobertPaulson01 9 ай бұрын
Thank you for removing my sadness from me, cool man behind the desk.
@MrNerostart
@MrNerostart 10 ай бұрын
pretty mint, cheers
@orthodoxNPC
@orthodoxNPC 9 ай бұрын
2:53 WHAT!?! this whole time people have been handsignaling "3" to me!
@onil2301
@onil2301 7 ай бұрын
cool video!
@nnnscorpionnn
@nnnscorpionnn 8 ай бұрын
Your videos are really weird. I loved them ❤
@thebloxxer22
@thebloxxer22 8 ай бұрын
Don't forget about the HAL of the OS. (Hardware Abstraction Layer)
@shashankbhosagi
@shashankbhosagi 9 ай бұрын
Begining of another great KZfaq Channel My Friend shared me this video loved it... Want more videos. I subscribed the channel the moment I saw the first 10-15seconds ❤ of the video 😅. Keep posting such videos. Enjoyed it a lot..
@SCOBlade
@SCOBlade 9 ай бұрын
Nice simple explanations, very based video!!
@brianmc1575
@brianmc1575 10 ай бұрын
my man woke up and chose to dropped a absolute based video
@rnd_penguin
@rnd_penguin 9 ай бұрын
better than my ICT teacher.
@raphaeloberhummer5071
@raphaeloberhummer5071 8 ай бұрын
11:03 why did you show here a ping while you were speaking about the python interpretation?
@cozyfog
@cozyfog 9 ай бұрын
fkn lov it man
@ranjeetuikey87
@ranjeetuikey87 9 ай бұрын
U deserv 1m+ views
@CallousCoder
@CallousCoder 10 ай бұрын
Actually the most common gate used is the nand gate. As you can build up any digital switching scheme with just nand gates, as mister Karnaugh found out. In college we had to do that exercise many a times.
@cynical5062
@cynical5062 9 ай бұрын
you can do the same with NOR gates everything can be made with just NOR or NAND because of De Morgan's Laws
@CallousCoder
@CallousCoder 9 ай бұрын
@@cynical5062 yes indeed not the most efficient you need more gates than NANDs but it is possible for sure.
@1emvr
@1emvr 8 ай бұрын
Lol this music is epic as hell
@basicprespectives
@basicprespectives 9 ай бұрын
That random mf in the internet who explains better than the teacher
@improvingguitarist1595
@improvingguitarist1595 10 ай бұрын
thanks, a bit of revision before doing my diploma
@jplemon607
@jplemon607 10 ай бұрын
My sadness is cured!!
@mhm6421
@mhm6421 8 ай бұрын
Yes, C is high level.
@gdimmortal
@gdimmortal 8 ай бұрын
and all this time I was just showing number 4 and 5 in binary to the people and I never knew
@sonurajacrypto
@sonurajacrypto 9 ай бұрын
Meawo 😺
@jeffsun3302
@jeffsun3302 9 ай бұрын
Little suggestion: not enough Gundam stuff, in your next video add MORE GUNDAM
@VinluvAntonHandesbukia
@VinluvAntonHandesbukia 3 ай бұрын
Good video,can you do it without the anime?
@aronvillaluna548
@aronvillaluna548 9 ай бұрын
@a13m34
@a13m34 9 ай бұрын
I need to watch gundam again
@Pawlo370
@Pawlo370 9 ай бұрын
t-this... w-white b-background... I-I... I can't
@spartan1o5
@spartan1o5 10 ай бұрын
Gundam❤ armored core
@retella723
@retella723 9 ай бұрын
Don't upload other video like this or universities will start to go bankrupt
@computeroid6162
@computeroid6162 10 ай бұрын
Dear the one person who disliked this video, Why? Sincerely, A commenter
@computeroid6162
@computeroid6162 10 ай бұрын
Also, +1 sub
@angryman9333
@angryman9333 9 ай бұрын
They never explain why
@hungry_khid1007
@hungry_khid1007 9 ай бұрын
thats for speedrunning , didnt understand more than 40 percent
@thedwmaster1243
@thedwmaster1243 8 ай бұрын
This is clearly Wizard propaganda.
How Binary Works, and the Power of Abstraction
15:17
Josh's Channel
Рет қаралды 295 М.
How do computers read code?
12:01
Frame of Essence
Рет қаралды 3 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 1,9 МЛН
reverse engineering makes you a better programmer (let’s try it out)
13:12
Low Level Learning
Рет қаралды 139 М.
I Made a 32-bit Computer Inside Terraria
15:26
From Scratch
Рет қаралды 3,4 МЛН
how NASA writes space-proof code
6:03
Low Level Learning
Рет қаралды 2,1 МЛН
Everything you SHOULD know about your Computer but don't!
19:59
Dave's Garage
Рет қаралды 444 М.
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 589 М.
How Two People Created Gaming’s Most Complex Simulation System
38:54
ThatGuyGlen
Рет қаралды 1,3 МЛН
EVERYTHING About Learning to Code is F**KED!
13:50
Dorian Develops
Рет қаралды 178 М.
No really, how does Linux run executables?
8:37
Jacob Pradels
Рет қаралды 178 М.
How a Computer Works - from silicon to apps
42:32
Improbable Matter
Рет қаралды 1,2 МЛН
How Machine Language Works
19:48
The 8-Bit Guy
Рет қаралды 940 М.
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 1,9 МЛН