Komentáře •

  • @philosophia5577
    @philosophia5577 Před 2 měsíci +75

    WOah! Technique of The week, a very lovely initiative by the Team! Hoping to see a lot more useful stuff here!!

  • @venir_dev
    @venir_dev Před 2 měsíci +11

    this series will be lit 🔥

  • @TheManuz
    @TheManuz Před 2 měsíci +3

    Really useful video, can't wait for the next "Technique of the week"!

  • @orihpt
    @orihpt Před 26 minutami

    dart is so simple its funny sometimes. thank you for not making us deal with annoying things to do this.

  • @sohamjobanputra2914
    @sohamjobanputra2914 Před 2 měsíci +2

    what a great presentation series!!

  • @dcdales
    @dcdales Před 2 měsíci +3

    This is super important when you're dealing with AI and images!
    Used this type of function for object detection of foods in a diet app I made. App wasn't great, but learning about this was very useful!

  • @tropicarls
    @tropicarls Před 2 měsíci

    Very interesting. I didn't know about isolates. Will be researching them a bit more now. Thanks for this!

  • @CoIin1994
    @CoIin1994 Před 2 měsíci +51

    Should have mentioned compute at the end.

  • @jajasaria
    @jajasaria Před 2 měsíci

    thank you Flutter Team!

  • @mikopiko
    @mikopiko Před 2 měsíci

    Interesting series, I hope we see more of it!

  • @RazyNovian
    @RazyNovian Před 2 měsíci

    This is what I needed 👍, thank you Flutter 🥳

  • @zeb_lala134
    @zeb_lala134 Před 2 měsíci +1

    This is freaking awesome and life changing

  • @wembleyleach
    @wembleyleach Před 2 měsíci +1

    I’m like like this segment. I can already tell.

  • @muhammadrasul1581
    @muhammadrasul1581 Před 2 měsíci

    from what i remember isolates where implemented different than what they describe in the video, this seams legit easy!!

  • @MirkoGonzalezVasquez
    @MirkoGonzalezVasquez Před 2 měsíci +1

    Excellent!

  • @_Amilio_
    @_Amilio_ Před 2 měsíci

    Concise and clear 👌

  • @kevinrosario9282
    @kevinrosario9282 Před měsícem

    it was about time!!!!

  • @Murugesan-em6xl
    @Murugesan-em6xl Před 2 měsíci

    I love this video, thank u

  • @junveld4830
    @junveld4830 Před 2 měsíci +13

    finally Isolates!

  • @mobar14
    @mobar14 Před 2 měsíci

    Thank you 🎉

  • @rakshithadilshan9888
    @rakshithadilshan9888 Před 2 měsíci +1

    flutter is growing so fast

  • @domingomg7289
    @domingomg7289 Před 2 měsíci

    Thanks!

  • @saibotblack
    @saibotblack Před 2 měsíci

    so great!!! 😀

  • @ulmasbekrakhmatullaev8808
    @ulmasbekrakhmatullaev8808 Před 2 měsíci +1

    good job flutter team

  • @rajkumar07793
    @rajkumar07793 Před 2 měsíci

    Proud to be Flutter Developer

  • @user-xk9hy8np9p
    @user-xk9hy8np9p Před 2 měsíci +6

    플러터를 죽이지마세요 최고의 앱제작 프레임워크입니다

  • @adil_elkhallouki
    @adil_elkhallouki Před 2 měsíci +3

    You can use it with background elements, such as apps that allow users to listen to sound in the background while continuing to use the app.

    • @Beartato1989
      @Beartato1989 Před 2 měsíci +1

      Yeah I was just thinking, I have an app using geofencing and this would be a good candidate to use while it listens to the realtime geofence reporting

  • @jdabbasi990
    @jdabbasi990 Před 2 měsíci

    Flutter all the way!!!! 💗

  • @wjcwukong
    @wjcwukong Před 2 měsíci +1

    amazing

  • @mohammad-karbalaee
    @mohammad-karbalaee Před měsícem

    Perfection

  • @flutterwithvitul
    @flutterwithvitul Před 2 měsíci

    Waiting is end now 🤩

  • @PratikButani
    @PratikButani Před 2 měsíci

    Technique of the week:
    It will be really useful after Widget of the week. ❤

  • @3moalsokni502
    @3moalsokni502 Před 2 měsíci

    Fire 🔥

  • @pedrosantos4368
    @pedrosantos4368 Před 2 měsíci

    AWESOME

  • @the_dude_josh
    @the_dude_josh Před 2 měsíci +1

    Yo that's actually huge. more, I need more!

  • @maxmuain7220
    @maxmuain7220 Před 2 měsíci +3

    Can you use isoltes for Web?

  • @bkerk
    @bkerk Před 2 měsíci +3

    As much as I love the idea of this. I feel like this should have been implemented into flutter itself behind the scenes.
    As soon as I try to implement Isolates, with either this code or with flutter_isolate, I run into one problem after the next, such as:
    Unhandled Exception: Invalid argument(s): Illegal argument in isolate message: object is unsendable - Library:'dart:async' Class
    NoSuchMethodError: No top-level getter 'xxx' declared.
    Null check operator used on a null value
    Unhandled Exception: type 'Null' is not a subtype of type 'int' in type cast
    Even with top level functions, @pragma('vm:entry-point') and everything else - it just doesn't like my set up project.
    Seems too rough around the edges to use at the moment. Would be much nicer to just use it like we use the "async" word.

  • @SalexTT
    @SalexTT Před 2 měsíci

    awesome

  • @arnoldsalazar3726
    @arnoldsalazar3726 Před 2 měsíci

    Son los mejores

  • @jaycarter592
    @jaycarter592 Před 2 měsíci +1

    nice

  • @epicwinpro
    @epicwinpro Před 2 měsíci

    Hello! @flutterdev Just wondering if there might be a chance you could PLEASE do a intro to flutter series?
    I know that one was done 2 years ago but you can see my notes there - it could use some updating to say the least... in fact, to be blunt, it needs to be redone entirely, if you ask me. Again, see my notes on that playlist ( on the 3rd or maybe fourth video) long story short please please please please please do an intro to flutter series!

  • @thorstenschmidt21
    @thorstenschmidt21 Před 2 měsíci +1

    For the algorithm!

  • @akshat_tamrakar
    @akshat_tamrakar Před 2 měsíci

    What if we load the file inside the isolate instead of before it?

  • @Hoangdinhthangloi
    @Hoangdinhthangloi Před 2 měsíci

    Yeah

  • @vinniejefferson846
    @vinniejefferson846 Před 2 měsíci

    lit!

  • @srhanzd3022
    @srhanzd3022 Před 2 měsíci

    🔥🔥🔥

  • @dam.s
    @dam.s Před 2 měsíci

    The final statement could benefit from some further explanation (outside the scope of this original video):
    "Although the callback doesn't have arguments, it captures the variables it needs because it's a closure."
    An explanation of "closures" specifically would be helpful, but also why I would need to be concerned with the "capturing of variables" in the first place.
    Until you mentioned, "although [it] doesn't have callbacks," I hadn't even considered why that would be relevant-closure or not.

  • @messi8ballon_dor
    @messi8ballon_dor Před 2 měsíci

    Cool

  • @trungbui7518
    @trungbui7518 Před 2 měsíci +1

    But we can't use isolate in web

  • @sergey_molchanovsky
    @sergey_molchanovsky Před 2 měsíci +1

    What a difference between Isolate.run() and an existing compute() function? Because it works not only in Flutter but in pure Dart too?

    • @KhanhFlutter
      @KhanhFlutter Před 2 měsíci +1

      Isolate.run doesn't work on web - so Compute() method runs the computation on the main thread on the web, but spawns a new thread on mobile. So to steal the example from the docs that made it click for me, compute(fun, message) is equivalent to await Isolate.run(() => fun(message)).

  • @joebastulli
    @joebastulli Před 2 měsíci +1

    Now make Isolate work in web apps!

  • @megadeath15
    @megadeath15 Před 2 měsíci +2

    You should add support FOR WEB!!!

    • @PhilippeMakzoume
      @PhilippeMakzoume Před 2 měsíci +1

      you can implement service workers on web if really needed.

    • @megadeath15
      @megadeath15 Před 2 měsíci

      @@PhilippeMakzoume Well I dont want yo touch Javascript for anything, flutter should include web support in Dart

  • @user-xm1sg2mf5r
    @user-xm1sg2mf5r Před 2 měsíci +2

    When is it supported web platform

    • @RandomCommentator15
      @RandomCommentator15 Před 2 měsíci

      Isolates.run() doesn't work on web - so Compute() method runs the computation on the main thread on the web, but spawns a new thread on mobile. So to steal the example from the docs that made it click for me, compute(fun, message) is equivalent to await Isolate.run(() => fun(message)).
      Got this answer from @KhanhFlutter

  • @pedrofarias6470
    @pedrofarias6470 Před 2 měsíci

    Future async functions don't run in another thread as well?

  • @ansgkffx
    @ansgkffx Před 2 měsíci +1

    so Dart isolates are Golang go() right?

    • @mikopiko
      @mikopiko Před 2 měsíci

      No, the goroutine share the memory, Dart isolates does not.

  • @MVCS_SpandanMN
    @MVCS_SpandanMN Před 2 měsíci +1

    finally

  • @baadrqaaba9529
    @baadrqaaba9529 Před 2 měsíci +1

    In my opinion nothing beats Kotlin Coroutines .

  • @amirhassanamirmahani6149
    @amirhassanamirmahani6149 Před 2 měsíci +1

    What's the difference between compute() method and Isolate.run()?

    •  Před 2 měsíci +1

      Basically none, except that .compute() is "safe" to run in web as well, with the caveat that it will not run in another thread/worker. If you dig into the compute function you will quickly see it's very minimal implementation :)

    • @amirhassanamirmahani6149
      @amirhassanamirmahani6149 Před 2 měsíci +1

      ​@ awesome tnx

  • @IshaanBahal
    @IshaanBahal Před 2 měsíci +1

    Anyone reading this, and wondering if isolates work in web, they don't. The design of isolates in itself isn't straight forward due to static data requirements without context passing like other languages but on web, only web workers work with quite a bit of work.
    Not disuading anyone, just putting information out there.

  • @joaopaulolima9612
    @joaopaulolima9612 Před 2 měsíci

    So it’s like assynchronous code for the UI? 😂

  • @No-necesitoSuscriptores
    @No-necesitoSuscriptores Před měsícem

    Por favor resuelvan la incertidumbre van a cerrar o no? va hacer una tecnología muerta o no? porque no vale la pena aprender algo que no te proyecte a futuro se que para que una tecnología muera no es de la noche a la mañana pero si seria bueno saber?😭😭🙏🏻

  • @teejam2
    @teejam2 Před 2 měsíci

    How is this similar or different to async/await

    • @RandomCommentator15
      @RandomCommentator15 Před 2 měsíci

      It is different, async/await still run on the same thread in which the UI loads and can reduce the frame rates.

  • @treeplate512
    @treeplate512 Před 2 měsíci +8

    just make sure you don't get a race condition

    • @krtirtho
      @krtirtho Před 2 měsíci +2

      Is that possible though, because the memory isn't shared. Unless, we do IO/File operations inside of it which I guess doesn't make sense to do there

    • @HankyUSA
      @HankyUSA Před 2 měsíci

      ​@@krtirtho Memory isn't shared? What about the closure? Is everything copied?

    • @hellpunch9414
      @hellpunch9414 Před 2 měsíci +1

      @@HankyUSA yeah its copying which means it isn't really optimal to do like in the video for large files.

    •  Před 2 měsíci

      @@hellpunch9414 Indeed, in cases like that you'd probably want to stream the file over to the Isolate a bit at the time.

  • @romansoviak3290
    @romansoviak3290 Před 2 měsíci +143

    Like if you have never used it

    • @myxzlabs5635
      @myxzlabs5635 Před 2 měsíci +6

      But this is powerful stuff here

    • @nialegu
      @nialegu Před 2 měsíci +4

      I have used compute() functions instead isolates

    • @pato0590
      @pato0590 Před 2 měsíci +1

      ​@@nialegu it's the same thing internally

  • @dev_bits
    @dev_bits Před měsícem

    So you couldn't give it more conventional name like Thread.

  • @ferdaushossan6629
    @ferdaushossan6629 Před 2 měsíci

    can Google kill flutter

  • @andreygritsay762
    @andreygritsay762 Před 2 měsíci +1

    This is not even useful in most cases: you cannot use dart:ui on an Isolate, this is just ridiculous. Spawning Isolate takes more time than deserializing JSON (below 2 mb) on the main thread

    • @sergey_molchanovsky
      @sergey_molchanovsky Před 2 měsíci +5

      It was long time ago when isolates were slow.
      Now, with Isolate Groups introduced in Dart 2.15, spawning and disposing of an isolate is blazingly fast.

    • @mikopiko
      @mikopiko Před 2 měsíci

      @@sergey_molchanovsky That's good news

    • @andreygritsay762
      @andreygritsay762 Před 2 měsíci

      @@sergey_molchanovsky I tried Isolate.run() mentioned in the video, it took 300 ms to spawn, slower than deserialization on main thread (50 ms). Maybe I overlooked something?

    • @andreygritsay762
      @andreygritsay762 Před 2 měsíci

      @@sergey_molchanovsky I tried Isolate.run() and it took 300 ms to deserialize whilst on the main thread it was only 50 ms, so I cannot understand what "blazingly fast" means

    • @andreygritsay762
      @andreygritsay762 Před 2 měsíci

      @@sergey_molchanovsky maybe I overlooked something, but deserializing json with the method mentioned in the video took 300 ms when I tried it and only 50 ms on main thread
      Hope youtube won't delete my comment for the 3rd time

  • @charithasds
    @charithasds Před 2 měsíci +1

    First comment!

  • @victor45436
    @victor45436 Před 2 měsíci

    Thank you google you’re trying to kill your best framework 💀 WHY?

    • @No-necesitoSuscriptores
      @No-necesitoSuscriptores Před měsícem

      Bro tu que sabes ingles que sabes de la noticia encerio va a morir el framework?

  • @jaesangsong8599
    @jaesangsong8599 Před 2 měsíci

    flutter will be die

  • @Thioby
    @Thioby Před 2 měsíci +1

    Wow...maybe you should mention that flutter is so awesome that does not support isolates on web. 2/10

  • @3moalsokni502
    @3moalsokni502 Před 2 měsíci

    Fire 🔥

  • @chemseddineabdelouahab1905
    @chemseddineabdelouahab1905 Před 2 měsíci

    nice

  • @sujalutekar9417
    @sujalutekar9417 Před 2 měsíci

    🔥🔥🔥🔥🔥

  • @gondaimgano
    @gondaimgano Před 2 měsíci

    nice