AOT vs JIT compilation in Flutter

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to this new video in this video we will discuss about aot versus git compilation in a flutter so get ready to learn how this technique influence development and deployment phase so basically this two process making flutter are powerful for building Dynamic application so without further Ado let's get [Music] start so as you know that we have to go through two different phase whenever we create any dot or flutter application the development phase and the deployment phase the development phase is when you write run debu and test your application alternately the deployment phase is also referred to as the production mode or we can say release mode and it's also we can say is this when you are about to release your final application now let's GL into each section in depth and discuss the development phase when deploying desktop or mobile application the program is hand over to jit which is a just in time compiler in constant to regular compiler J allow you to modify source code while the program is running it also elimin in the need to stop application and recompile git perform runtime translation of your code it also knowing as Dynamic compilation or compilation on the fly so this feature enable flutter to support hot reloading also combining git with. virtual machine allow you to execute your code on on any device irrespective of its architecture so executing your flutter application involves dispatching your code to any connected device whether it's Android phone iOS phone or desktop application regardless of device architecture or Hardware so as you can display your code seamlessly now this is a approach for developing desktop and mobile application using flutter and Dot to develop desktop or mobile application you need to compile them with a git compiler along with a data virtual machine however when deploying the application aot compilation is required because aot produce native specific code based on your requirements instead of relying on git for w application you need to compile using the DC compiler which is a do development time compiler this compiler transform your dot application into JavaScript code for the final release deployment instead of DC you should use the tojs compiler tojs is a do to JavaScript compiler that convert your code into optimize JavaScript code for web browser the reason for having two different compilation technique for deployment and development is straightforward as a software developer a repat development cycle and dynamic compilation are desired on the other hand end user preferred application that start quickly and are optimized in terms of size and performance so this constraining requirement lead to use the jit and Doc during development and eot and do tojs for deployment let's look at the development of web application generally in this case a do program is compiled using compiler called Devy which is stand for do development in compiler it is a smart compiler that convert do code into highly optimized JavaScript code that run on Google Chrome this part compiler will be seen by them because when we have a modification to the dot application it will be dispatched in your final output instead of compiling the entire code which this technique you your development time will definitely be speed up now let's discuss our four strategy for developing a flutter application which is a stand application aot compiled web and Native we in the case of developing a stain application your dot program is compiled using the normal dot compiler and the compiled code can only be executed on the machine where the virtual machine can be found in order to run this panel application you must have a virtual machine otherwise you cannot run the Standalone programs the question arises is to where I can get this DVM so you can get this with the SDK or the flutter SDK so OT compiled is very important part of flut and applic ation deployment the dot program is compiled using a technique called aot which is ahead of time compilation so before your program is deployed this kind of combination occurs by using aot compilation it convert your do program into a specific plateform executable binary file using this kind of translation for Android we can get this APK for iOS we can get IPA and for Windows we can get the dot exe it is this secret that allow Dot and flutter to have the feature of multiplatform application development let's take a look for deploying web application so when you are deploy a web application the dot application is compiled using tojs which is to JavaScript compilation so it convert your do application into op device Java descript code that can be execute on any web browser so let's look at for deployment of native application so if your do application is being compiled with the do to Native compiler which is able to compile it into platform a specific code such as for Windows Linux and Mac with this using ofter native compiler so that's all about my information on this topic so if you enjoy this video give it thumbs up and hit subscribe button your support means a lot so stay tuned for more videos and thank you for being here have a good day
Info
Channel: CodingMiles
Views: 337
Rating: undefined out of 5
Keywords: #Flutter, #AOTCompilation, #JITCompilation, #MobileAppDevelopment, #FlutterDevelopment, #CodingTips, #Programming, #TechExplained, #SoftwareDevelopment, #ProgrammingTutorial, #flutter, #dart
Id: fehwaI5LKT8
Channel Id: undefined
Length: 7min 55sec (475 seconds)
Published: Mon Jan 15 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.