Workers look cool and the vite plugin abstracting away the messaging makes them even cooler, but I've yet to run into a scenario where I would actually need them in a web application
@AtilaDotIO4 күн бұрын
You don't need to do it only for very heavy computations, you can use them when adding a 3rd party script, because they don't have access to the DOM APIs, it's safer. Also, it prevents the script from sabotaging your main thread if it ever has issues.
@haonus7 күн бұрын
Thanks! Web Workers are really cool. I used to be a Python developer before learning SolidJS, and I’ve noticed some differences between coroutines in Python and JavaScript. This video has been incredibly helpful. By the way, I’ve never deployed SolidStart in Deno before. Does its performance truly live up to the official claims?
@AtilaDotIO5 күн бұрын
I'm using Deno Deploy, the cloud service. I haven't worked this much with the Deno runtime to notice a significant difference in performance. I'm not exactly familiar with Python, can you tell me more about the differences you noticed?
@haonus5 күн бұрын
@@AtilaDotIO Python’s coroutine scheduling is limited to explicitly registered coroutines, while JavaScript flexibly schedules both ordinary functions and asynchronous tasks. What's more, Python emphasizes optimizing thread scheduling through explicit coroutine registration, while JavaScript relies on the flexible use of await and task design for efficient thread use.
@chris_kouts7 күн бұрын
Can you please make a crazy video titled “solid js + web workers + wasm = 2099”
@AtilaDotIO5 күн бұрын
That's a very interesting concept!! 👀 Let me see if I get something working
@haonus5 күн бұрын
could you show that how to deploy in deno? thanks
@AtilaDotIO5 күн бұрын
Absolutely! I'll record one soon enough (I want to deploy the app in my WebSockets video and Deno Deploy is perfect since they support web sockets!). if you don't want to wait, you can use the Nuxt preset - since SolidStart and Nuxt have the same backend runtime, they work exactly the same, no additional action needed.
@haonus3 күн бұрын
@@AtilaDotIO Great! I have successfully deployed the WebSocket feature mentioned in your video before, using the Nuxt preset in Deno Deploy. It works; however, there is an error when a user visits the solid-chat web app. I plan to look into it further next weekend. I am looking forward to your new video. Thanks!