Live data from Hacker News

Swift at Apple: Migrating the Password Monitoring Service from Java

swift.org

231–235 of 235 posts

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

#231
post #187

Earlier quoted context omitted.

The big questions are: how's package management, community, ease of forking, patching and other dependency management related stuff. Server-side development needs those questions to have good answers.

Swift has all of that already answered. Non Xcode swift with SwiftPM is solid

Where's package registry? (crates.io analog) Couldn't find one

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

#232
post #212

Earlier quoted context omitted.

More precisely, when deploying the new service microservice it used less than half as much CPU to process more requests per second. This is not “Java slow, Python fast” – I expected it to be the reverse – but rather that the developers who cranked out a messy Spring app somehow managed to cancel out all of the work the JVM developers have done without doing anything obviously wrong. There wasn’t a single bottleneck,…

Okay, I understand your point. Basically, you rewrote an awful (clickbat-worthy) enterprisey Java web app into a reasonable, maintainable Python web app. I am sympathetic. Yes, I agree: I have seen, sadly, far more trashy Java enterprisey apps than not. Why? I don't know. The incentives are not well-aligned. As a counterpoint: Look at Crazy Bob's (Lee/R.I.P.) Google Guice or Norman Maurer's Netty.IO or Tim Fox's Vert…

IMO the “Spring fever” is the most horrible thing that has happened to Java. There genuinely are developers and companies that reduce the whole language and its ecosystem to Spring. This is just sad. I’m glad that I have been working 15+ years with Java and never touched any Spring stuff whatsoever.

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

#233
post #134

Earlier quoted context omitted.

Interesting. If IBM was trying to solve for memory consumption, why do you think they picked Swift over alternatives that might also have achieved lower memory consumption?

Swift is at a good middle ground of performance, safety and ease of use. It has higher level ergonomics that something like rust lacks (as much as I like rust myself), doesn’t have many of the pitfalls of Go (error handling is much better for example) and is relatively easy to pickup. It’s also in the same ballpark performance as rust or C++. It’s not perfect by any means, it has several issues but it’s quickly becom…

What are those issues I wonder. I used for one project and not sure how deep the rabbit hole might be. Just wonder.

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

#234
post #231

Earlier quoted context omitted.

Swift has all of that already answered. Non Xcode swift with SwiftPM is solid

Where's package registry? (crates.io analog) Couldn't find one

https://swiftpackageindex.com

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

#235

Earlier quoted context omitted.

I don’t think many azure services are Linux on hyper-v, are they? Azure (afaik) is quite heavy on bare metal Linux.

Many of their SaaS offerings are, but many infrastructure offerings are running Windows Server underneath. Rent out any Azure VM, and regardless of guest OS, it's using Hyper-v underneath as the hypervisor.

Ah cool, I didn't realize that even their linux VMs are being powered by Hyper-V
Post reply on HN