News for hackers. Stuff that matters.
Re:Svelte Native: The Svelte Mobile Development Experience by ca-tech-run on Monday January 29, 2024 @08:09PM (#39185118)
Looks like that's a good thing since NativeScript can be naturally multi-threaded: https://docs.nativescript.org/guide/multithreading Using a Worker approach or even by using natural multi-threading techniques enabled through NativeScript, for example: - using iOS DispatchQueue called from {N} here: - https://github.com/triniwiz/nativescript-plugins/blob/670817... - referenced here: https://github.com/triniwiz/nativescript-plugins/blob/670817... - Platform Ref Docs: https://developer.apple.com/documentation/dispatch/dispatchq... Similarly using Background async Tasks on Android to load bitmaps on background thread: https://github.com/triniwiz/nativescript-plugins/blob/670817...
Re:Svelte Native: The Svelte Mobile Development Experience by ex3ndr on Tuesday January 30, 2024 @03:48AM (#39187795)
No, even when you are writing directly in swift/kotlin you avoid main thread at all costs. Any overhead here is a death sentence for performance.