🤓 Actually, undefined behavior is not the same thing as unspecified behavior (also known as mplementation defined behavior). For example, "x = f(a) + g(a)" is implementation-defined behavior, because it is up to the compiler whether to evaluate f(a) or g(a) first.
I can be more pedantic: unspecified behaviour means you just have to do something vaguely sensible, implementation-defined behaviour means you also have to *document* what the behaviour is (e.g. where the compiler searches for header files, what type of integer a bitfield is, and what right-shifting negative numbers does)
I was like damn whats -funroll loops that sounds fun then I realised that its -f unroll loops and not funroll and remembered that C devs arent allowed to have fun
Compiler: You want me to interpret that float* as a *(size_t**(int([])()())? No problem, I'll just give you a warning but you what your are doing Right.
@@matyasmarkkovacs8336 I began reading a book a while a go (never finished it), it was called Effective C, the writer said C is broken and therefore it is good for teaching the programmer how to be responsible with the code. I'll probably get back to reading that book sometime.
Can we get B slander next but its just an ancient tomb with ALGOL, JOVIAL, SNOBOL, Stimula, JOSS, BCPL, B, and BLISS. And the music is "Hurrian Hymn no6".
0:48 - 0:53 hit home. I am TRYING to make a basic game for PlayStation 1 (don't ask why), and need to work with 25+ year-old tools on a 32 bit WinXP VM. The entirety of the SDK is written in C, with next to no abstraction. I can't tell you the "YEAH" I let out when my code first ran. And the "FUCK" 10 seconds later when memory started to leak like a broken toilet. I love C.
I just wanted to let you know that I was considering buying the book "Programming Rust" over "The C++ Programming Language", but you changed my mind. I'm now learning C++ and I love it. Huge thanks to the majority of Rust evangelists for being super annoying. ❤
@@damin1916 Well, it's true! No Boilerplate presented Rust well but he alone simply wasn't enough. If these annoying Rust evangelists would just start being a lot moe bearable, I think I would've taken the Rust pill.
you could do haskell slander, Cobol slander, ASM slander, or general esolang slander(brain, hexagony, malbodge, chicken, apl*, etc.). The esolangs should probably be combined though. just an idea. * I know that apl is not an esolang but it would be hard to make a whole video on it.
@Ramanuj Sarkar they all have pretty similar concepts to be honest... And besides that, for the most part they are all so simple that there isn't much to talk about each
Learn C the Hard Way by Zed Shaw is actually a pretty solid book. He basically opens by throwing shade at most C developers and saying that C is trash and you shouldn't use it. The whole purpose behind the book using C is that C is broken and awful and so you need to know how to write code defensively to keep it from breaking. He also has the reader break their own code as thoroughly and creatively as possible as an exercise, and oh, man. The documentation. So much documentation. I hated it lol I kinda like C though. It's simple, but you need to know at least a bit about how it works. Structs are agony. Pointers aren't so bad, though. You can also work some absolute magic with it if you know what you're doing.
Maybe I’m biased because I write C for fun, but Zed Shaw is full of crap when talking about C. C is perfect in the context it’s in- high performance I/O. It’s all about context. He made a big stink about K&R being “bad for learning C” despite it outlining clearly what C is capable of, just because it doesn’t teach “modern developing practices”, which wasn’t the point to begin with. Yes, C is rarely the best choice for modern application development, but acting like modern application development is the golden standard for the *entire field* of programming (Embedded? Systems engineering? Heck, *retro game engines*?) Not every language needs to, or even *should*, require an understanding of Platonic philosophy just to understand its standard library. His main claim to fame is his Python book, which I can’t speak for, but something tells me if you go to C expecting to write Machine Learning algorithms and web apps, you’re going to have an *awful* time. Edit to add: i’m also weird because C documentation makes me happy. It’s all 1 level. Search for function you want, use function you want. None of this “before you can interpolate a string, you must first understand the One True String” nonsense that every OOP language seems to assert. Means I end up liking structs a lot more than most >_>
Yeah that sounds like a bad book. Just like any other programming language it has flaws, sure. You don't need to write code defensively to keep it from breaking. The point of C is that it assumes you know what you're doing. If you don't know what you're doing and your program doesn't work, whose fault is it ? Yours.
@@Dther99 I guess my perspective is a bit different. I don't really care about Shaw's opinions. The author and the author's works are seperate things, and from what I've seen he really is a bit of a douche. He does kinda push his way of learning on you (what tutorial book authors don't?), but if you use things like K&R to fill in the gaps in his explanations, which he expects, it really is a well put-together book, although the pdf is broken in a weird way that shouldn't have happened. Metadata things. He spends a handful of chapters covering the basics, says, "Learn syntax, here's a chart, I'll explain better later," then dives into brainmelt for anyone not familiar with C and how it works. I also _really_ like his general presentation style. Runnable code, explanation, exercises while practicing DRY unless it's practical not to. His python book spends several chapters having you print things for example. He taught me to never copy-paste when learning (type it in by hand, don't use autocomplete), and that's been valuable. While K&R is excellent for learning what C can do, does it teach you makefiles and debug macros while emphasizing readability and stability? It doesn't include information about gdb or valgrind either, which are basically mandatory for modern C dev. Enough of justifying a book lol
@@totally_not_a_bot When you put it that way, now I’m considering giving his books a shot. I know a lot about POSIX and gcc by futsing around, but compiling for Windows sounds scary and confusing. Maybe his teaching style will finally break through to me. Thanks for expanding my horizons :P
I'm trying to get into C after using C++ for a few months. It's fun in the way that digging through mud as a kid was fun. You may love it in the moment, but not long after you won't want to do it anymore. The only difference is that with C you realize how efficieny you could have been by just sticking with C++.
I had a shower thought: Undefined behavior is what happens when you do the Schrodinger's Cat experiment. So the entire universe runs on undefined behavior at the quantum level. #ChangeMyMind
I had a breakfast when I started watching this video. I knew that there would be Muscle-Man with some random joke about C. I wanted to write a comment with time code on him, something like: "Linus Torvalds on his way to explain why C++ is a garbaj language and all OS kernels must be written only on pure C". When I saw what actually you wrote in that part of video, I spitted out my cereal! XD
Please, do MATLAB slander; I had a hell of a hard time with this shit during my undergrad research, the post-doc from the lab was the only person who knew to solve the problems an she was never around to help me and the other hopeless students. Did I tell you that I hate MATLAB? Yeah. Another suggestion: Data Science Stack Slander - R, Python, Julia, and SQL.
Julia is also excruciating because it has a lot of features that are very good but then put together it's gross. No static types -> hope you enjoy compiling every piece of code through LLVM before you run it!
C is old but gold. Still one of the best languages for good performance and speed. It's mid level, so by learning C, it helps you to better understand how computers actually work.
@@circuit10 It is practical, but you have to learn how to use it properly. C is almost low level and there's no garbage collection, so buffer overflow, segmentation fault, freeing up memory from the heap, etc is the programmer's responsibility, not the compiler's. C is something like a really fancy assembler, it's fast, efficient, but you have more things to pay attention. There's a reason why it's popular and it's the grandfather of lots of other programming languages like, C++, C#, Python, Java, etc.
@@matyasmarkkovacs8336 I know how C works, the fact that you have to manually deal with memory is a disadvantage for when you just want to make something that works. Garbage collection is much more friendly for humans to use as it much better matches how we usually think about things, however there are disadvantages with performance etc. too. I didn't say that C is impractical overall, it's great when you need to do something low level, or performance critical, or when only a C compiler is available, or learn about how memory and CPUs work, but it's just not a great fit for every single application. It's true that it introduced a lot of things that other languages use because it is quite good compared to other languages from its time but it's also not perfect
@@circuit10 Well, the disadvantages could be advantages as well. Dealing with lower level operations like memory management is one of the best things what makes C so powerful. Of course this is not needed for every programming cases, but it's useful to know.
@@lawrencedoliveiro9104 but the problem of choice, you should pick one, and all of them have shortcomings, no automatic updating and retrieving of stuff for any platform like maven for example A lot has happened in 6 months tho. I'm now more ok with them
we need - C# slander - Go slander - React slander - LLVM slander - ASM slander - Haskell slander - FORTRAN slander - Julia slander - MatLab slander - R slander - Web Development Slander [ CSS HTML JS ] - G slander all i could think of
its been a sec since i used asm, and correct me if i'm wrong, but isn't it impossible to directly mov from one memory location to another? pretty sure it'd be: mov eax, 0x8271 mov 0x0042, eax is unsafe
@@nibbletrinnal2289 x86 has no *explicit* M2M instructions. This is because there is only MOD, REG, and REG/MEM in the ModR/M encoding. So you can have two regs or one reg and one mem. Other archs like the 68k and S/360 have M2M instructions. Also, 🤓 Ackshually the code would be mov eax, dword ptr [0x0042] mov dword ptr [0x8271], eax because x86 is dest, src and 0x0042 and 0x8271 are interpreted as immediate instead of memory addresses.🤓
On softcore CPU I'm working its totally OK to dereference null pointer because memory starts from zero address. In fact, simplest "hello world" will store string exactly from addr 0. Oh, and no segfaults because no MMU and no OS. So happy!
🤓 Actually, undefined behavior is not the same thing as unspecified behavior (also known as mplementation defined behavior). For example, "x = f(a) + g(a)" is implementation-defined behavior, because it is up to the compiler whether to evaluate f(a) or g(a) first.
I can be more pedantic:
unspecified behaviour means you just have to do something vaguely sensible,
implementation-defined behaviour means you also have to *document* what the behaviour is (e.g. where the compiler searches for header files, what type of integer a bitfield is, and what right-shifting negative numbers does)
just why evaluate g(a) first, when f(a) is first in order?
maybe it's time to get some x = b(itches)
(jk love ya)
@@georgecop9538 g(a) may need more stack and/or registers for evaluation. So calculating it first may save some space and run faster.
@@Hauketal Thanks. In that case it make sense, but sometimes f(a) + g(a) != f(a) + g(a)
I was like damn whats -funroll loops that sounds fun then I realised that its -f unroll loops and not funroll and remembered that C devs arent allowed to have fun
I mean, you can have fun in choosing a creative way to shoot yourself in a foot
`-Wall` is actually doing what it sounds like
-fun-safe-math-optimizations
I love maths optimisations! They're fun and safe!
as a C dev, i can confirm that i am not allowed to have fun
@@m4kulatura my condolences and thank you for your service o7
We need Haskell slander
I just said that. I AGREE.
This
I'm gonna guess the phrase "a monad is just a monoid in the category of endofunctors" is gonna show up
@@nanamacapagal8342 look at the next upcoming premier on his channel.
Its not possible. Haskell is perfect.
As a C programmer 2 hours before the premiere not even knowing what's in the video I can confirm this is true
That C feeling when you can write unsafe code in just a few lines
Just learn how to make it safe. 😉
Safety depends on the programmer, not on the language itself.
Compiler: You want me to interpret that float* as a *(size_t**(int([])()())? No problem, I'll just give you a warning but you what your are doing Right.
@@matyasmarkkovacs8336 I began reading a book a while a go (never finished it), it was called Effective C, the writer said C is broken and therefore it is good for teaching the programmer how to be responsible with the code. I'll probably get back to reading that book sometime.
"C devs when they get old and die". Pure gold
Can we get B slander next but its just an ancient tomb with ALGOL, JOVIAL, SNOBOL, Stimula, JOSS, BCPL, B, and BLISS. And the music is "Hurrian Hymn no6".
Wasn't that the oldest song known to mankind?
@Jul W its because you could post comments while waiting for the premier for a few hours before
@@rz2374 [REDACTED]
@@Speedwagon-ej1fe dont tell them the truth we need to keep the secrets
@@rz2374 I see.
If you run your C code for the first time and don't get a segfault you're doing something wrong
I am always suspicious when that happens. I need a segfault shot to feel normal.
Nothing feels better than writing an entire complex program in C and it working first try with no bugs
C when it sees another language that suppose to replace C: "I will bury you all and dance on your grave"
AW HECK YEAH! I’m ready to get roasted for using a boomer language, BRING IT ON! C STRONK! YOUR LANGUAGES ARE WRITTEN IN MY LANGUAGE
Same
okay, but can you try not to make unsafe code within 5 minutes?
@@intelchip_x86 are you assuming I didn't remake the entire standard library with memory safety guarantees?
@@intelchip_x86 pfft, my code is only unsafe if anyone else ever has to- oh no
0:48 - 0:53 hit home.
I am TRYING to make a basic game for PlayStation 1 (don't ask why), and need to work with 25+ year-old tools on a 32 bit WinXP VM.
The entirety of the SDK is written in C, with next to no abstraction. I can't tell you the "YEAH" I let out when my code first ran. And the "FUCK" 10 seconds later when memory started to leak like a broken toilet.
I love C.
It's good to see that you're having fun.
I tried doing it in mips asm 😂
I've been writing C for 8 years. I endorse and support this video as truth.
it seems the tile should be "c slander" , not "math majors be like"
Good catch
@@thestemgamer3346 happy to help!
I just wanted to let you know that I was considering buying the book "Programming Rust" over "The C++ Programming Language", but you changed my mind.
I'm now learning C++ and I love it.
Huge thanks to the majority of Rust evangelists for being super annoying.
❤
haha
@@damin1916 Well, it's true! No Boilerplate presented Rust well but he alone simply wasn't enough. If these annoying Rust evangelists would just start being a lot moe bearable, I think I would've taken the Rust pill.
Jarvis, track his IP and fire an ICBM over his home.
@@thestemgamer3346 Again, thank you very much for convincing me to not learn Rust ❤
@@thestemgamer3346 vlang slander.
you'll definitely love that language.
it's Go + Rust combined
you could do haskell slander, Cobol slander, ASM slander, or general esolang slander(brain, hexagony, malbodge, chicken, apl*, etc.). The esolangs should probably be combined though. just an idea.
* I know that apl is not an esolang but it would be hard to make a whole video on it.
@Ramanuj Sarkar they all have pretty similar concepts to be honest... And besides that, for the most part they are all so simple that there isn't much to talk about each
esolang fans explaining
why its actually not useless learning what ++[
MASM programmers when they CALL FWORD PTR [yourMom]
Assembly slander
Learn C the Hard Way by Zed Shaw is actually a pretty solid book. He basically opens by throwing shade at most C developers and saying that C is trash and you shouldn't use it. The whole purpose behind the book using C is that C is broken and awful and so you need to know how to write code defensively to keep it from breaking. He also has the reader break their own code as thoroughly and creatively as possible as an exercise, and oh, man. The documentation. So much documentation. I hated it lol
I kinda like C though. It's simple, but you need to know at least a bit about how it works. Structs are agony. Pointers aren't so bad, though. You can also work some absolute magic with it if you know what you're doing.
Maybe I’m biased because I write C for fun, but Zed Shaw is full of crap when talking about C. C is perfect in the context it’s in- high performance I/O. It’s all about context. He made a big stink about K&R being “bad for learning C” despite it outlining clearly what C is capable of, just because it doesn’t teach “modern developing practices”, which wasn’t the point to begin with. Yes, C is rarely the best choice for modern application development, but acting like modern application development is the golden standard for the *entire field* of programming (Embedded? Systems engineering? Heck, *retro game engines*?) Not every language needs to, or even *should*, require an understanding of Platonic philosophy just to understand its standard library.
His main claim to fame is his Python book, which I can’t speak for, but something tells me if you go to C expecting to write Machine Learning algorithms and web apps, you’re going to have an *awful* time.
Edit to add: i’m also weird because C documentation makes me happy. It’s all 1 level. Search for function you want, use function you want. None of this “before you can interpolate a string, you must first understand the One True String” nonsense that every OOP language seems to assert. Means I end up liking structs a lot more than most >_>
Yeah that sounds like a bad book. Just like any other programming language it has flaws, sure. You don't need to write code defensively to keep it from breaking. The point of C is that it assumes you know what you're doing. If you don't know what you're doing and your program doesn't work, whose fault is it ? Yours.
@@Dther99 I guess my perspective is a bit different. I don't really care about Shaw's opinions. The author and the author's works are seperate things, and from what I've seen he really is a bit of a douche. He does kinda push his way of learning on you (what tutorial book authors don't?), but if you use things like K&R to fill in the gaps in his explanations, which he expects, it really is a well put-together book, although the pdf is broken in a weird way that shouldn't have happened. Metadata things.
He spends a handful of chapters covering the basics, says, "Learn syntax, here's a chart, I'll explain better later," then dives into brainmelt for anyone not familiar with C and how it works. I also _really_ like his general presentation style. Runnable code, explanation, exercises while practicing DRY unless it's practical not to. His python book spends several chapters having you print things for example. He taught me to never copy-paste when learning (type it in by hand, don't use autocomplete), and that's been valuable.
While K&R is excellent for learning what C can do, does it teach you makefiles and debug macros while emphasizing readability and stability? It doesn't include information about gdb or valgrind either, which are basically mandatory for modern C dev.
Enough of justifying a book lol
@@flavorlessquark8614 exactly. My code is fine, it’s the environment that sucks :P
@@totally_not_a_bot When you put it that way, now I’m considering giving his books a shot. I know a lot about POSIX and gcc by futsing around, but compiling for Windows sounds scary and confusing. Maybe his teaching style will finally break through to me. Thanks for expanding my horizons :P
As a person who hasn't wrote a single line of code in his life I can confirm this is all true.
how the hell did you get here
@@nibbletrinnal2289 Internet
Im not even a coder
Im an electrical engineers and the company just forced me to write every embedded code in C and fortrans
But i still hate java
They made you learn fortran for electrical engineering? I just thought that they'd make you learn c and nothing else.
More than python?
@@daizdamien1409 i studied python at university, never used it since....
@@pham3383 there is micropython. But I wasn't a big fan of it, it's simply the wrong tool.
@@daizdamien1409 Python is the opposite of Java, so if he hates Java why would he hate Python? Makes no sense.
I'm trying to get into C after using C++ for a few months. It's fun in the way that digging through mud as a kid was fun. You may love it in the moment, but not long after you won't want to do it anymore. The only difference is that with C you realize how efficieny you could have been by just sticking with C++.
If you drop your computer into the C it might Rust.
I had a shower thought: Undefined behavior is what happens when you do the Schrodinger's Cat experiment. So the entire universe runs on undefined behavior at the quantum level. #ChangeMyMind
I had a breakfast when I started watching this video. I knew that there would be Muscle-Man with some random joke about C. I wanted to write a comment with time code on him, something like: "Linus Torvalds on his way to explain why C++ is a garbaj language and all OS kernels must be written only on pure C". When I saw what actually you wrote in that part of video, I spitted out my cereal! XD
Please, do MATLAB slander; I had a hell of a hard time with this shit during my undergrad research, the post-doc from the lab was the only person who knew to solve the problems an she was never around to help me and the other hopeless students.
Did I tell you that I hate MATLAB? Yeah.
Another suggestion: Data Science Stack Slander - R, Python, Julia, and SQL.
Julia is also excruciating because it has a lot of features that are very good but then put together it's gross. No static types -> hope you enjoy compiling every piece of code through LLVM before you run it!
I always feel dirty whenever I use Matlab lol
@@ramorion1 same. It's a stupid language for stupid nerds.
YES R SLANDER LESSGOO
Second the MATLAB slander, just imagine starting indexes at 1
Embedded programmer here, can confirm this is all true except the Java part. It's still a pain in the ass of a language
@randomguy9777 it's not really on the radar anytime soon. C is still king and an industry standard
@randomguy9777 yes, but it's a looong road there
as a super antirust proponent, your videos are some of the funniest programming memes I've ever seen
Why antirust?
@@Hadkek why::anti
@Accela mid language overall plus it serves no real purpose
i remember i was having ptsd after going on a 5 month course on C. Which was 5 years ago and still having the haunting nightmares daily.
Dissapointed that there was no double free shennanigans but was very satisfied nonetheless. Keep 'em coming!
When your C program compiles and runs : 😎
When it doesn't stop running : 😳
C devs explaining all the functions in stdio.h and why you shouldn't use half of them for security reasons
C: You can't do that, it's undefined behavior
Assembly: COWABUNGA IT IS
I started coding in C recently and found this video funny.
You achieved funny.
Funny has been achieved
I'd love an Assembly slander
there's a lot to poke at there
next do "elliptic partial differential equations on pseudo-hermitian manifolds researchers slander"
or "Partial Differential Equations on Semi-Riemannian manifolds with 14D Spinors researcher slander"
or just _"Geometric Unity_ slander"
0:13 relatable, and it hurts so bad
C is old but gold.
Still one of the best languages for good performance and speed. It's mid level, so by learning C, it helps you to better understand how computers actually work.
True but there are far too many disadvantages to make it practical for most use cases
@@circuit10 It is practical, but you have to learn how to use it properly.
C is almost low level and there's no garbage collection, so buffer overflow, segmentation fault, freeing up memory from the heap, etc is the programmer's responsibility, not the compiler's. C is something like a really fancy assembler, it's fast, efficient, but you have more things to pay attention. There's a reason why it's popular and it's the grandfather of lots of other programming languages like, C++, C#, Python, Java, etc.
@@matyasmarkkovacs8336 I know how C works, the fact that you have to manually deal with memory is a disadvantage for when you just want to make something that works. Garbage collection is much more friendly for humans to use as it much better matches how we usually think about things, however there are disadvantages with performance etc. too. I didn't say that C is impractical overall, it's great when you need to do something low level, or performance critical, or when only a C compiler is available, or learn about how memory and CPUs work, but it's just not a great fit for every single application. It's true that it introduced a lot of things that other languages use because it is quite good compared to other languages from its time but it's also not perfect
@@circuit10 Well, the disadvantages could be advantages as well. Dealing with lower level operations like memory management is one of the best things what makes C so powerful. Of course this is not needed for every programming cases, but it's useful to know.
You forgot when a c programmer forgot to free the memory after malloc
That undefined behavior line at 0:10 he got from a book, I'm 99% sure.
Happy 50th birthyear, C!
There is no better language than C language.
Fight me Rustians!
Yesterday I was working on a project, got a segfault, and immediately removed every change I made
My python a**: "I like your funny words magic man"
I'm a C developer and can't go 2 min. without bashing C++ for their classes.
you know its bad when the nerd segment has zero leverage
The first time I got a segfault without the slightest clue what that is, C became my biggest enemy. Never saw a less meaningful error message.
I love how it’s almost the same as the c++ one
C and Rust are fine together, and Rust can just replace C++ in my heart.
I remember taking a java class when i was a kid and didnt know anything about computers. Hated it then, hate it now.
We need C# slander
I made it
th-cam.com/video/FB2N9tMbFAk/w-d-xo.html
We need it
superb video, what's the name of the song?
I sometimes manage to segfault the Python interpreter by just writing bad Python 😆
0:22 I believe you forgot to capital the 'S' there.
This is it! We're living through the best of history being made!
i hate how the target isn't centered in the middle of the C
At first glance, I thought it would be a joke if C-- exist. But, it exists and not even a joke.
Ah yes my favourite song, -Wonder -Wall
"Embedded Devs on their way to write in Java instead"
I started programming for embedded devices in c++ and now moved to rust
I'd really wish if I'd I could read all the text, without having to pause 90% of the time it switches to something new
Linus Torvalds didn’t have enough muscles
"the person who made it" lmao
Do Chicken slander next
yes that is a programming language
The semi colon though 💀
Compiling LLVM is so ryt. I lost my laptop battery.
0:32 is especially hilarious as I am attempting to write a shell
The lack of a common build system and common dependency management is a big issue with c and c++. Otherwise i really like c
All build systems support C. Use any one.
@@lawrencedoliveiro9104 but the problem of choice, you should pick one, and all of them have shortcomings, no automatic updating and retrieving of stuff for any platform like maven for example
A lot has happened in 6 months tho. I'm now more ok with them
@@santiblocks Choose one that does, then.
alternate title : 1 minute of rust vs c
we need
- C# slander
- Go slander
- React slander
- LLVM slander
- ASM slander
- Haskell slander
- FORTRAN slander
- Julia slander
- MatLab slander
- R slander
- Web Development Slander [ CSS HTML JS ]
- G slander
all i could think of
actual real definition of print in c
no.
Assembly slander next?
I like watching this without understanding nothing :)
I want scratch slander.
Running a makefile and getting 42 type safety errors from GCC lol
Can't wait for C# slander.
Watching Java slander and pretending the first letter of each method is a capital letter just doesn't cut it anymore
Everything in this video is true, and C is still my favorite language
i actually got a segfault in rust trying to ffi with c, so that was fun
ASM slander be like:
mov 0x8271, 0x0042 is unsafe
its been a sec since i used asm, and correct me if i'm wrong, but isn't it impossible to directly mov from one memory location to another? pretty sure it'd be:
mov eax, 0x8271
mov 0x0042, eax is unsafe
@@nibbletrinnal2289 x86 has no *explicit* M2M instructions. This is because there is only MOD, REG, and REG/MEM in the ModR/M encoding. So you can have two regs or one reg and one mem. Other archs like the 68k and S/360 have M2M instructions.
Also, 🤓 Ackshually the code would be mov eax, dword ptr [0x0042] mov dword ptr [0x8271], eax because x86 is dest, src and 0x0042 and 0x8271 are interpreted as immediate instead of memory addresses.🤓
$php slander amirite
Pls, ASM slander ... Let's forget for a moment which lang is the better C and feel how our universe is breathing
Oh shit I figured out what the next slander should be: Matlab
0:32 Jarvis
make
On softcore CPU I'm working its totally OK to dereference null pointer because memory starts from zero address. In fact, simplest "hello world" will store string exactly from addr 0. Oh, and no segfaults because no MMU and no OS. So happy!
So your using a reset vector instead of starting at 0?
@@DorperSystems Code and data are separate from each other. So reset is jump to zero code address. And no special data addresses.
@@allmycircuits8850 ah harvard arch
asking again for golang slander
I wanna see you try and go at C# my beloved
What song is this?
Machine binary code 🤯
when D slander
algo and data structure slander
We need Haxe slander
Dude, what's the soundtrack?
The most waited
When I compile Rust code I watch C slander videos on TH-cam.
"let me know which lang you want next"
0:22 then let's give C programmers what they want...I wonder if the whole slander is a train of gigachads
Which song is this for language slander?
How about Visual C++ Slander?
nooooo, you can't just criticize the best langage
printf(" Yo guys, this new %s language is way better than C and will replace it in the future ", joke);
I genuinely love c
I feel a little personally attacked by that (0:25) because I'm doing this
Yeah, yet another systems programming language ;-;
CSharp slander next, please.
Bro literally revived me by spitting str8 fax