Concurrency and the Internet of Things

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024

Комментарии • 12

  • @AndreasSpiess
    @AndreasSpiess 5 лет назад +1

    Thank you for mentioning my video. Good explanation. What I missed is the fact that the concurrency problem usually is solved on the operating system level. Maybe RTOS would have deserved a mentioning. And how it can be used on an ESP32 in the Arduino environment.

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

      I'm not very well versed on the details of RTOS. How would that help with something like the 3 independent LEDs example or implementing asynchronous IO handling at the code level (as in responding to IO events without blocking)? For JS, since it's all built around an event loop (similar to that provided by Python's asyncio) those things are handled with callbacks or "promises". Even on platforms like NodeJS (despite usually running on proper Linux web servers).

    • @AndreasSpiess
      @AndreasSpiess 5 лет назад +2

      Maybe you watch my video ESP32 on steroids. You basically create tasks which run completely independent from each other. RTOS does the switching. In the ESP32 you even can run two tasks in parallel if you wish because it has 2cores. But only optional.

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

      @@AndreasSpiess Just watched your video. Ahh. I see. That is pretty cool. And you're right, I could have mentioned RTOS as being a sort of compromise between something like RPi and lower level micro platforms. For me it's still extra boilerplate code to work with compared to the JS model. It also further complicates things when you need to manage shared state between those tasks. And, probably more importantly, it would limit my target platform to those beefier boards. I've been running Espruino smoothly on a tiny little nRF52832.

    • @AndreasSpiess
      @AndreasSpiess 5 лет назад +2

      I do not know Espurino yet and I do not want to be right or wrong. Just wanted to mention that RTOS exists and is quite widely used;-) I for sure will have a look at espurino as the main developer asked me to do so.

  • @williambello4089
    @williambello4089 5 лет назад +2

    Very good. Keep it up. :-)

  • @jasonc.7877
    @jasonc.7877 5 лет назад

    "regularly posting all of your private data to creepy remote server" nice

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

    u could use a phone microphone and it's still have more quality audio than this video. Try it

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

      lol, I did record it on a phone microphone (a Pixel). It doesn't sound that bad to me, just a little bit of echo.

    • @joelmatondang7037
      @joelmatondang7037 5 лет назад +1

      @@DavyBot how? i thought pixel had a great microphone . . . it's lack of low and mid,

    • @DavyBot
      @DavyBot  5 лет назад +1

      I don't have a very bass-y voice to begin with but it might be the noise removal I used (Audacity). Without removing noise there's too much background static since I don't have soundproofing. I could try using some EQ profiles next time. But, yeah, I really just need to get a decent mic and find a way to soundproof a bit so I don't need as much noise reduction.

    • @joelmatondang7037
      @joelmatondang7037 5 лет назад +1

      @@DavyBot yeah, i used eq a lot when i edit a video with me or my friends voice in it. I used fabfilter q2 btw