This dude : "I can´t remember how to do this" *Start to create a fucking compiler*
@helker99922 күн бұрын
😂😂😂
@kubilaykabatas2989 ай бұрын
I turned into a man that watches compiler videos for entertainment, props to you for making it so entertaining
@wizardDESTRU8 ай бұрын
ahaha me too wtf
@Fernando-du5uj8 ай бұрын
same
@maelstrom577 ай бұрын
I was looking for something to watch while having dinner and YT recommended this. It'll have to do I guess.
@bArium56567 ай бұрын
Prep less programming tutorials are always funny😂
@danielwang49017 ай бұрын
lol same
@wubsyman57969 ай бұрын
"I'm not gonna use rust because I write memory safe code"... The memory safe code: "Does this have a destructor?... I'm gonna assume it does" (36:30)
@AbsoluteVR9 ай бұрын
🤣
@budgetarms8 ай бұрын
It indeed does have it, an automatically created one. But yeah, .... memory safe code, ...
@Sh4dowOfD34th8 ай бұрын
"I am not gonna use rust because the community is terrible" is a better reason tbh
@AbsoluteVR8 ай бұрын
@@Sh4dowOfD34th what's so wrong about community tho
@kvsbcsljv8 ай бұрын
@@AbsoluteVR I got verbally abused for saying C++ is better
@aldutran9 ай бұрын
No way, Tsoding at home 😮
@jodu9 ай бұрын
That was the first thing I thought too
@simeondermaats9 ай бұрын
it's the Iosevka that does it for me
@bosch53038 ай бұрын
💀
@shiroe07818 ай бұрын
Tsoding without emacs
@djscratchcat4748 ай бұрын
American, windows using Tsoding
@ivandimitrov44109 ай бұрын
"there are two types of programmers - those who have written a compiler and those who haven't" - Terry "The greatest programmer that's ever lived" Davis
@ian562ADF52E9 ай бұрын
I studied CS in the same halls as that man... nay, that God.
@walterdiaz20038 ай бұрын
Would creating a database engine from scratch and sql compliant be considered at that level too?
@doomsday76998 ай бұрын
No, you should also build the operating system and the hardware, transistor by transistor
@mek101whatif78 ай бұрын
I'm trying😭
@TheInspctrcat8 ай бұрын
@@doomsday7699better use lamps
@psycoder-x9 ай бұрын
15:53 There is nothing with RDI register, just (in Linux) the exit codes are specified in the range 0-255 (1 byte). The number 420 lost its most significant bytes and became 164.
@sethbuchanan69378 ай бұрын
Here is a visualization of what you are saying | 00000000 | 0000000 | 00000001 | 10100100 | rdi register (420) | | | | 10100100 | return syscall (164) The return syscall only views the first 8 bits of the 64 bit rdi register
@psycoder-x8 ай бұрын
@@sethbuchanan6937 Thank you!
@DDlol018 ай бұрын
I was looking for this. not high enough^^ have my upvote.
@dtomvan8 ай бұрын
`man 3 exit` states: "The exit() function causes normal process termination and the least significant byte of status (i.e., status & 0xFF) is returned to the parent." Turns out `420 & 0xFF == 164`.
@TheManchineel8 ай бұрын
This, the exit code is char-sized
@woerty1239 ай бұрын
I really appreciate that the sequences, where you are not quite sure are NOT cut out. It's really helpful, to see the thought process in a specific language / context, when you are not sure what to do. For example, which docs to turn to, or how to use intellisense etc. to find the information one needs to solve the problem. Seeing just some finished code explained is not nearly as helpful as this format in my opinion. Very watchable. Thank you!
@ThatNiceDutchGuy8 ай бұрын
True! In fact, I think showing the thought process is the most useful part of these type of videos.
@SoreBrain8 ай бұрын
I don't think I would have finished the video if it was streamlined and cut down
@Ikxi2 ай бұрын
and hella fun
@DudeBroVideos9 ай бұрын
I can tell this channel will go somewhere with commitment, keep up the good work!
@pricesmith34179 ай бұрын
decided to comment to say the same thing.
@doresearchstopwhining9 ай бұрын
totally agree. Maybe a little more editing but I think this guy can explain things well
@happysongs4kyrone9 ай бұрын
@@doresearchstopwhining "a little" is very important here, I kind of like the bare-bones explanation. there are definitely some parts that are unnecessary, and maybe some visualization..s? i don't know. but i hope this guy doesn't become into an over-stimulating mess.
@SanketLakhera9 ай бұрын
Subbed just watching this comment within 1 min into video.
@UmerHA8 ай бұрын
Yes! Please keep going! Looking forward to your next videos
@johnnyserup55008 ай бұрын
I like that you are not afraid of showing your mistakes, because that is how you learn - keep creating more
@SamFisk8 ай бұрын
Mistakes and forgetting easy things. Something I tell newbies is that you don't need to memorise content but rather know that it exists and understand it when you see it again. E.g. what an entry point is, not the exact syntax.
@Ikxi2 ай бұрын
"This is very safe code" "I'll figure it out when it crashes on me" love this guy
@jahjahhhh9 ай бұрын
You make the learning so much more approachable for people with no previous understanding of compilers or asm. This style of teaching where you build a project live while explaining why you make that decision is so comprehensible. Thank you
@imagist.9 ай бұрын
Humanizing programming
@Merilix2Ай бұрын
learning from this one is learning the wrong things.
@jahjahhhhАй бұрын
@@Merilix2 elaborate maybe?
@jordixboy9 ай бұрын
As a self taught software engineer that loves going deep into all the layers this is great introduction! Currently Im building VM's for Chip8 and Gameboy, and writing VMs REALLY helped me to understand how a computer works from a binary level. Feels really genuine that you dont know everything and use Google, really shows how the day to day of a software engineer is.
@coolimdad8 ай бұрын
Google is our best friend
@rubyciide55428 ай бұрын
Damn bro i wish i was like u
@jeremymakenzie74438 ай бұрын
based
@ThaEzioAuditore4 ай бұрын
do you mind sharing a few resources that have helped you in that direction ? I too want to write an emulator
@Hellbending8 ай бұрын
No cap, how do I donate? Never even considered donating to a KZfaqr before but this, but this is the content that’s enjoyable. Not the average hour long video with cuts and edits everywhere, because every time the person has to look something up it’s all secretive and never seen. I got a lot of respect for someone that is probably a little bit nervous because they may be using a language they’re not be 110% comfortable or familiar with, but is well and truly comfortable enough to show what’s going on in their head as they walk through the project and show all the pivots and everything that’s happening. I fucking love it, I got a lot of respect for it and I want to support this kind of “free thought with a goal” style KZfaq videos. If you’ve got some way to accept donations, let me know 🙌💪
@pixeled-yt8 ай бұрын
I'm lucky enough to not need the money. I do this for fun. It's the thought that counts, thanks!
@spaghettiking6538 ай бұрын
@@pixeled-yt Legend, and you're humble too!
@NullPointerDereference8 ай бұрын
You can't donate to smaller channels I think. Kinda sad since usually they are the ones that need it the most.
@Hellbending8 ай бұрын
@@NullPointerDereference I was happy to PayPal or Patreon lol
@anianiiАй бұрын
"We can refactor it later" is so relatable
@theobgshow8 ай бұрын
I came across this and was compelled to sit all the way through it. I love your delivery, your voice and that you haven't edited anything, leaving in your mistakes. Thank you
@spamfilter327 ай бұрын
"It's not good code, but I just wanted to get something working." This is the way to write code. First, make it work. Then, make it optimized.
@dummyhacker31575 ай бұрын
the spirit brooooooo!
@Meknassih5 ай бұрын
One underated aspect of this kind of videos is that making mistakes is actually good to keep in the video instead of editing it out. Really makes it engaging and relatable as if we're doing it together. Great content !
@pricesmith34179 ай бұрын
I whole-heartedly appreciate how you approach communication, have subscribed, and am looking forward to both learning from and seeing the growth of this channel. Stay grounded!
@Ozzymand9 ай бұрын
This is unironically the exact type of video I wanted to see about this topic. A "Let's build X" from start to finish with really great commentary and explanation on the side. Keep it up man
@ESS9827 ай бұрын
“Thats right. We have our first Seg fault”. I fucking died.
@Laz3rs6 ай бұрын
your explanation style is amazing. non-monotone, slightly fast paced. its exactly like how i would explain something. love it
@katchins8 ай бұрын
You made the process of creating a compiler so straightforward and intuitive, I wish I had this video in school during my compiler class!
@impaglg66897 ай бұрын
This is really opening my eyes, thank you man! I hope that you will continue this series, all the best!
@LBCreateSpace2 ай бұрын
This was so helpful to watch. Ty for not cutting out the errors etc. Seeing how you thought through and resolved them really made this much more educational.
@mironbarykin23799 ай бұрын
Just stumbled upon this video thanks to KZfaq's recommendations, and I'm already amazed by the content. Haven't had a chance to watch it all the way through yet, but it's clear that a subscription is well-deserved. Can't wait to dive into the rest of the video!
@alexoverstreet9 ай бұрын
This video is so underrated. Very simple and easy to understand to get you started with the world of compiler development! Thanks 🎉🎉🎉
@urbrighturbright9 ай бұрын
man this is one of the best, most informative videos i've ever seen please continue the series. this one's beyond amazing
@fmailscammer4 ай бұрын
I’ve been missing this kind of content for a while. This is great, keep it up!!
@abhis3khАй бұрын
Didn't know anything about complier but always wanted to know - watching you explaining is really a awesome feeling - good luck 🎉
@ThEldeRS9 ай бұрын
"This is SO safe" has got to be my favorite quote from this video :D
@serg472Ай бұрын
This is a great way of teaching when you are showing your unscripted research, googling, what goes through your head, making and fixing mistakes, starting with a naïve approach, reinventing bicycles, etc. This teaches much more about the subject than just giving a final polished solution.
@OhhBabyATriple9 ай бұрын
Excited to see more of this series. Very good energy- keeping it informative and entertaining. Nice work!
@delicious_seabass9 ай бұрын
I want to correct the record: Rust is sacrilege, C++ is a sin, but C is pure. Come into the light, my child. Embrace C. It loves you, even with all your flaws.
@ncwl.youtube9 ай бұрын
true dat
@KnP_Falco-N9 ай бұрын
Amen
@xKaihatsu8 ай бұрын
We love C!!! 😍😍😍
@lolcat697 ай бұрын
Nuh uh bro, we already have Tsoding for C, let the man C++
@mgaugy7 ай бұрын
And the Lord spake, saying, "First shalt thou develop thy programme. Then, shalt thou compile in C. No more. No less. C shalt be the language thou shalt compile, and the language of the compilation shalt be C. C++ shalt thou not compile, nor either compile thou preprocessing, excepting that thou then proceed to C. Rust is right out. Once the language C, being the proper language, be written, then lobbest thou thy Holy Hand Grenade of Antioch towards thy foe, who, being naughty in My sight, shall snuff it."
@cosmicspd9 ай бұрын
first video ive seen of yours and i love that you go into detail and try to explain stuff the viewer may not understand, it really helped me understand and enjoy the video more. keep it up!
@AkiiiMatcha11 күн бұрын
Thx for making this video, even tho you struggle a lot it just makes the video way more relatable and enjoyable imo. It just shows what programming REALLY is sometimes, that it's not this thing you do sometimes where you write perfect C++ or whatever in like a 20 minute video where it just makes you feel like you are not good enough because you can't do it like that.
@vvshawty2 ай бұрын
i love that this guy simply woke up and decided he wanted to teach us to create a compiler without even researching or scripting the videos, just pure skills and remembering the syntax on the go. thanks for the content!
@starshipx12829 ай бұрын
super cool style with experimentation. Pls keep up. thank you very much : )
@epicflails54716 ай бұрын
Your way of explaining things is really entertaining. I hope to see more content in the future!!
@tanujjain579 ай бұрын
Liked your way of explaining things and showing everything hand on. Keep up the work waiting for new videos of this series!!
@dieter63759 ай бұрын
The exit code returned by the kernel is taken modulo 256, so you'll get the remainder when 420 is divided by 256, which is 164.
@SimGunther9 ай бұрын
Technically the assembler knows the size of each register, so it would just take the 8 bits necessary for the machine code, no modulus needed :)
@dieter63759 ай бұрын
Thanks for the explanation. I think this is in line with what Pixeled said in the video.
@victorshilin93609 ай бұрын
The important difference is that the value 420 is never truncated by the assembler itself, nor the limitation of the rdi register. The 64-bit value gets passed as is to the kernel, and the exit code is indeed taken by modulo 256.
@yagami11609 ай бұрын
i think it just takes dl register not rdi, you can use rdi but linux syscall is still using the lowest part of this register in terms of compatability I suppose
@benoitb.36796 ай бұрын
Dude, this was amazing. Thank you so much. To be honest, I had fallen asleep on the sofa and woke up at 4AM. I put this video on almost at random to go to sleep horizontally on an actual bed. I thought "I hope this dude isn't really annoying" but I ended up staying up to watch it. If you did this basically off the cuff, it's brilliant. If not, it's brilliant. I am *super* excited to watch the next parts. You're helping answer a question I've had for years and doing it wonderfully. Have a great weekend!
@smenigat5 ай бұрын
Sir absolute solid teaching style. Really enjoyable to watch and follow along. Perfect pacing, just the right amount of wit and crisp information. This ist the first video I watched from you, and you already earned a new subscriber. Keep up the amazing work!
@caseyzduniak6326 ай бұрын
Easily one of the best personalities that I've seen in CompSci, keep up the good work!
@hammadbawara8 ай бұрын
Wow, this video is incredible! The way you code is truly impressive. Your approach to understanding how things work reminds me of myself. I often worry about forgetting syntax, but you've reassured me that it's normal to forget syntax.
@florianvanbondoc35399 ай бұрын
the most relatable think is when you wrestle with the c++ language to get it to do what you want
@loueymnaja16966 ай бұрын
the content is enjoyable thank you man I checked your profile and I think that you have a bright future, keep it up ( I finished all straight to the end )
@LordZedritsch9 ай бұрын
Georgeus video! I would love to follow along with this series
@imbadatcod72088 ай бұрын
Man you deserve way more subscribers, I am glad I got this recommended and found you!!
@Bobbias8 ай бұрын
Oh, it's nice to see someone else making long-form coding videos like this. There are far too few people making this sort of content. I really hope you continue.
@indierusty9 ай бұрын
Amazing. Never seen a devlog explained this good.
@abrudner9 ай бұрын
I’m really looking forward to the next instance of this. Keep it up!
@shavar674 ай бұрын
This was very entertaining, now I want to try writing my own compiler for memes. Keep up the good work, I’m subbing for sure.
@Zenoandturtle6 ай бұрын
It just came up on my feed and I could not resist. This is what I am talking about! This is the engine room of the ocean liner (metaphorically speaking) Great presentation.
@serhiicho6 ай бұрын
I’ve never thought that watching a programming tutorial can be entertaining 👍 Thank you for that
@blkgames14479 ай бұрын
I never thought that I would enjoy watching a 'creating compiler' video. Good content
@chikita51108 ай бұрын
7:52 "who isn't in 64bits in 2023 ?" *embedded developer* : hold my beer ! (Really good video btw, I just discovered and I subscribed !)
@DevNugget9 ай бұрын
I love this! I started a project similar to this a while back but never got anywhere. Your ability to explain something is incredible! Can’t wait to see how this goes.
@kenan23868 ай бұрын
same
@jetison3339 ай бұрын
Awesome video! Really hope you continue with this series.
@darrenfinch19358 ай бұрын
Great video bro, I’m looking forward to seeing the next one!
@haroldcruz85502 ай бұрын
I wish you more success. You and Tsoding keeps me motivated. Thank you
@devbites778 ай бұрын
Fascinating stuff. Can't wait for the next episodes.
@zzz-hk9zq9 ай бұрын
This is some top tier tutorial. You explain everything so well....
@SamSarwat906 ай бұрын
You have a good vibe dude. Subscribed! Keep it rolling
@carbonn72807 ай бұрын
Hey Pixeled, thank you for this video about Compilers. At around 17:00 when dealing with your program exit code, you put 420 into rdi and get 164 in return. That is totally normal and It has nothing to do with registers, that is just how exit(2) works, the exit code is masked with 0xFF so the exit value cannot exceed 255 : " The value status & 0xFF is returned to the parent process as the process's exit status". Cheers ! o/
@ruinenlust_9 ай бұрын
Absolutely love this style! Keep it up!
@chrismuga9 ай бұрын
Wow. Yes, this is the kind of content I need in my feed. Good stuff!
@mikumikudice4 ай бұрын
I may have felt in love finally, someone to talk about compiler design
@caio-jl6qw9 ай бұрын
This is not only an educational video, but also an entertaining one
@tomryan76794 ай бұрын
Don’t know anything about C++, assembly or compilers but watched this from start to finish. Great video
@tambow445 күн бұрын
That was super cool to see & very inspiring, my guy. Looking forward to the rest!! glhf
@joshjkk-wt6py9 ай бұрын
I'm also writing my own compiler from scratch, I'll be looking forward to this series!
@kuro48418 ай бұрын
please keep the one-take style videos like this, it really helps a lot like many other people already stated.
@MaskedEngineer-kj5kt18 күн бұрын
Man this video is so fun and useful at the same time
@minimumt3n2048 ай бұрын
Its like youtube knew I have a compiler class coming up soon. Thank you!
@jimmyporter89419 ай бұрын
Exit codes are limited to 8 bits by the POSIX standard.
@TronNerd829 ай бұрын
Keep up the good work! You've earned yourself another subscriber.
@quanta83825 ай бұрын
I love the chaos of all this...fumbling to read a file with the end goal of writing a compiler is majestic haha
@ya3rub1017 ай бұрын
a new hidden gem just found !, keep up... your content is really unique and awesome !!
@akashpoudel8 ай бұрын
You've made me understand and connect the dots about how compiling and linking works more than my Compiler Design Course at University which I studied for 6 months 😭
@neshkeev9 ай бұрын
Thank you, it's extremely informative. Keep on!
@TheInspctrcat8 ай бұрын
Fun and simple video explaining such complicated theme
@joshman10197 ай бұрын
Thank you so much for doing something actually interesting, as opposed to mind numbing web dev tutorials. I’m a mid level programmer by day and looking to do more low level stuff as a hobby. I really liked that you didn’t cut the video, and did some of your research on the fly. It was like hanging out with a buddy. Fun video!
@tahahuraibb58339 ай бұрын
Finally! A C++ Video that isn't a tutorial. Please continue this series, it will prove to be extremely useful.
@markwebcraft8 ай бұрын
This is exactly my programming style LOL. I love this, instant subscribe. Keep up the good videos.
@mananbhardwaj397622 күн бұрын
this guy keeps giving me Steven he vibes. And please don't stop. don't be discouraged by the number of subs or views just do what you are doing. This is after all god's work
@talonhackbarth76524 ай бұрын
Omg you have no idea how happy it made me to see you forgot the argc argv stuff. I literally always forget that, LOL
@lifeofsanjai8 ай бұрын
thanks for making these fun && informative videos mate!
@savvy58178 ай бұрын
the mistakes were golden real time problem solving, very educational and very intentional
@Matt234888 ай бұрын
> KZfaqr I've never heard of > "Let's Create a Compiler" > "part 1" > over 1hr long *sighs* fine... In all seriousness, this does interest me so I'm glad I got the recommendation for it!
@FishReporting9 ай бұрын
This was great! Keep at it!
@sad-cz4wb8 ай бұрын
Love your work, keep going!
@jollyjerr9 ай бұрын
Nice work! This is really great
@steefvanwinkel3 ай бұрын
I love this guy. So entertaining, even for someone with not much more than a couple of CS101s... Thanks! 🙏 🙏 🙏
@joaomachado91059 ай бұрын
very nice viedo, not just trowing information at you but actually showing how one can find that information! thanks a lot
@francislalhmuakliana7668 ай бұрын
I actually sit through the whole video. Not gonna lie, I enjoy every single seconds of it and looking forward to the whole series...
@rohitdhas44389 ай бұрын
really cool stuff! loved it
@cosmiclattemusic13 күн бұрын
my gf watch anime and tv shows me: "Let's Create a Compiler" idgaf, I'm enjoying this so much
@only4christ12 күн бұрын
Almost my whole class of computer science watch anime and me 24/7 I am watching let's create a compiler while creating a new language in my native laguage