SFNode Meetup: GUN with Mark Nadal

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • meetup page: www.meetup.com...

Komentáře • 5

  • @JoeyTen
    @JoeyTen Před rokem +1

    Why write a whole JSON parser vs. just using the native parser in a worker thread? JS doesn't *have* to be single-threaded anymore, right?

    • @thedoctor5478
      @thedoctor5478 Před 11 měsíci +1

      I was wondering this as well. I'm sure Mark has a good reason though. He's obsessed.

    • @Aquiva
      @Aquiva Před 8 měsíci +5

      ​@@thedoctor5478 & @JoeyTren because to pass the results of that parse back to the app or main thread needing it... requires... you guessed it, to serialize it again! Lolol how could they mess this up, that we have to do things like what I did? Some types of objects can be memory pointer swapped (TransferrableArrays, but not JSON/objects!) and worker/threaded parse + Structured Clone isn't as fast. There's also the complexity of it, and less cross-environment/platform friendliness. Book's parseless approach tho will make swapping between threads (and machines) for stuff like this trivial tho, but it replaces JSON entirely. Last commit was pretty close to MVP for people to alpha test, started writing an example/sample for docs, hopefully coming soon (no timeline, oops haha). Thumbs up that you got this message.

  • @thepr0m3th3an
    @thepr0m3th3an Před rokem

    Urbit is the decentralized web.

    • @austinshearmen9210
      @austinshearmen9210 Před rokem +3

      I checked it out and while it seems cool I think its dead in the water. You need to pay money to join the network, and even though that'd probably be a good direction for humanity to take, theres no way normies would ever get on board with that