BGZDevTips
BGZDevTips
  • Видео 3
  • Просмотров 110 853
Virtual Machines
Video Summary:
What are virtual machines? How can they help developers in their everyday lives? Well find out with this video!
Просмотров: 346

Видео

Short Lesson - Compilation vs Interpretation
Просмотров 106 тыс.8 лет назад
What exactly are the differences between compiling and interpreting a programming language? What are the pros and cons of each? Find out in this video!
Short Lesson - The Compilation/Translation Process
Просмотров 4,5 тыс.8 лет назад
In this video we go over the process of taking your human readable source code and converting it to machine code for the computer to run. Skip to: Preprocessing Stage: 3:04 Compilation Stage: 5:04 Linking Stage: 8:14

Комментарии

  • @rakeshes4176
    @rakeshes4176 2 года назад

    thank you

  • @Pikachu-Gaming1764
    @Pikachu-Gaming1764 2 года назад

    this is super underrated you know this helped so much in my fundamentals of computing class and programming class

  • @Hamheadon
    @Hamheadon 2 года назад

    If intermediate languages compile to GIT, but are actually still interpreters, can you call them a hybrid of compiler & interpreter?

  • @jorgeozunaadams6760
    @jorgeozunaadams6760 2 года назад

    I was taking notes and this gave me everything I needed and in a short video to boot

  • @zachslichta5858
    @zachslichta5858 3 года назад

    So helpful, thank you!

  • @akrm3240
    @akrm3240 3 года назад

    Thank you sm! You helped me understand it quicker than reading miles of words on google. :D

  • @kpath74
    @kpath74 3 года назад

    Your the 5th video I watched for this subject and you by far explained it the best and in less time.

  • @thedoctor5036
    @thedoctor5036 3 года назад

    answering to your last question : yes it does! Thank You!

  • @educarecoaching2019
    @educarecoaching2019 3 года назад

    Nice video Thanks 😊ruclips.net/video/SGzEogJt86w/видео.html

  • @TeamUnpro
    @TeamUnpro 3 года назад

    Duuuude, that game editor reference :D

  • @NarePoghosyan
    @NarePoghosyan 3 года назад

    This was the best explanation, thank you!

  • @vortical911
    @vortical911 3 года назад

    i like how you pronounce the word 'executable' lol

  • @fiyinaregbe2740
    @fiyinaregbe2740 3 года назад

    I am guessing that is why you can see JavaScript source code in chrome "View Page Source" because it is interpreted.

  • @iedi3
    @iedi3 3 года назад

    PHP has now JIT

  • @PouyaAtaei
    @PouyaAtaei 3 года назад

    Javascript is utilizing JIT.

  • @ghume79
    @ghume79 4 года назад

    Java is not interpreted. Java is compiled into bytecode. The bytecode is then interpreted. If Java was interpreted, there would be no need for the -javac command. Java source code is not bytecode. Great video anyway.

  • @devgarg7469
    @devgarg7469 4 года назад

    THANK YOU

  • @ashwinramaswamy4059
    @ashwinramaswamy4059 4 года назад

    Great video! Finally someone that explains it clearly and concisely

  • @YoutubeUser01
    @YoutubeUser01 4 года назад

    you deserve more subscibers :)

  • @dominiquedevries9972
    @dominiquedevries9972 4 года назад

    You are great! When is the next video?

  • @mosab643
    @mosab643 4 года назад

    Best video out there explaining this stuff.

  • @jpdubey1765
    @jpdubey1765 4 года назад

    Inspirational story about importance of Being a balanced controller ruclips.net/video/4BiKhka7APc/видео.html

  • @tom_something
    @tom_something 4 года назад

    Why is it that a major piece of software can be provided to consumers as a pre-compiled executable which seems to work on all CPUs within a specific operating system, rather than the user having to compile from source for their hardware? (You can probably guess I'm an absolute beginner when it comes to compiled software.)

    • @ghume79
      @ghume79 4 года назад

      Because it has been precompiled for the main CPU families and operating systems. That is when you click on a download link, you would be given the executable that is pre-compiled for your system.

  • @gr33ngunner007
    @gr33ngunner007 4 года назад

    Just to be clear about interpreting, the interpreter doesn't convert the source code to machine code during runtime. Instead a separate pre-compiled program called the interpreter looks at your source code and then decides which functions in itself it will use to get the same effect. The interpreter is a program that already has all the basic functions of a program build into it and is compiled for a specific machine. In reality you always have to have some part of your language dependent on the type of processor due to their unique instruction sets. Java on the other hand actually does compile as it runs each line at a time but this is possible because it firsts compiles java to an intermediate language called byte code. The byte code can be optimized here for runtime-compilation, then it compiles one line at a time directly to machine code. This is referred to as Just In Time (JIT) compilation. A good thing about this is once the program is compiled once, it doesn't have to recompile until some changes are made. That also goes for byte code, you can pass that around after compiling to any machine that has the java virtual machine. A rough analogy for all the systems could be compiling is like ordering a chair from a factory. You give the factory blueprints and it creates the chair from scratch. [Code -> Machine Code] Interpreting is like going to a store that has pre-built chairs, the store looks at your blueprint and finds the best match to what you want. Meanwhile, the store already stocked up on chairs made from a factory. [Code -> Fed into Interpreter -> Interpreter executes some basic function for one expression of code] Java or JIT is like ordering from IKEA. The factory will pre-build parts of the chair for you, but once you get the package at home, you have to put the parts together on the fly. [Code -> Byte code -> runtime compilation] This is my basic understanding of these systems and I hope it helps.

    • @navneetiyer
      @navneetiyer 4 года назад

      Thanks

    • @gaborm4767
      @gaborm4767 3 года назад

      what is the benefit of interpreter over compiler?

  • @coldflames3603
    @coldflames3603 4 года назад

    Finally understand the difference. Thnx

  • @inang1968
    @inang1968 4 года назад

    4:33 wait did u say computer engineers? I just graduated from that but had no idea we do those to improve??? Im shookt

  • @igmetrix1481
    @igmetrix1481 4 года назад

    Why can't I compile a single line????

  • @samuelp7847
    @samuelp7847 4 года назад

    Why do I need to compile my JavaScript changes before I check into the build then? Am I technically “compiling” it into IL?

  • @peterwan816
    @peterwan816 4 года назад

    great video, nice voice, clear video and logics. Impressive content.

  • @VirtuesQuest
    @VirtuesQuest 4 года назад

    Thanks so much for sharing. I am taking a class now. Programming is tough for me. I am a visual learner. This helped a ton.

  • @joefivaz6087
    @joefivaz6087 4 года назад

    is it too difficult to be clear about whether you are representing a compiler or interpreter?

  • @pepaokurka3892
    @pepaokurka3892 4 года назад

    This is an excellent video! Thank you :)

  • @charlesliang4118
    @charlesliang4118 4 года назад

    Thanks man really clear and simple video

  • @YektaSarioglu
    @YektaSarioglu 4 года назад

    Thank you for the clear explanation. Your videos are awesome. Keep it up man 👍

  • @bryanstark324
    @bryanstark324 4 года назад

    Wait a minute what??? Java and C# are compiled languages not interpreted!

  • @lamebrisee
    @lamebrisee 4 года назад

    superb !!

  • @Stoic623
    @Stoic623 5 лет назад

    is Java not cross-platform.?

    • @ghume79
      @ghume79 4 года назад

      Yes it is

  • @fitcrocompany7467
    @fitcrocompany7467 5 лет назад

    Are you whispering in the mic?

  • @johnbrooks5752
    @johnbrooks5752 5 лет назад

    cool thanks. I wish my brain was like C#(interpreter). After 2 hours of work, it stops working and needs to recompile my whole life(like C++). Which takes hours and A lot of people dont get it since its not cross platform. I need to share my private parts? My source code is private I need to make it public.

    • @auiko4
      @auiko4 4 года назад

      and people might get it… each person has kind of the same source codes, if we go on with the metaphor ;)

  • @vezcalizee_
    @vezcalizee_ 5 лет назад

    Thank you so much man, i owe you one... your video helps me for my college task hahaha...

  • @arturshalimov4396
    @arturshalimov4396 5 лет назад

    Thank you so much mate, I couldn't wrap my head around the idea of "compiling/interpreting", coz others use some incomprehensible examples😄

    • @toxin1882
      @toxin1882 3 года назад

      I've seen other people explain it with complicated words to sound more sophisticated.

    • @trejohnson7677
      @trejohnson7677 3 года назад

      This is pretty high level. If you truly want to understand, read the compiler book with a dragon on it, trust

  • @moussatouhami7567
    @moussatouhami7567 5 лет назад

    Thank you so much ❤️ from 🇩🇿

  • @OnsoDev
    @OnsoDev 5 лет назад

    Interpreters don't translate into machine code directly, this causes confusion for beginners. The difference between an Interpreter and Compiler is not just in timing or sequence but also on the output.

  • @userR2157
    @userR2157 5 лет назад

    which program did u use to make these slides ??

  • @DulanaSenavirathna
    @DulanaSenavirathna 5 лет назад

    Thanks.

  • @jimbo2849
    @jimbo2849 5 лет назад

    Thank you

  • @rasheedm2084
    @rasheedm2084 5 лет назад

    Great clarification ..

  • @sudhakarankmps389
    @sudhakarankmps389 5 лет назад

    Awesome broo

  • @limitless1692
    @limitless1692 5 лет назад

    Aaaa I always believed that C# is compiled ... Nice so it is interpreted .. Thanks :)

    • @MGSncB
      @MGSncB 5 лет назад

      Not exactly - the CLR JIT-compiles the CIL code method by method just before running and then native machine instructions are stored in some cache areas. It is never interpreted, and methods that are never called just don't get JITted at all. Java, on the other hand, uses the JVM interpreter to execute the bytecode, in conjunction with the HotSpot JITter when there's potential for optimization. Both C# and Java can be AoT-compiled by NGen and LLVM (for example) respectively.

  • @erensrtky
    @erensrtky 5 лет назад

    Nice explonation thank you !