Re:Verso – web browser built on top of the Servo web engine
by ChocolateGod on Sunday August 11, 2024 @09:43AM
(#41216097)
I'd like to see Swift adopted more on non-Apple operating systems, some of the recent GTK apps written in Swift are pretty cool.
[ Parent
| on HN ]
Re:Verso – web browser built on top of the Servo web engine
by nbbaier on Sunday August 11, 2024 @10:54AM
(#41216601)
What apps are you thinking of? Curious to check them out.
Re:Verso – web browser built on top of the Servo web engine
by _thisdot on Monday August 12, 2024 @12:32AM
(#41221177)
Arc Browser on macOS and Windows is a decent example
Re:Verso – web browser built on top of the Servo web engine
by favorited on Monday August 12, 2024 @09:28PM
(#41231279)
The greenfield Ladybird browser is adopting Swift as its C++ replacement language.
Re:Verso – web browser built on top of the Servo web engine
by jamil7 on Sunday August 11, 2024 @01:53PM
(#41218011)
There's been a lot of work on this in the last few years with Windows support, preliminary Android support is also being worked on and should appear at some point in Swift 6.
Re:Verso – web browser built on top of the Servo web engine
by drekipus on Sunday August 11, 2024 @07:40PM
(#41220028)
Is swift going to do what flutter and kotlin multiplatform cannot?
Re:Verso – web browser built on top of the Servo web engine
by rodrigobellusci on Sunday August 11, 2024 @11:11PM
(#41220876)
It seems something like that already exists:
https://skip.tools/blog/scrumskipper
I mostly work with flutter but Skip looks pretty cool.
Re:Verso – web browser built on top of the Servo web engine
by jamil7 on Monday August 12, 2024 @03:21AM
(#41221952)
I think Skip is doing a lot of this via transpilation, so I think you're expected to still write a lot of Android / Kotlin code.
Re:Verso – web browser built on top of the Servo web engine
by jamil7 on Monday August 12, 2024 @03:24AM
(#41221963)
There probably won't be a cross-platform UI layer and many Apple frameworks won't work, although apparently the Foundation Swift rewrite already works. For a lot of companies though, simply being able to share business logic will be a big plus. At my current company we have a lot of talented Swift people and existing code written in the language so being able to share anything would be a huge advantage.
I'm biased but I personnaly find the language really productive to work with, runs fast enough for my needs and let's me target more and more platforms.
Re:Verso – web browser built on top of the Servo web engine
by synergy20 on Sunday August 11, 2024 @02:18PM
(#41218240)
sadly Gtk's support for MacOS is best efforts only
Re:Verso – web browser built on top of the Servo web engine
by ninepoints on Sunday August 11, 2024 @06:34PM
(#41219773)
I'd really rather not, personally. All my Swift experiences have been fighting the abysmal compilation times.
Re:Verso – web browser built on top of the Servo web engine
by nkozyra on Sunday August 11, 2024 @08:09PM
(#41220151)
That's a bit of an issue in Rust world, too.
Re:Verso – web browser built on top of the Servo web engine
by kevincox on Sunday August 11, 2024 @09:59PM
(#41220605)
Swift is pretty next level compared to Rust. Rust does seem like a fairly constant level of slow and linearly slows down as the project gets larger. Swift tends to have huge degradations on seemingly innocent changes that make the type inference go off the rails. Although at least if you spend the time to track these down you can fix the worst offenders.
Re:Verso – web browser built on top of the Servo web engine
by sokz on Monday August 12, 2024 @03:25AM
(#41221973)
Pardon me for not getting your context, but are compile times a big issue in software development? I have never programmed professionally and all my experiences with code is from a couple of classes taken in college a decade ago.
Re:Verso – web browser built on top of the Servo web engine
by franga2000 on Monday August 12, 2024 @04:04AM
(#41222207)
When doing UI things, a common workflow is to have code and the app side-by-side, make a small tweak in the code, recompile/hot-reload, look at he result, repeat. A long compile time makes workflow a pain.
Re:Verso – web browser built on top of the Servo web engine
by jamil7 on Monday August 12, 2024 @04:58AM
(#41222514)
It's not as good as Flutter/RN hot reload but SwiftUI previews do make this a lot better.
Re:Verso – web browser built on top of the Servo web engine
by notjustadog on Monday August 12, 2024 @03:14PM
(#41228214)
In general, you're right. But there are at least 2 times where they're absolutely vital- anytime you're dealing with a UI and data exploration in data science (since you make a lot of frequent, small changes in the goal of fine tuning something.) Everything else, best practices has good testing and partial compilations to make it moot. There's probably some other contexts that make it valuable, but I've never had to deal with those.