Earlier quoted context omitted.
Kotlin running on the JVM is a disadvantage outside of Android though in a lot of spaces. Rust/Swift/Go will use a fraction of the ram to run a server application than Kotlin will.
Kotlin compiles to the native architecture on non-JVM targets. It works just as well as using Swift on non-Apple targets, that is to say it's a bit of a pain development-wise but runs fine once you have your tool chain and interop code setup. Honestly versus either, I'd recommend dart/flutter. Insanely productive, native compiled code, performant UIs that reasonably emulate native (although I'd recommend avoiding tha…
Interoperability: Swift’s Super Power
51–60 of 74 posts
Re: Interoperability: Swift’s Super Power
#52Earlier quoted context omitted.
Which Java baggage do you mean?
Package/build management is one, gradle drives me crazy sometimes. Haven’t used maven so can’t speak about it.
Further as others have mentioned Java's 6 month release cycle and ton of changes at language/VM/library layers will make it difficult for Kotlin to choose between complying to latest JVM or chart an independent path.
Re: Interoperability: Swift’s Super Power
#53Earlier quoted context omitted.
Kotlin is a much more likely candidate. Excellent IDE support, deep integration with Java, already the go-to language for Android, many years of production and less "different" than Rust.
Kotlin running on the JVM is a disadvantage outside of Android though in a lot of spaces. Rust/Swift/Go will use a fraction of the ram to run a server application than Kotlin will.
Re: Interoperability: Swift’s Super Power
#54Earlier quoted context omitted.
Kotlin running on the JVM is a disadvantage outside of Android though in a lot of spaces. Rust/Swift/Go will use a fraction of the ram to run a server application than Kotlin will.
Also, it brings various Java baggage along for the ride, which isn’t everybody’s cup of tea. And while it’s syntactically similar to Swift, I find it to be overall less ergonomic in various ways.
Re: Interoperability: Swift’s Super Power
#55Earlier quoted context omitted.
If you are on the Apple platform only, Swift is great, and I enjoyed using Metal myself. But eventually I accepted how much it limited what I can do as a developer. So, I prefer TypeScript now. I am not touching C++ or stuff like that, if I need performance, I compile to web assembly, hopefully soon from my own language :-)
Web Assembly and performance on the same sentene is an oxymoron.
Re: Interoperability: Swift’s Super Power
#56Earlier quoted context omitted.
Web Assembly and performance on the same sentene is an oxymoron.
WebGPU + WebAssembly + TypeScript is going to be a pretty potent combo. I doubt Swift + Metal is more performant. Actually, when I translated some Swift code to JavaScript, it ran faster.
If you failed to make Swift + Metal perform better than JavaScript, there is something really horrible with your code.
Re: Interoperability: Swift’s Super Power
#57Earlier quoted context omitted.
Kotlin running on the JVM is a disadvantage outside of Android though in a lot of spaces. Rust/Swift/Go will use a fraction of the ram to run a server application than Kotlin will.
Kotlin compiles to the native architecture on non-JVM targets. It works just as well as using Swift on non-Apple targets, that is to say it's a bit of a pain development-wise but runs fine once you have your tool chain and interop code setup. Honestly versus either, I'd recommend dart/flutter. Insanely productive, native compiled code, performant UIs that reasonably emulate native (although I'd recommend avoiding tha…
Any company building their business on flutter is setting themselves up for disaster and an expensive double-rewrite to native, while having a useless engineering team because they skilled up previously mentioned dead-end.
Re: Interoperability: Swift’s Super Power
#58Earlier quoted context omitted.
Kotlin compiles to the native architecture on non-JVM targets. It works just as well as using Swift on non-Apple targets, that is to say it's a bit of a pain development-wise but runs fine once you have your tool chain and interop code setup. Honestly versus either, I'd recommend dart/flutter. Insanely productive, native compiled code, performant UIs that reasonably emulate native (although I'd recommend avoiding tha…
Flutter is trash (slow and ugly) built on a dead end language (dart). Any company building their business on flutter is setting themselves up for disaster and an expensive double-rewrite to native, while having a useless engineering team because they skilled up previously mentioned dead-end.
Re: Interoperability: Swift’s Super Power
#59I don't know, I left Swift (although I like the language) because it is not interoperable whatsoever, in the sense that you can use it on whatever platform you like. I switched to TypeScript.
Re: Interoperability: Swift’s Super Power
#60I don't know, I left Swift (although I like the language) because it is not interoperable whatsoever, in the sense that you can use it on whatever platform you like. I switched to TypeScript.
You can use it on any platform you like, as long as it's an Apple platform.
I have projects using Swift on AWS Lambda and on Arduino.
* https://github.com/swift-server/swift-aws-lambda-runtime