Live data from Hacker News

Svelte Native

svelte-native.technology

81–90 of 93 posts

Re: Svelte Native

#81
post #59

Earlier quoted context omitted.

Because they run JS on main thread while react native tries to minimise it at all costs (only keeping rendering and animations, but not layouts for example).

[dead]

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.

Re: Svelte Native

#82
post #45

Earlier quoted context omitted.

Back when Svelte Native was created it was pretty much endores by the maintainers, there's even a channel for it on the official Svelte Discord :)

Moreover, it was made by one of the folks who brought TypeScript support to Svelte ( https://github.com/halfnelson/svelte2tsx ), so although it may not be explicitly pushed by the core team, it was still made by a significant core contributor. I'll note that React is the only web renderer that gives official blessing to a native framework, and that's because it's also the only web renderer that built one themselves r…

100% agree

Re: Svelte Native

#83
post #60
post #36

I’ve done a couple React Native apps and never again. They’re fine at first but if you let one sit for a few months there is a combinatorial explosion of complexity among shifting incompatibilities of different versions of javascript libraries, the framework, android/iOS versions, build systems, etc. it becomes a nightmare. I’d much rather just learn Kotlin/Swift and have only one ecosystem to maintain.

This is a very weird thing to say when expo is literally one line installation and it does not require you anything to be installed (even XCode) on machine for most projects. It is literally 10x times easier than just writing in Swift.

If you don't need any native plugins other than those provided by Expo Go, then yes.

If you do need other libraries, or add native code yourself, the package system becomes a nightmare. It is NPM packages on top of Cocoapods on top of a XCode/Swift/Objective-C compile process. Only slightly better on Android.

Want to make a change to a library? Good luck getting linking working on your local setup.

Cordova had exactly the same issues. I'm not sure if Ionic Capacitor is better, but this is one area where Flutter is miles ahead.

Re: Svelte Native

#84
post #3

Whatever the merits of this project -- and it does seem to be useful -- they should be a little clearer about the fact that it's not actually part of the "official" svelte framework. I'm sure they consider it a tribute but it fees a little deceptive that they're cloning the svelte docs look and feel without any kind of "who we are" statement.

Not sure if this is new but the docs start with a pretty strong disclaimer: https://svelte-native.technology/docs#important-note

Re: Svelte Native

#85
post #36

I’ve done a couple React Native apps and never again. They’re fine at first but if you let one sit for a few months there is a combinatorial explosion of complexity among shifting incompatibilities of different versions of javascript libraries, the framework, android/iOS versions, build systems, etc. it becomes a nightmare. I’d much rather just learn Kotlin/Swift and have only one ecosystem to maintain.

Writing a Windows app, MacOS app, Linux app, iOS app and Android app is a nightmare because of the insanity and divergence of the SDKs. They could all have a common API with OS-specific extensions - but instead of that, everyone is trying to make their own API. As a result, developers just write everything in electron/WebKit/WebView. I wish there was an open standard API for writing native desktop/mobile apps that OS…

Yeah they did that multiple times already. One of them was Java/JVM. That was exactly how they pitched it in 1998

Re: Svelte Native

#86
post #60

Earlier quoted context omitted.

This is a very weird thing to say when expo is literally one line installation and it does not require you anything to be installed (even XCode) on machine for most projects. It is literally 10x times easier than just writing in Swift.

If you don't need any native plugins other than those provided by Expo Go, then yes. If you do need other libraries, or add native code yourself, the package system becomes a nightmare. It is NPM packages on top of Cocoapods on top of a XCode/Swift/Objective-C compile process. Only slightly better on Android. Want to make a change to a library? Good luck getting linking working on your local setup. Cordova had exactl…

in 2023 it is a one liner to add native modules, very easy to link via normal cocoapods or gradle, then almost zero configuration.

Flutter is a joke because it reimplements literally what apple intended to perfect - rendering pipeline, a lot of things impossible to make good without using native api.

Re: Svelte Native

#88

Earlier quoted context omitted.

I agree it's MUCH better than it used to be (and huge credit to Jen Simmons and her team for making this possible). However Safari APIs are still WAY behind Chrome/Android and I think this is probably intentional to push developers into using the App Store so Apple can collect their 30% tax https://fugu-tracker.web.app/

It's absolutely intentional, but going to slowly get better even as they drag their feet

i wonder when someone is going to sue apple over this absurd limit. There's 0 justification for it, it's almost the definition of racket.

Re: Svelte Native

#89
post #36

I’ve done a couple React Native apps and never again. They’re fine at first but if you let one sit for a few months there is a combinatorial explosion of complexity among shifting incompatibilities of different versions of javascript libraries, the framework, android/iOS versions, build systems, etc. it becomes a nightmare. I’d much rather just learn Kotlin/Swift and have only one ecosystem to maintain.

I have a mobile app sitting around. Wrote it in 2020ish, Corona year. The mobile app is written in flutter and the server is in Go, you probably know by now where I'm heading with this.

I cannot even express how hellish and nightmare that whole flutter thing is: I'm worried about the engine itself (there were breaking changes in the typing system itself that I'd need to worry about), the libraries and packages to update. And not to even stop at the building (signing) stage with the whole ruby shenanigans that needs to match and work well with xcode.

Now compare that to go.

Re: Svelte Native

#90
post #86

Earlier quoted context omitted.

If you don't need any native plugins other than those provided by Expo Go, then yes. If you do need other libraries, or add native code yourself, the package system becomes a nightmare. It is NPM packages on top of Cocoapods on top of a XCode/Swift/Objective-C compile process. Only slightly better on Android. Want to make a change to a library? Good luck getting linking working on your local setup. Cordova had exactl…

in 2023 it is a one liner to add native modules, very easy to link via normal cocoapods or gradle, then almost zero configuration. Flutter is a joke because it reimplements literally what apple intended to perfect - rendering pipeline, a lot of things impossible to make good without using native api.

When it works it's that simple. When it doesn't - perhaps because of some incompatibility between the native model and a recent Expo update, it's hours of debugging through the different layers to figure out what's going on. That's my experience starting a React Native project in 2023.

Flutter has issues with not using native UI, but I've found the package system with native modules to be way simpler and less issues. Unfortunately you're still stuck with Coacoapods though.

Post reply on HN