top | item 43173718

(no title)

herrkanin | 1 year ago

As a web dev, it’s been fun listening to Accidental Tech Podcast where Siracusa has been talking (or ranting) about the ins and outs of developing modern mac apps in Swift and SwiftUI.

discuss

order

Analemma_|1 year ago

The part where he said making a large table in HTML and rendering it with a web view was orders of magnitude faster than using the SwiftUI native platform controls made me bash my head against my desk a couple times. What are we doing here, Apple.

BobAliceInATree|1 year ago

SwiftUI is a joke when it comes to performance. Even Marco's Overcast stutters when displaying a table of a dozen rows (of equal height).

That being said, it's not quite an apples to apples comparison, because SwiftUI or UIKit can work with basically an infinite number of rows, whereas HTML will eventually get to a point where it won't load.

airstrike|1 year ago

Shoutout to iced, my favorite GUI toolkit, which isn't even in 1.0 yet but can do that with ease and faster than anything I've ever seen: https://github.com/iced-rs/iced

https://github.com/tarkah/iced_table is a third-party widget for tables, but you can roll out your own or use other alternatives too

It's in Rust, not Swift, but I think switching from the latter to the former is easier than when moving away from many other popular languages.

megaman821|1 year ago

I wish there were modern benchmarks against browser engines. A long time ago native apps were much faster at rendering UI than the browser, but that may performance rewrites ago, so I wonder how browsers perform now.

spiderfarmer|1 year ago

As a web dev I must say that this segment made me happy and thankful for the browser team that really knows how to optimize.

mohsen1|1 year ago

Hacker News loves to hate Electron apps. In my experience ChatGPT on Mac (which I assume is fully native) is nearly impossible to use because I have a lot of large chats in my history but the website works much better and faster. ChatGPT website packed in Electron would've been much better. In fact, I am using a Chrome "PWA App" for ChatGPT now instead of the native app.