How a CPU Works in 100 Seconds // Apple Silicon M1 vs Intel i9

Ғылым және технология

Learn how the central processing unit (CPU) works in your computer. Compare performance and processor architecture between the Intel and Apple Silicon M1 chips with @AZisk
#compsci #tech #100SecondsOfCode
🔥 Subscribe to Alex's Channel 🔥
/ @azisk
🔗 Resources
Apple Silicon Breakdown www.macrumors.com/guide/apple...
Visual CPU visual6502.org/
Clock Speed www.intel.com/content/www/us/...
📚 Chapters
00:00 How a CPU Works
01:06 Instruction Cycle
02:25 Apple M1 vs Intel i9
06:10 Performance Benchmarking
9:06 Best Dev Stacks for M1
10:12 Worst Stacks for M1
11:55 Final Summary
🔥 Watch more with Fireship PRO
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font

Пікірлер: 1 500

  • @AZisk
    @AZisk3 жыл бұрын

    Thanks so much for having me on your channel, Jeff. It's been really fun making this one with you!

  • @AchrafBardan

    @AchrafBardan

    3 жыл бұрын

    Smart to show NativeScript as the last stack you were showing

  • @lakrib

    @lakrib

    3 жыл бұрын

    you can build your own virtuel CPU by following this channel kzread.info/dron/lQEB7Jq0LKZPWmzoKoe6bQ.html

  • @ShawnRitch

    @ShawnRitch

    3 жыл бұрын

    Thank you for all that useful information. Although, I believe you should have talked more about the majorly reduced power consumption of the Apple M1. Saving energy and having your device(s) run at much lower temperatures is very important.

  • @AZisk

    @AZisk

    3 жыл бұрын

    @@ShawnRitch you’re right, but there is only so much I can fit into a short video :)

  • @cakemnstr42

    @cakemnstr42

    3 жыл бұрын

    did you test NodeJS on node 16 with ARM support or Node in Rosetta?

  • @alexscriba6075
    @alexscriba60753 жыл бұрын

    As a CS student I have learnt all this in class and I must say I was very surprised at how detailed you went in the 100 seconds! Great job! Love the channel

  • @alexscriba6075

    @alexscriba6075

    2 жыл бұрын

    @@user-if1de8pt2j lol my bad 😂 by “100 seconds” I was referring to the series

  • @user-mb4xy2cz3t

    @user-mb4xy2cz3t

    2 жыл бұрын

    Not very detailed, there is another short video on a youtube which shows on a very simple processor example how does things work. It's much more helpful

  • @djsekav

    @djsekav

    2 жыл бұрын

    @@user-mb4xy2cz3t you’re very helpful not even pointing us in the right direction let alone giving us a link

  • @murkelastateliborac200

    @murkelastateliborac200

    2 жыл бұрын

    @@user-if1de8pt2j well does the same person talk for 12mins?

  • @alexscriba6075

    @alexscriba6075

    2 жыл бұрын

    @Chris you’re roasting me for being a student?

  • @oakleybladegames9731
    @oakleybladegames97312 жыл бұрын

    The fact that people are innovative, driven and smart enough to make this kind of stuff blows my mind. We went from a key, a kite and some lighting to mass producing hyper-powered chips that have billions of tiny parts, and computer systems that can share live video and audio with each other all over the world, all in the span of a couple hundred years.

  • @deepblueharvest

    @deepblueharvest

    Жыл бұрын

    Yep. Misanthropes are wrong. Humanity largely rocks.

  • @aurelia8028

    @aurelia8028

    Жыл бұрын

    Vastly overrating the importance of ben franklin m8

  • @BRBallin1

    @BRBallin1

    6 ай бұрын

    Let this be a lesson that if you’re consistently working on yourself and getting better each day you too can one day become impressive with your talents and knowledge

  • @alexc8512

    @alexc8512

    6 ай бұрын

    It’s all exponential. At this point all knowledge is passed down and those people with the knowledge are paving the way for new innovation.

  • @nagahumanbeingzooofparticl8836

    @nagahumanbeingzooofparticl8836

    5 ай бұрын

    ​@@BRBallin1some people are just born different

  • @thaboshikwambane5578
    @thaboshikwambane55782 жыл бұрын

    I’ve never seen such a beautiful Collab on KZread. Wow. Well done guys 👏🏽🙆🏽‍♂️

  • @ruaidhrilumsden
    @ruaidhrilumsden3 жыл бұрын

    Is it just me or was there not nearly enough focus on ARM Vs X86? Surely that's the most significant difference between the Intel chip and the M1, rather than the M1 being an SOC?

  • @brandond_

    @brandond_

    3 жыл бұрын

    Thought the same thing, surprised this wasn't commented more. ARM being a simpler architecture is by far the main contributor to the massive increase in efficiency.

  • @hariranormal5584

    @hariranormal5584

    3 жыл бұрын

    the m1 is just not only a arm chip which makes it special rather , it is very special on its own way. Like Sharing the GPU memory and CPU memory, they call it "Unified Memory", it supports Out Of order execution too, and stuff etc

  • @ruaidhrilumsden

    @ruaidhrilumsden

    3 жыл бұрын

    @@mrmeseeks8790 thanks just watched it. Very good explanation - it's not quite as simple anymore is it? I wonder, though, if the CISC chips will ever get to the point where, like the M1, high performance can be achieved whilst still keeping power usage and heat really low. That seems to be the really big difference.

  • @ChrisD__

    @ChrisD__

    3 жыл бұрын

    Yeah, like SoC's aren't a new concept it's extremely common, and they aren't the reason M1 is fast. I've personally come to hate SoCs to some degree. Removing modularity when you don't need to makes the whole thing useless sooner.

  • @hariranormal5584

    @hariranormal5584

    3 жыл бұрын

    @@ChrisD__ We can only hope the good 'ol "gaming PC" market doesn't change. I think it'd be pretty hard to change, because it's mostly standardized pretty well. Sadly laptops are now completly like "mobile" devices and are super non-upgradeable

  • @Dunktastic17
    @Dunktastic173 жыл бұрын

    Bear Grylls just taught us about processors! Alex's channel is very underrated, so happy to see him featured here. Great video and explanation!

  • @Rahul-fq9kf
    @Rahul-fq9kf2 жыл бұрын

    Wow! Love the way you have explained the technical bits in a such a simple way.

  • @faisalahmad2445
    @faisalahmad24452 жыл бұрын

    The situation on Android has really changed since this video, its now compiled natively, this includes Android studio and the emulator also runs natively. Build times have decreased to mere seconds. I run a pretty complex app and it builds in less then 1 minute every time. Edit: it has gotten even better since I last posted this comment

  • @_skiel

    @_skiel

    Жыл бұрын

    thx for that info - i just started to regret hammering company staff to finally get me a macbook m1/2 due to that old imac i5 compiling ~20x longer than my i7 notebook.

  • @bzygauksei

    @bzygauksei

    Жыл бұрын

    O

  • @namanmurarka9252
    @namanmurarka92523 жыл бұрын

    All my weeks of study depreciated to 100s 😭 😂

  • @FilledStacks
    @FilledStacks3 жыл бұрын

    Jeff you're an Angel for featuring all of our channels. I really appreciate you as a software community member. This was a great vid!! Thank you. Well done @Alexander Ziskind I watched a few of your M1 vids.

  • @11vag
    @11vag3 жыл бұрын

    Such a massive job you've done here guys. Thanks.

  • @Koubles
    @Koubles Жыл бұрын

    The beginning of the video was nice and I wanted more from it, but then it felt like it just turned into an advertisement for Apple, with the rest of the video being a Biased take on why SoC design and apple are better than standard desktops when that's not really true for a lot of people and use cases. I went into this video hoping to learn more about how CPU architecture looks at a microscopic level and what an ALU looks like and how it functions. But instead it ended up being a more high level look at a CPU followed by an Apple advertisement which is not what I wanted from this video.

  • @aktchungrabanio6467

    @aktchungrabanio6467

    Жыл бұрын

    EXACTLY how I felt! I stopped right away.

  • @IvoPavlik

    @IvoPavlik

    Ай бұрын

    Same here. The first part was great, the second felt not only off topic, but heavily biased towards Apple. Disappointing 🙁

  • @GuardianApe
    @GuardianApe3 жыл бұрын

    Love your content man , keep this up and thank your for what you do.

  • @harrazmasri2805
    @harrazmasri28052 жыл бұрын

    honestly that 1 minute mark is the simpliest and compact explaination of my whole semester

  • @EthanDyTioco

    @EthanDyTioco

    2 жыл бұрын

    i feel like these types of videos should be shown at the beginning. then, you'd have a good baseline idea of what you're learning for the next few months

  • @yesyes-om1po

    @yesyes-om1po

    10 ай бұрын

    @@EthanDyTioco colleges arent there to teach people they are there to rip you off

  • @mhmdalharbi2370
    @mhmdalharbi23703 жыл бұрын

    Intel chips or x86 moves the complexity to the chip itself(more instructions). so it consumes more energy M1 or ARM-based architectures is based on reduced instructions (RISC). It moves the complexity to the software(you have less and basic instructions to play with) so it takes larger size on memory but it's more efficient. it can be faster or slower than x86 depends on the design and optimization

  • @ko-Daegu

    @ko-Daegu

    2 жыл бұрын

    I think RISC vs CISC should have been mentioned other than that this vid is really great

  • @gumbilicious1

    @gumbilicious1

    2 жыл бұрын

    Most knowledgeable people will say CISC is more specialty instructions that take more clock cycles and RISC simpler instructions that make longer code, but this is not nearly as accurate as it used to be. The M1 is a great example if a RISC architecture that has many specialty components and commands that we would traditionally consider the domain of CISC architecture It’s still useful to mention the traditional differences between the two, but I think these differences are becoming less and less accurate as time passes.

  • @ko-Daegu

    @ko-Daegu

    2 жыл бұрын

    @@gumbilicious1 true specially with how Intel actually works for years they have been using micro-op as there’s a layer that takes CISC complete instructions & breaking them down to smaller operations similar to RISC This means extra work = extra heat

  • @vandermonke4178

    @vandermonke4178

    2 жыл бұрын

    he didnt say much about what ARM is did he? Did I miss it?

  • @julienlavoie6908

    @julienlavoie6908

    2 жыл бұрын

    The last Intel MacBooks are also 9th gen intel. It's important to note from a "processing speed" perspective.

  • @animeshsingh4290
    @animeshsingh42903 жыл бұрын

    It feels nice that I remember all of this till date

  • @Fluyd
    @Fluyd3 жыл бұрын

    Yooo, epic content. Love to see it, keep up the great work!

  • @MDSABBIR-we3pc
    @MDSABBIR-we3pc3 жыл бұрын

    Thank you very much you all videos are very helpful and helps to understand basics easily from your 100s videos ❤️❤️

  • @ss10million
    @ss10million Жыл бұрын

    The first 2 minutes is exactly the basis of what I leaned in an entire CS class specifically computer organization. Very well explained.

  • @Karuska22ps

    @Karuska22ps

    Жыл бұрын

    Everyone is a CS student

  • @TheMessanger

    @TheMessanger

    Жыл бұрын

    impressive details just researching on CPU mining and wonder why apple switched to M1 kill intel but Im still a PC geek even with apple certification APPLE is just prestige

  • @zharal
    @zharal2 жыл бұрын

    Thank you for your thorough review! What about "pure computation power"? I use Comsol software for physics simulations and I really would like to know whether I should switch to Apple RISCs or, for this kind of job (lots of RAM, lots of cores), I better stay with Intel or AMD? Thanks in advance!

  • @tanmay______
    @tanmay______3 жыл бұрын

    1:45 minor correction, it’s called the opcode

  • @hunterwilhelm

    @hunterwilhelm

    3 жыл бұрын

    Yep, operation code

  • @Fireship

    @Fireship

    3 жыл бұрын

    Good call!

  • @albertmarashi3666

    @albertmarashi3666

    3 жыл бұрын

    opt code works fine too

  • @krtirtho
    @krtirtho3 жыл бұрын

    I thought we might create our own CPU from scratch when we went beyond 100 secs but Mr. Alex just nailed it🤩 I actually watched many of his M1 vs Intel test videos. Those are also great💓

  • @AZisk

    @AZisk

    3 жыл бұрын

    Whoa! Thanks so much!

  • @JatPhenshllem

    @JatPhenshllem

    Жыл бұрын

    How do you make a cpu?

  • @conradmbugua9098

    @conradmbugua9098

    Жыл бұрын

    @@JatPhenshllem kzread.info/dash/bejne/o6Fqmdmbcpitnaw.html&ab_channel=DIYwithBen (How a CPU is made)

  • @JatPhenshllem

    @JatPhenshllem

    Жыл бұрын

    @@conradmbugua9098 Thanks

  • @Rudxain

    @Rudxain

    7 ай бұрын

    ​@@JatPhenshllemFPGA + RISC-V

  • @Riborwahz
    @Riborwahz2 жыл бұрын

    Your hard work for these videos and for the editor of this video is surely worth watching to us and useful

  • @lucysluckyday
    @lucysluckyday2 жыл бұрын

    That 6502 CPU die at 0:20 and 0:44 was launched around 1975 (although this design isn't the original 6502 die, it actually looks closer to the Rockwell R6502 die, because of different placement of the bonding pads, ). Anyway it has circa 4500 transistors. The pretty grid pattern at top is the Instruction Decoder, clock is above it at the far right end of that grid, and the ALU is in the lower half just to the left of centre (along with shift registers and other things). That chip was used in the original Apple I and Apple II desktops that Woz designed which gave Apple its starting products. You can see the individual transistors on its die with a 180x optical scope.

  • @derdere7803

    @derdere7803

    Жыл бұрын

    Gems are always hidden in comments.

  • @Adhithya1002

    @Adhithya1002

    11 ай бұрын

    thanks dude, really informative.

  • @amirfmaster2515

    @amirfmaster2515

    11 ай бұрын

    You are a genius

  • @ecdhe
    @ecdhe3 жыл бұрын

    It would be interesting to know what was the bottleneck when running the tests. Was it only the CPU or other thing such as memory access or disk access?

  • @0xfaizan
    @0xfaizan3 жыл бұрын

    Defi application in 100 seconds

  • @Bradenxd12

    @Bradenxd12

    3 жыл бұрын

    Omg yes!!

  • @adelaskri6347
    @adelaskri63472 жыл бұрын

    Watched 90 seconds of the video, paused the video , liked the video and continued watching... wonderful content and presentation

  • @johnkim1296
    @johnkim12962 жыл бұрын

    Excellent explanation of the low level activity of the CPU, yet I also had visions of Tron movie scenes of flying discs and light cycles going through my head, as I was watching your explanation! 🤖

  • @sithsithari
    @sithsithari3 жыл бұрын

    Thanks both of you! Digital circuit and logic paper revision after years in just 100 secs and more 😁 ❤️

  • @AZisk

    @AZisk

    3 жыл бұрын

    Thanks !

  • @dsi-films1264
    @dsi-films12643 жыл бұрын

    This feels a little different than usual but still incredible! It would be great if you made more videos like this, thank you!

  • @physikus7888

    @physikus7888

    3 жыл бұрын

    Its basically the usual informative stuff at the beginning and then a 10 minute ad.

  • @sabhyasoni4485

    @sabhyasoni4485

    7 ай бұрын

    @@physikus7888what?

  • @theZ3r0CooL
    @theZ3r0CooL2 жыл бұрын

    I primarily dev in Android Studio and I had to get an M1 because of the benefits while waiting for a better SoC on a larger MBP or smaller mini… but I changed a few settings; mainly memory heap and editor refresh rate, and it runs smooth as butter now. Plus they added ARM AVD support now and they run pretty well, emulating an ARM device on an ARM SoC. I will agree it’s not ideal, but I keep myself to one project open at a time and can barely notice a difference at this point. If they release a silicone native AS build it should be at least as good as the performance of my older intel MBP workhorse. Luckily Apple devices make it easy to share, drop off and pick up work between devices. So I can easily hop over to my intel machine if need be, but I haven’t used it for Android development since getting my M1. After seeing WWDC I think instead of trading in my M1 and some cash for a new MBP M1X, Ill just buy an additional mini M1X at the same specs and sell my older 15” MBP. I think eventually everything will be, or have an ARM build available.

  • @justintime802
    @justintime802 Жыл бұрын

    This is a very nice collaboration. Thanks guys :)

  • @matthewao
    @matthewao3 жыл бұрын

    I was literally trying to find a video about this the past few days, this channel is really something else

  • @crackribswithdante7807
    @crackribswithdante78073 жыл бұрын

    How I wish you had released this video during my campus days

  • @Jopekos
    @Jopekos2 жыл бұрын

    Awesome video! perfect explanation of this technology, I’m excited for the future.

  • @_Ani_
    @_Ani_3 жыл бұрын

    Insightful as always :)

  • @indiansoftwareengineer4899
    @indiansoftwareengineer48993 жыл бұрын

    Oh man, the awesome video dropped like a gem, as I was hoping this kind of videos out of software and tech-stack videos, so you got it, thank you. It started with Linux Distro, then Arch Enemy Microsoft, and now Hardware stuff.... You taught almost my half semester's course, as COA-Computer Organization and Architecture, explaining CISC vs RISC differences for 8 Marks.

  • @vishal24000
    @vishal240002 жыл бұрын

    Dude just taught us a topic it takes a whole painful semester to cover, in 12 goddamn minutes.

  • @DrorF

    @DrorF

    2 жыл бұрын

    Did you _actually_ watch the video? And did you _actually_ take a course about this subject (how CPUs work) and know what they teach there?

  • @vishal24000

    @vishal24000

    2 жыл бұрын

    @@DrorF yes smarty pants I took CS429 (Computer Organization and Architecture) as an elective during my bachelor's. Pretty boring.

  • @nightwing8666

    @nightwing8666

    2 жыл бұрын

    @@vishal24000 he didnt teach u anything.. u just didnt learn anything in ur college....

  • @mrabdulhanan2832
    @mrabdulhanan28322 жыл бұрын

    This made me subscribe in the first 6 seconds of the video .. Great explanation. Keep up the good work 👍

  • @techvideos7338
    @techvideos73383 жыл бұрын

    I enjoyed and learned allot thanks! I subbed

  • @h.hristov
    @h.hristov3 жыл бұрын

    Is this an Apple commercial?

  • @physikus7888

    @physikus7888

    3 жыл бұрын

    Apparently

  • @mandrasaptakmandal636
    @mandrasaptakmandal6363 жыл бұрын

    I was really waiting when this type of Processor related content hit youtube ....And here you come with 100sec. Loved it! Can you please do a video on how a Processor engineer designs a CPU....I mean do the use a EDA software like normal or they use computer algorithms.....And also how processor supply chains work....and processor foundry's work

  • @mmaismma
    @mmaismma3 жыл бұрын

    Didn't expect this video from you but a welcome one!

  • @ptd3v
    @ptd3v Жыл бұрын

    You are one of the only KZreadrs I can listen to talk about tech without wanting to my blow my brains out 😅 Thank you!

  • @peteplays604
    @peteplays6042 жыл бұрын

    Really love these videos. The only thing I will say that I'm sure someone has pointed out already but needs to be said: it's "OPcode" not "OPTcode" :) Keep up the good work

  • @theocrob
    @theocrob3 жыл бұрын

    Yessss I was hoping there’d be a new one today

  • @CodingWithLewis
    @CodingWithLewis3 жыл бұрын

    I love that you featured a smaller channel. Alexander's part of the video was very easy to follow along and made it very clear. Subscribed.

  • @harshahc1
    @harshahc12 жыл бұрын

    Love your channel. Very good wealth of information 🔥

  • @zedmagdy
    @zedmagdy3 жыл бұрын

    developers: lets start using microservices guys so if some small service died we can replace it apple: nah monolith approach so if a line of code is wrong the user will have to come and buy an entire application

  • @VivekYadav-ds8oz

    @VivekYadav-ds8oz

    3 жыл бұрын

    Web tech stack isn't really concerned with speed all that much, because microservices is slower. You have to use network to call services rather than a simple function call in a monolith application.

  • @zedmagdy

    @zedmagdy

    3 жыл бұрын

    @@VivekYadav-ds8oz that wont be slow if they r on the same network 🙄

  • @ESPkenner48

    @ESPkenner48

    3 жыл бұрын

    @@zedmagdy says who?

  • @amaledward2147

    @amaledward2147

    3 жыл бұрын

    Yes. Apple is here to make money. Surprise!!!!

  • @denischiosa4496

    @denischiosa4496

    3 жыл бұрын

    so true

  • @eggstatus5824
    @eggstatus5824 Жыл бұрын

    Whoever figured out how to make the parts in a cpu as small as they are is an absolute madlad

  • @kelvinchin5942
    @kelvinchin59422 жыл бұрын

    hell, you compress half of the intorduction to operating system course in university into 100 seconds, and explain better than my lecturer

  • @erfan9166
    @erfan91662 жыл бұрын

    This is a great visual aid in learning programming ground up for me. Thanks

  • @johna8999
    @johna89992 жыл бұрын

    I loved the first few minutes about processors... then the rest was about Apple silicon. Not much about how the "slow" alternatives differ. I thought Socs were developed for mobile phones? How is Apple silicon New apart from being more powerful. Please forgive my ignorance, I really wanted to learn some basics.

  • @dorathedestroyer2508

    @dorathedestroyer2508

    2 жыл бұрын

    I mean…he fully explained in the video

  • @talkysassis

    @talkysassis

    2 жыл бұрын

    It is now more powerfull. This is only true when using tools that the M1 have on the hardware. If you try to use something that Apple do not care about: Like Webm vídeos, JXL images. AOL encoder, APIs that are not Vulkan then it will be slower.

  • @TheLeadStriker
    @TheLeadStriker3 жыл бұрын

    BTW this video is an ad

  • @user-mo3cw6go7c
    @user-mo3cw6go7c3 жыл бұрын

    Part of a puzzle that for a long time I could not really understand Thanks!!!

  • @boltez6507
    @boltez65072 жыл бұрын

    Thank you for making a video on this topic....

  • @SadDamniT
    @SadDamniT3 жыл бұрын

    Oh man Alex nailed it 👌 Thank you for inviting him

  • @shanegilbert6574

    @shanegilbert6574

    3 жыл бұрын

    Alex is underrated.

  • @SadDamniT

    @SadDamniT

    3 жыл бұрын

    @@shanegilbert6574 I couldn't agree more!

  • @Alcaatraz01
    @Alcaatraz013 жыл бұрын

    Incredible video. Thank you both! Recently bought the most bottom tier Macbook Air M1 8GB mem / 256 GB just to do video calls for work and was blown away with how much better it runs my dev stuff compared to my 10600K / 32GB Windows pc. Question for @Alexander, do you think it was a good strategy to go cheapo with M1 for my purchase with the idea that when the M2 machines get announced later this year I can sell and upgrade?

  • @AZisk

    @AZisk

    3 жыл бұрын

    If you can wait for the M2's then you should wait, IMO

  • @asdf3568

    @asdf3568

    2 жыл бұрын

    8 GB of RAM. You must not run Docker

  • @famasboy4330
    @famasboy43302 жыл бұрын

    Nice clip man . Always amazing content.

  • @fdimb
    @fdimb2 жыл бұрын

    Thank you for the amazing content! Do you think a Risc-v informative/comparison video would be interesting at the time being?

  • @RajvirSingh1313
    @RajvirSingh13133 жыл бұрын

    from software to the hardware you got me cover! one heart please

  • @RajvirSingh1313

    @RajvirSingh1313

    3 жыл бұрын

    Thanks for the heart

  • @Mal-nf2sp

    @Mal-nf2sp

    2 жыл бұрын

    @@RajvirSingh1313 One heart please

  • @samarmohan9891
    @samarmohan98913 жыл бұрын

    Day 5: Elixir/Phoenix in 100 seconds, iOS Development in 100 seconds, Android Development in 100 seconds, Rust in 100 seconds, C in 100 Seconds, TailwindCSS in 100 seconds, JS Testing in 100 seconds, Ruby/Rails in 100 Seconds, C++ in 100 Seconds

  • @samarmohan9891

    @samarmohan9891

    3 жыл бұрын

    Lets goooo, Fireship recognized this!

  • @ibrahimshehuibrahim918

    @ibrahimshehuibrahim918

    3 жыл бұрын

    U forgot to add Go

  • @samarmohan9891

    @samarmohan9891

    3 жыл бұрын

    @@ibrahimshehuibrahim918 thanks, ill add it next time.

  • @ko-Daegu

    @ko-Daegu

    2 жыл бұрын

    UE 6 in 100 Seconds, Interpreters in 100 seconds, Forensics in 100 seconds, malware analysis in 100 seconds.

  • @akshatsingh6036
    @akshatsingh60362 жыл бұрын

    Thank You Bear Grills for this awesome tutorial on M1 vs Intel

  • @NK-iw6rq
    @NK-iw6rq Жыл бұрын

    Man videos like this really make me appreciate the times we are living in ! I love technology and I love smart people explaining technology !

  • @kentagent6343
    @kentagent63435 ай бұрын

    The beginning of the video made me think it was gonna be a great video explaining the cpu. What I got instead was a 10 minute long ad.

  • @junovicz

    @junovicz

    Ай бұрын

    Same :c

  • @Zooiest
    @Zooiest Жыл бұрын

    JS and Py actually compile into bytecode, which is executed by their respective interpreters. The interpreter, though, is the one running on machine code. Also, the execution phase is more complex than that; there are all kinds of opcode extensions, prefix bytes, addressing modes, immediate values, etc., etc. But an important note is that the operand (which isn't even always there, like with RET, or of which there are multiple, like with IDIV) doesn't always reference memory-it can also reference CPU registers (?ax, ?bx, ..., and r8 through r15 in 64-bit operating mode) in the register-only addressing mode. In addition to those, there are also some special registers that allow the CPU to function; such as ?BP (base pointer) ?IP (instruction pointer) FLAGS (CPU state flags), and so on. * The question marks indicate a register size. E = 32 bits and R = 64 bits. For 16 bits, take out the question mark. For 8 bits, use l and h for low and high. AL -> low 8 bits of accumulator BH -> high 8 bits of base CX -> 16-bit counter EDX -> 32-bit data RIP** -> 64-bit inst. pointer ** Not available to instructions Oops, I'm rambling again. I'll see myself out. Edit 0: I've seen myself back in to correct the r range. r0-r7 actually refer to the previously-mentioned registers. (Source: stackoverflow.com/a/9130707 )

  • @lifetimeadventure9
    @lifetimeadventure92 жыл бұрын

    Such an amazing video, thank you🤩

  • @fIoressence
    @fIoressence3 жыл бұрын

    Now THIS is some quality content 🙏

  • @MathewZ788
    @MathewZ7882 жыл бұрын

    Overclocking doesn't always lead to lower life expectancy because of undervolting it will get you very close to stock life expectancy resulting in it running cooler and more closer to stock temps while you get more performance.

  • @rb1471

    @rb1471

    10 ай бұрын

    How does undervolting work regarding battery output?

  • @MathewZ788

    @MathewZ788

    10 ай бұрын

    ​@@rb1471 I really couldn't tell you because most my experience undervolting has been on desktop. I don't know if you can undervolt a laptop from the BIOS. Might even be dangerous if you can, because the CPU's are already adjusted by the manufacturer like ASUS or dell to give you the best battery life or cooling.

  • @mateuszkolpa
    @mateuszkolpa3 жыл бұрын

    Great video! :)) When do you think we will be getting the same highly performent ARM cpus on the desktop market if we will at all? Since these are just laptop cpus, aren't we able to go beyond that on PC?

  • @fltfathin

    @fltfathin

    3 жыл бұрын

    Arm cores are winning on power efficiency, on PC that not focused on that, nobody will use low power processors. You'd get better performance with amd APUs if you want is SoC integration. Also because ARM sells the design of the processor to foundries, it is possible to mix x86 processor with ARM, some already have it iirc

  • @nightwing8666

    @nightwing8666

    2 жыл бұрын

    no thanks. I'd rather have the ability to upgrade my PC as and when i choose. dont want some company selling me overpriced shit that i cant upgrade and have to throw away in a few years

  • @tochiii_4249
    @tochiii_42493 жыл бұрын

    I can’t explain how much I love your videos

  • @axa993
    @axa9933 жыл бұрын

    Man this channel keeps getting better and better, it's insane.

  • @pemessh
    @pemessh3 жыл бұрын

    Damn SOCs have been around for a very long time. But, it just made sense to me now. 🙏

  • @ralf391

    @ralf391

    3 жыл бұрын

    Yeah, if M1 is faster because it is an SoC, then why does an Intel Atom SoC not run circles around an i7? This video is a load of crap designed to make Apple fans happy.

  • @porcorosso4330

    @porcorosso4330

    3 жыл бұрын

    @@ralf391 I am also sceptical about the claim that M1 out perform i9.

  • @iDoWayTooMuchAcid

    @iDoWayTooMuchAcid

    3 жыл бұрын

    @@porcorosso4330 it doesn’t, outside of either hyper specialized workloads like workloads that utilize machine learning ASIC on M1 or in performance per watt. While M1 is amazing in its own right, it can’t break how physics works. Lot of stuff that’s running faster on the M1 is because it’s specially coded to utilize fixed function asic or the JIT reconciler/emulation of Rosetta can sometimes skip a lot of steps which isn’t great for mission critical work if need an error free environment. But most Rosetta emulated apps run slower still. Also, Lot of apps don’t utilize fixed function asic on intel or AMD for some reason, been a issue for a long time and nothing magical just because see it happening on M1. People look at premier for the best example of how much faster M1 is vs intel, the reality is by default premier disables intel QSV optimizations on windows and on Mac it’s just not available for some..reason? Turn those QSV functions on in premier on windows and if you have a recent intel CPU the M1 isn’t that far ahead if at all. Another aspect is synthetic benchmarks, Comparing what they believe to be “raw” performance. In reality, most of these benchmarks are very small and can easily fit within the cache operations without much eviction of code to DRAM, and thus get a huge boost in performance. This is also why we are seeing in same benchmarks, a lot of zen based chips running rings at the top too.. none of this specifically invalidates the benchmark, but it’s not a true raw compute scenarios in my book. Take geek-bench for example, it can run each test with minimal code eviction. Cinebench R20-R23 is the same way, this is why memory speed plays less role in this “CPU benchmark” and can even go single channel on my platforms and score similar or higher on some platforms. This because each tile tries to work within the cache. The M1 has a fairly large chunk of cache that’s unified between cores, it also acts as a buffer to DRAM, allowing the M1 to hit the DRAM less often.

  • @tobiascornille
    @tobiascornille3 жыл бұрын

    Isn't a big part in the performance of the M1 the reduced (ARM) instruction set? Or does it really just come down to the M1 being a SoC?

  • @Knirin

    @Knirin

    Жыл бұрын

    The Apple Silicon is a very very pipelined ARM chip with some extra accelerators added to it.

  • @Asifur_Rahman
    @Asifur_Rahman7 ай бұрын

    Alex and you are awesome. I liked both of your videos.

  • @Senaericsson
    @Senaericsson3 жыл бұрын

    Nice collab, well played

  • @ThisuraDodangoda
    @ThisuraDodangoda3 жыл бұрын

    Excellent video! Love the content Alexander and Fireship presented. I just wanted to say this video reassured I made the right choice buying the last Intel Macbook last year. Im a dev and our team is small and we do iOS, Android, Flutter, PHP, Python projects. I find myself getting involved in almost all of them time-to-time. Its quite frustrating in itself, and looking at Alexander's overview it would've been very bad if all my workflows just broke because of M1. Sure its not the best, performant machine and I do feel jealous sometimes. But atleast I can "just work", and be assured that my current device will be the last to lose support before the M1 lineup becomes the only lineup. Thank you again!

  • @mohitshetty8767
    @mohitshetty87673 жыл бұрын

    One of the major drawbacks of SOC, is that chips cannot be repaired but only replaced. So the overall cost to get back normal would be very high (for the company/user), considering the number of components it has fabricated on it.

  • @phantasyphotography3813

    @phantasyphotography3813

    3 жыл бұрын

    Yup, nothing new if you already buy Apple products lol

  • @mohitshetty8767

    @mohitshetty8767

    3 жыл бұрын

    @@phantasyphotography3813 Lol

  • @theMikeChastain

    @theMikeChastain

    Жыл бұрын

    Coc...capitalism on a chip? Sorry...made me chuckle.

  • @nyambe
    @nyambe2 жыл бұрын

    Alex is awesome! Great to see you here

  • @AZisk

    @AZisk

    2 жыл бұрын

    @samiebuka good to see you too!

  • @alexveeuk
    @alexveeuk3 жыл бұрын

    Good content was fun to watch. My suggestion for the next video is html 2.0 - gRPC or html3 -QUIC

  • @shapelessed
    @shapelessed3 жыл бұрын

    SoC's have one advantage and one HUGE drawback... The advantage is obviously the power consumption, and that might lead people to think it's more e ological to do it like this, but here comes the drawback... The less stuff you can upgrade in your computer, the less it's gonna serve you, eventually leading to uprise in throwing out new stuff just to buy new, whereas modular machines sometimes just need more memory or an expansion card and there thry go serve for another one or two years. Keep in mind that producing PCBs in mass includes TONS of toxic materials...

  • @gkagara

    @gkagara

    2 жыл бұрын

    May work on laptop but not on regular PC, PC is like that for customizable feature that allow you to modify it as needed while laptop probably need the cooling system and power efficiency to be better.

  • @freevbucks8019

    @freevbucks8019

    2 жыл бұрын

    The thing with SoC's is that since they're constrained by size they may actually be less efficient

  • @neggas-

    @neggas-

    Жыл бұрын

    M1 is built for Macbooks and not the buggy half baked windows machines. most modern non gaming windows laptops also wont allow customisations . And the fact that M1 is still miles ahead than the most powerful windows machines and also the fact that mac doesnt require a ton of ram shows how apple is extremely efficient when compared to windows

  • @debmallyabhattacharya4394
    @debmallyabhattacharya43943 жыл бұрын

    I love this new format where you're bringing experts!

  • @Bombstark
    @Bombstark4 ай бұрын

    Thank you for this video! ❤

  • @Shogoeu
    @Shogoeu2 жыл бұрын

    Best explanation on the differences with general CPU.

  • @PhilAlbu
    @PhilAlbu2 жыл бұрын

    I think you meant opcode, not optcode 😉🤓 Nice video!

  • @yjk_ch
    @yjk_ch2 жыл бұрын

    What *really* makes M1 faster is that decoding an ARM instruction is much simpler than decoding an x86 instruction. For example, each x86 or AMD64 instructions have different number of bytes. Some of them are 4 bytes, some of them are 6, 8, or even 12, etc... On the other hand, ARM always has fixed length. I don't know about 64-bit ARM, but I do know that 32-bit ARM always use 4-byte(32-bit) per instruction(which includes both opcode and operands). What this means is that it is very easy to predict where to fetch next instruction from, which allows decoding more and more instructions at the same time. Then when an instruction finishes, everything needed to execute next instruction would be immediately ready. Also not to mention that ARM, which is RISC(Reduced Instruction Set Computing) architecture, has far fewer instructions than x86. So instruction decoder itself would be also a lot simpler.

  • @moimoi9995

    @moimoi9995

    Жыл бұрын

    Isnt ARM64 variable length instructions?

  • @StoriesByAnonymous
    @StoriesByAnonymous Жыл бұрын

    damn!! how much research must have been gone through, this video has more information then any another video would have given

  • @OmarJIBAR
    @OmarJIBAR2 жыл бұрын

    Very informative, thanks.

  • @leoingson
    @leoingson3 жыл бұрын

    Right on time to show my teenage daughter. She got some questions, how Python actually gets executed :-)

  • @kamaljeetsahoo4752

    @kamaljeetsahoo4752

    3 жыл бұрын

    Please make a video on this too

  • @leoingson

    @leoingson

    3 жыл бұрын

    @@monke4319 Hehe. She knows how to count binary from age 7 or so (one hand, 0-15). Funny moment when it dawned on her, what this is actually good for :-) We also did tube-triods to explain RAM, and floppy disk tracks + sectors. Internet-age kids have problems to understand the concept of storage, and where it happens when. There is no more blinking stuff, you can actually touch. It was very interesting for me too, to draw battery symbols and to know which was plus, and direction of current etc - after all these years.

  • @neymarjr_.

    @neymarjr_.

    2 жыл бұрын

    @@leoingson dayum negga she knows a lot

  • @YurgenGrimwood
    @YurgenGrimwood3 жыл бұрын

    I'd be totally down to buy an M1 laptop! Just have to wipe the drive and install a dual boot with a Linux installation and windows 10... You'll never catch me bending over backwards trying to conform to Mac OS. Prefer it if I could get it in a different case as well..? Then again Apple is afraid of change so I guess I'd be stuck with the 13 year old design.

  • @SeanTheEvans

    @SeanTheEvans

    Жыл бұрын

    CUTTING EDE 13 year old design!

  • @Joe-km7xi
    @Joe-km7xi3 жыл бұрын

    This is a really good video !

  • @OPGAMER.
    @OPGAMER.2 жыл бұрын

    Best Explanation Ever 👍

  • @basharmously2162
    @basharmously21623 жыл бұрын

    Can we get an awesome video (which is any video on this channel) about WebGL ?

  • @Fireship

    @Fireship

    3 жыл бұрын

    It's on the list

  • @basharmously2162

    @basharmously2162

    3 жыл бұрын

    @@Fireship You are awesome!! Thanks!

  • @altairbueno5637
    @altairbueno56373 жыл бұрын

    Its funny listen a *web* developer talking about cpu architecture, when literally none of their work relay directly on any of this stuff.

  • @FireWyvern870

    @FireWyvern870

    2 жыл бұрын

    Agreed.

  • @AntonySimkin

    @AntonySimkin

    2 жыл бұрын

    It's even funnier that the comparison is made on intel mac and m1 mac and not windows intel/amd + linux intel/amd + intel mac + m1 mac...

  • @KimYoungUn69

    @KimYoungUn69

    2 жыл бұрын

    @@AntonySimkin which dev uses windows anyways

  • @AntonySimkin

    @AntonySimkin

    2 жыл бұрын

    @@KimYoungUn69 most pc's run on win... Why not?

  • @kingundfaker
    @kingundfaker3 жыл бұрын

    This is the first Beyond 100 Seconds which doesn't throw me offbeat with Jeffs style!

  • @Nothingness214
    @Nothingness2142 жыл бұрын

    Finally someone who explains well the differences!

  • @TheDude50447
    @TheDude50447 Жыл бұрын

    Intel and AMD are building chips on the basically ancient x86 architecture. It basically means compared to what would be possible today they take a performance penalty as a tradeoff for backwards compatability. Otherwise with every new cpu you buy youd need to rebuy your entire software collection from scratch or run different virtual machine setups one way or another. For Apple which actively fight against everything good for the consumer (even in court) this is not an issue since their software isnt compatible with anything else anyways. The M1 chip was at the time of its introduction also the only cpu for those applications build on TSMCs cutting edge 5nm process which in this video was compared at best to a cpu build on Intels 10nm process. Current mobile chips from Intel released a few months after this video basedon the alderlake architecture are also outperforming the M1 chips again in most cases. The modularity of todays PCs which was by some ironic plottwist portrayed as something negative in this video has indeed the rather small disadvantage of using more power than an SOC. But it comes with the huge and obvious advantage of being able to replace just a broken part instead of the entire machine. Of course also the ability to individually upgrade parts. Apple on the other hand is again fighting actively against the customers option to repair or replace parts on their products with deliberate design choices and also in court. Its the scummiest of tech companies trying to strip us of every last penny with their policies. And this video sounds like a commercial for them. I wouldnt be surprised if this was paid for. But Apple is also known to have religious zealots like this preaching to the masses. Weird cult-techcompany hybrid.

  • @Anonymous-ok8qf
    @Anonymous-ok8qf2 жыл бұрын

    That was the longest 100 seconds of my life.

  • @michaeleaster1815
    @michaeleaster18153 жыл бұрын

    0:54 rare typo.... thanks for another great video. Fabulous channel

  • @MiScusi69
    @MiScusi692 жыл бұрын

    This was extremely interesting!!!

Келесі