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

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ค. 2024
  • 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.5K

  • @AZisk
    @AZisk 3 ปีที่แล้ว +4588

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

    • @AchrafBardan
      @AchrafBardan 3 ปีที่แล้ว +13

      Smart to show NativeScript as the last stack you were showing

    • @lakrib
      @lakrib 3 ปีที่แล้ว +3

      you can build your own virtuel CPU by following this channel th-cam.com/channels/lQEB7Jq0LKZPWmzoKoe6bQ.html

    • @ShawnRitch
      @ShawnRitch 3 ปีที่แล้ว +10

      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 ปีที่แล้ว +16

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

    • @cakemnstr42
      @cakemnstr42 3 ปีที่แล้ว +2

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

  • @alexscriba6075
    @alexscriba6075 3 ปีที่แล้ว +2051

    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 ปีที่แล้ว +47

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

    • @user-mb4xy2cz3t
      @user-mb4xy2cz3t 2 ปีที่แล้ว +7

      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 ปีที่แล้ว +47

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

    • @murkelastateliborac200
      @murkelastateliborac200 2 ปีที่แล้ว +1

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

    • @alexscriba6075
      @alexscriba6075 2 ปีที่แล้ว +18

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

  • @thaboshikwambane5578
    @thaboshikwambane5578 2 ปีที่แล้ว +17

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

  • @Rahul-fq9kf
    @Rahul-fq9kf 2 ปีที่แล้ว +8

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

  • @ruaidhrilumsden
    @ruaidhrilumsden 3 ปีที่แล้ว +1128

    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 ปีที่แล้ว +210

      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 ปีที่แล้ว +63

      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 ปีที่แล้ว +10

      @@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 ปีที่แล้ว +55

      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 ปีที่แล้ว +29

      @@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

  • @FilledStacks
    @FilledStacks 3 ปีที่แล้ว +15

    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
    @11vag 3 ปีที่แล้ว +6

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

  • @oakleybladegames9731
    @oakleybladegames9731 2 ปีที่แล้ว +277

    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 ปีที่แล้ว +13

      Yep. Misanthropes are wrong. Humanity largely rocks.

    • @aurelia8028
      @aurelia8028 ปีที่แล้ว +7

      Vastly overrating the importance of ben franklin m8

    • @BRBallin1
      @BRBallin1 6 หลายเดือนก่อน +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 หลายเดือนก่อน +4

      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 หลายเดือนก่อน +1

      ​@@BRBallin1some people are just born different

  • @Dunktastic17
    @Dunktastic17 3 ปีที่แล้ว +698

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

  • @mhmdalharbi2370
    @mhmdalharbi2370 3 ปีที่แล้ว +563

    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 ปีที่แล้ว +80

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

    • @gumbilicious1
      @gumbilicious1 2 ปีที่แล้ว +50

      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 ปีที่แล้ว +10

      @@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 ปีที่แล้ว +2

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

    • @julienlavoie6908
      @julienlavoie6908 2 ปีที่แล้ว +9

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

  • @faisalahmad2445
    @faisalahmad2445 2 ปีที่แล้ว +238

    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 ปีที่แล้ว +5

      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 ปีที่แล้ว +1

      O

  • @lucysluckyday
    @lucysluckyday 2 ปีที่แล้ว +64

    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 ปีที่แล้ว +6

      Gems are always hidden in comments.

    • @Adhithya1002
      @Adhithya1002 11 หลายเดือนก่อน +1

      thanks dude, really informative.

    • @amirfmaster2515
      @amirfmaster2515 11 หลายเดือนก่อน

      You are a genius

  • @MDSABBIR-we3pc
    @MDSABBIR-we3pc 3 ปีที่แล้ว +3

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

  • @Fluyd
    @Fluyd 3 ปีที่แล้ว +6

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

  • @ss10million
    @ss10million 2 ปีที่แล้ว +8

    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

  • @harrazmasri2805
    @harrazmasri2805 2 ปีที่แล้ว +11

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

    • @EthanDyTioco
      @EthanDyTioco 2 ปีที่แล้ว +5

      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

  • @namanmurarka9252
    @namanmurarka9252 3 ปีที่แล้ว +389

    All my weeks of study depreciated to 100s 😭 😂

  • @GuardianApe
    @GuardianApe 3 ปีที่แล้ว +4

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

  • @Riborwahz
    @Riborwahz 2 ปีที่แล้ว +1

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

  • @mrabdulhanan2832
    @mrabdulhanan2832 2 ปีที่แล้ว

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

  • @tanmay______
    @tanmay______ 3 ปีที่แล้ว +131

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

  • @sithsithari
    @sithsithari 3 ปีที่แล้ว +9

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

    • @AZisk
      @AZisk 3 ปีที่แล้ว +2

      Thanks !

  • @adelaskri6347
    @adelaskri6347 2 ปีที่แล้ว

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

  • @justintime802
    @justintime802 ปีที่แล้ว

    This is a very nice collaboration. Thanks guys :)

  • @zharal
    @zharal 2 ปีที่แล้ว +16

    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!

  • @krtirtho
    @krtirtho 3 ปีที่แล้ว +307

    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 ปีที่แล้ว +15

      Whoa! Thanks so much!

    • @JatPhenshllem
      @JatPhenshllem ปีที่แล้ว +1

      How do you make a cpu?

    • @conradmbugua9098
      @conradmbugua9098 ปีที่แล้ว +1

      @@JatPhenshllem th-cam.com/video/qm67wbB5GmI/w-d-xo.html&ab_channel=DIYwithBen (How a CPU is made)

    • @JatPhenshllem
      @JatPhenshllem ปีที่แล้ว

      @@conradmbugua9098 Thanks

    • @Rudxain
      @Rudxain 8 หลายเดือนก่อน

      ​@@JatPhenshllemFPGA + RISC-V

  • @CodingWithLewis
    @CodingWithLewis 3 ปีที่แล้ว +2

    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.

  • @mmaismma
    @mmaismma 3 ปีที่แล้ว

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

  • @animeshsingh4290
    @animeshsingh4290 3 ปีที่แล้ว +11

    It feels nice that I remember all of this till date

  • @johnkim1296
    @johnkim1296 2 ปีที่แล้ว +3

    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! 🤖

  • @ecdhe
    @ecdhe 3 ปีที่แล้ว +23

    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?

  • @ptd3v
    @ptd3v ปีที่แล้ว +1

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

  • @dsi-films1264
    @dsi-films1264 3 ปีที่แล้ว +17

    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 ปีที่แล้ว +3

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

    • @sabhyasoni4485
      @sabhyasoni4485 7 หลายเดือนก่อน

      @@physikus7888what?

  • @matthewao
    @matthewao 3 ปีที่แล้ว +5

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

  • @Jopekos
    @Jopekos 3 ปีที่แล้ว +1

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

  • @peteplays604
    @peteplays604 2 ปีที่แล้ว +5

    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

  • @Koubles
    @Koubles ปีที่แล้ว +32

    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 ปีที่แล้ว +8

      EXACTLY how I felt! I stopped right away.

    • @IvoPavlik
      @IvoPavlik 2 หลายเดือนก่อน +1

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

  • @theZ3r0CooL
    @theZ3r0CooL 2 ปีที่แล้ว +16

    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.

  • @boltez6507
    @boltez6507 2 ปีที่แล้ว +1

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

  • @erfan9166
    @erfan9166 2 ปีที่แล้ว

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

  • @mandrasaptakmandal636
    @mandrasaptakmandal636 3 ปีที่แล้ว +5

    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

  • @indiansoftwareengineer4899
    @indiansoftwareengineer4899 3 ปีที่แล้ว +13

    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.

  • @harshahc1
    @harshahc1 2 ปีที่แล้ว

    Love your channel. Very good wealth of information 🔥

  • @kelvinchin5942
    @kelvinchin5942 2 ปีที่แล้ว

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

  • @crackribswithdante7807
    @crackribswithdante7807 3 ปีที่แล้ว +5

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

  • @SadDamniT
    @SadDamniT 3 ปีที่แล้ว +6

    Oh man Alex nailed it 👌 Thank you for inviting him

    • @shanegilbert6574
      @shanegilbert6574 3 ปีที่แล้ว +2

      Alex is underrated.

    • @SadDamniT
      @SadDamniT 3 ปีที่แล้ว

      @@shanegilbert6574 I couldn't agree more!

  • @user-mo3cw6go7c
    @user-mo3cw6go7c 3 ปีที่แล้ว

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

  • @_Ani_
    @_Ani_ 3 ปีที่แล้ว +1

    Insightful as always :)

  • @johna8999
    @johna8999 3 ปีที่แล้ว +21

    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 ปีที่แล้ว +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.

  • @theocrob
    @theocrob 3 ปีที่แล้ว +34

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

  • @techvideos7338
    @techvideos7338 3 ปีที่แล้ว

    I enjoyed and learned allot thanks! I subbed

  • @Asifur_Rahman
    @Asifur_Rahman 8 หลายเดือนก่อน

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

  • @eggstatus5824
    @eggstatus5824 ปีที่แล้ว +3

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

  • @RajvirSingh1313
    @RajvirSingh1313 3 ปีที่แล้ว +16

    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

  • @fdimb
    @fdimb 2 ปีที่แล้ว

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

  • @akshatsingh6036
    @akshatsingh6036 3 ปีที่แล้ว +1

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

  • @vishal24000
    @vishal24000 2 ปีที่แล้ว +9

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

    • @DrorF
      @DrorF 2 ปีที่แล้ว +4

      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 ปีที่แล้ว +2

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

    • @nightwing8666
      @nightwing8666 2 ปีที่แล้ว +2

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

  • @0xfaizan
    @0xfaizan 3 ปีที่แล้ว +108

    Defi application in 100 seconds

  • @nyambe
    @nyambe 2 ปีที่แล้ว +1

    Alex is awesome! Great to see you here

    • @AZisk
      @AZisk 2 ปีที่แล้ว

      @samiebuka good to see you too!

  • @NK-iw6rq
    @NK-iw6rq ปีที่แล้ว +1

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

  • @MathewZ788
    @MathewZ788 2 ปีที่แล้ว +10

    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 หลายเดือนก่อน +1

      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.

  • @Alcaatraz01
    @Alcaatraz01 3 ปีที่แล้ว +11

    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 ปีที่แล้ว +3

      8 GB of RAM. You must not run Docker

  • @Bombstark
    @Bombstark 4 หลายเดือนก่อน

    Thank you for this video! ❤

  • @faizalzaidin
    @faizalzaidin 2 ปีที่แล้ว +1

    Due to explanations the process in making sandwich, you deserved a like and new subscribe.

  • @Zooiest
    @Zooiest ปีที่แล้ว +8

    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 )

  • @pemessh
    @pemessh 3 ปีที่แล้ว +7

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

    • @ralf391
      @ralf391 3 ปีที่แล้ว +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 ปีที่แล้ว +3

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

    • @Getfuqqedfedboy
      @Getfuqqedfedboy 3 ปีที่แล้ว +1

      @@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.

  • @axa993
    @axa993 3 ปีที่แล้ว +1

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

  • @famasboy4330
    @famasboy4330 2 ปีที่แล้ว

    Nice clip man . Always amazing content.

  • @debmallyabhattacharya4394
    @debmallyabhattacharya4394 3 ปีที่แล้ว +3

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

  • @mateuszkolpa
    @mateuszkolpa 3 ปีที่แล้ว +4

    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 ปีที่แล้ว +6

      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 ปีที่แล้ว +5

      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

  • @fIoressence
    @fIoressence 3 ปีที่แล้ว

    Now THIS is some quality content 🙏

  • @lifetimeadventure9
    @lifetimeadventure9 2 ปีที่แล้ว

    Such an amazing video, thank you🤩

  • @samarmohan9891
    @samarmohan9891 3 ปีที่แล้ว +68

    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 ปีที่แล้ว +2

      Lets goooo, Fireship recognized this!

    • @ibrahimshehuibrahim918
      @ibrahimshehuibrahim918 3 ปีที่แล้ว +2

      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.

  • @mohitshetty8767
    @mohitshetty8767 3 ปีที่แล้ว +16

    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 ปีที่แล้ว +15

      Yup, nothing new if you already buy Apple products lol

    • @mohitshetty8767
      @mohitshetty8767 3 ปีที่แล้ว +3

      @@phantasyphotography3813 Lol

    • @theMikeChastain
      @theMikeChastain ปีที่แล้ว

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

  • @Shogoeu
    @Shogoeu 2 ปีที่แล้ว

    Best explanation on the differences with general CPU.

  • @tochiii_4249
    @tochiii_4249 3 ปีที่แล้ว +1

    I can’t explain how much I love your videos

  • @kentagent6343
    @kentagent6343 5 หลายเดือนก่อน +12

    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 2 หลายเดือนก่อน +1

      Same :c

  • @shapelessed
    @shapelessed 3 ปีที่แล้ว +17

    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 ปีที่แล้ว +1

      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

  • @Senaericsson
    @Senaericsson 3 ปีที่แล้ว

    Nice collab, well played

  • @OPGAMER.
    @OPGAMER. 3 ปีที่แล้ว +1

    Best Explanation Ever 👍

  • @zedmagdy
    @zedmagdy 3 ปีที่แล้ว +30

    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 ปีที่แล้ว +1

      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

  • @h.hristov
    @h.hristov 3 ปีที่แล้ว +11

    Is this an Apple commercial?

  • @michaeleaster1815
    @michaeleaster1815 3 ปีที่แล้ว

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

  • @arjumandvillagecooking
    @arjumandvillagecooking 6 หลายเดือนก่อน

    great useful 👍😊❤
    thank u
    from Gilgit-Baltistan

  • @basharmously2162
    @basharmously2162 3 ปีที่แล้ว +18

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

    • @Fireship
      @Fireship  3 ปีที่แล้ว +7

      It's on the list

    • @basharmously2162
      @basharmously2162 3 ปีที่แล้ว +1

      @@Fireship You are awesome!! Thanks!

  • @tobiascornille
    @tobiascornille 3 ปีที่แล้ว +5

    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 ปีที่แล้ว +1

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

  • @Wander4P
    @Wander4P 2 ปีที่แล้ว +2

    The sandwich analogy would make more sense if it was instead comparing a supermarket to specific stores.

  • @AMPTechGrade
    @AMPTechGrade 11 หลายเดือนก่อน

    What do you use for your EVERYTHING man? Like the audio, editing software, the animation software, these are perfect videos

  • @PhilAlbu
    @PhilAlbu 2 ปีที่แล้ว +3

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

  • @yjk_ch
    @yjk_ch 2 ปีที่แล้ว +18

    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?

  • @cookies-pb1eg9vg8v
    @cookies-pb1eg9vg8v หลายเดือนก่อน

    This is a summary, which is so useful

  • @kingundfaker
    @kingundfaker 3 ปีที่แล้ว

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

  • @YurgenGrimwood
    @YurgenGrimwood 3 ปีที่แล้ว +8

    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 ปีที่แล้ว +1

      CUTTING EDE 13 year old design!

  • @ryancallstrom
    @ryancallstrom ปีที่แล้ว +9

    This is a misleading description of x86-64 (Intel/AMD in most cases) vs ARM. ARM is a RISC (Reduced Instruction Set Computer) style processor, so what you gain in speed is lost in feature set and wider compatibility with Windows and other x86-64 based operating systems. There is also nuance in the testing performed here that might be missed by the uninformed viewer, i.e compiler optimizations done in the background automatically for ARM, that would explain the apparent performance difference.
    ARM is indeed a powerful and typically less power hungry platform, but there are pros and cons not discussed here that would and do apply when looking to develop native code for x86-64 or other architectures. Web applications built on JavaScript and other platform-indepenent languages would likely benefit from development on ARM, however any desktop apps for x86-64 would likely have little to no difference in compile time/runtime performance especially when running on Apple's translation layer.
    Since TH-cam doesn't seem to like my links just search m1 vs x86 for more info

  • @darkahrii
    @darkahrii 7 หลายเดือนก่อน

    thanks bro, i got a cpu and my performance got boosted a lot :D

  • @StoriesByAnonymous
    @StoriesByAnonymous ปีที่แล้ว

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

  • @ThisuraDodangoda
    @ThisuraDodangoda 3 ปีที่แล้ว +3

    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!

  • @leoingson
    @leoingson 3 ปีที่แล้ว +119

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

    • @kamaljeetsahoo4752
      @kamaljeetsahoo4752 3 ปีที่แล้ว +1

      Please make a video on this too

    • @leoingson
      @leoingson 3 ปีที่แล้ว +6

      @@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 ปีที่แล้ว +1

      @@leoingson dayum negga she knows a lot

  • @OmarJIBAR
    @OmarJIBAR 2 ปีที่แล้ว

    Very informative, thanks.

  • @phetolomojela3014
    @phetolomojela3014 2 ปีที่แล้ว

    I like you get straight to the point , not time waste