Live data from Hacker News

Swift at Apple: Migrating the Password Monitoring Service from Java

swift.org

1–10 of 235 posts

Re: Swift at Apple: Migrating the Password Monitoring Service from Java

#3
post #2

I'm hoping to hear some good news at WWDC for swift development in editors other than Xcode (VSCode, Neovim, etc.) Last year they said "we need to meet backend developers where they are" and announced plans to improve sourcekit-lsp and other efforts.

I hope so too! We even have an official Kotlin LSP now... maybe that serve as inspiration.

Re: Swift at Apple: Migrating the Password Monitoring Service from Java

#5
> In comparison with the previous Java service, the updated backend delivers a 40% increase in performance, along with improved scalability, security, and availability.

As is always the case with such rewrites, the big question is whether the improvements came from the choice of language or because they updated a crusty legacy codebase and fixed bugs/bottlenecks.

Re: Swift at Apple: Migrating the Password Monitoring Service from Java

#6
post #2

I'm hoping to hear some good news at WWDC for swift development in editors other than Xcode (VSCode, Neovim, etc.) Last year they said "we need to meet backend developers where they are" and announced plans to improve sourcekit-lsp and other efforts.

IMO, Apple has quite the track record of never "meeting X where they are". They could make Xcode cross platform, but they never will.

Re: Swift at Apple: Migrating the Password Monitoring Service from Java

#7
post #2

I'm hoping to hear some good news at WWDC for swift development in editors other than Xcode (VSCode, Neovim, etc.) Last year they said "we need to meet backend developers where they are" and announced plans to improve sourcekit-lsp and other efforts.

This project is getting more mature https://github.com/swiftlang/vscode-swift

And https://github.com/swiftlang/sourcekit-lsp an be used in any LSP compatible editor like Neovim.

Re: Swift at Apple: Migrating the Password Monitoring Service from Java

#8
post #5

> In comparison with the previous Java service, the updated backend delivers a 40% increase in performance, along with improved scalability, security, and availability. As is always the case with such rewrites, the big question is whether the improvements came from the choice of language or because they updated a crusty legacy codebase and fixed bugs/bottlenecks.

I'd typically agree with your comment but ...

Given that they also experienced a 90% reduction in Memory Usage (presumably from Java GC vs Swift AOT memory management) - it seems more likely the gains are in fact from the difference in languages.

Re: Swift at Apple: Migrating the Password Monitoring Service from Java

#9
post #2

I'm hoping to hear some good news at WWDC for swift development in editors other than Xcode (VSCode, Neovim, etc.) Last year they said "we need to meet backend developers where they are" and announced plans to improve sourcekit-lsp and other efforts.

IMO, Apple has quite the track record of never "meeting X where they are". They could make Xcode cross platform, but they never will.

There would be no point in doing that. All the devs they care about already have Macs. If you are on Windows or Linux and you want to work on Swift server side code then you can use their official LSP or VSCode extension in your favorite editor.

Re: Swift at Apple: Migrating the Password Monitoring Service from Java

#10
post #8
post #5

> In comparison with the previous Java service, the updated backend delivers a 40% increase in performance, along with improved scalability, security, and availability. As is always the case with such rewrites, the big question is whether the improvements came from the choice of language or because they updated a crusty legacy codebase and fixed bugs/bottlenecks.

I'd typically agree with your comment but ... Given that they also experienced a 90% reduction in Memory Usage (presumably from Java GC vs Swift AOT memory management) - it seems more likely the gains are in fact from the difference in languages.

The typical rule of thumb is that getting good performance out of tracing GC requires doubling your memory usage, so a 90% reduction suggests that they made significant improvements on top of the language switch.
Post reply on HN