“With the increased limit of the acceptance queue, and a patched version of wrk, we can now conclude that swift is a good competitor speed-wise as a web application server.
Memory wise it blows all the other technologies away, using only 2.5% of the amount of memory that the java implementation needs, and 10% of node-js.”
Swift/SwiftUI Question: App Store Connect API provides a gzip when the response is successful for a particular endpoint I am accessing.
How do I take this gzip and save the contents of it to a files app / sandbox directory / swift data, so that I can read it and view the contents? From what I understand, gzip is similar to a zip file?
So far my attempts to save it to files to read the contents have failed. It says “Inappropriate file type or format”.
So @rauhul is working on an LLDB plugin that makes the internals of your embedded MCU known to the debugger. Inlcuding a very neat visualization of registers used as bitfields. This will be great for Embedded Swift (and presumably also non-Swift users of LLDB). https://github.com/apple/swift-mmio/pull/98#SwiftLang
I sometimes wonder how things would've looked on #Bluesky if the first beta had been ready just 6 months earlier, if all those people who left Twitter for Mastodon could have gone there…
I've just checked the hashtag feed for #swiftlang and apparently there were 19 posts in total… (and 9 of those from me) 😕
All the tips in the book are focused on Swift and Swift Standard Library, so they can be applied to any platform, from iOS and macOS to Swift on the server.
I managed to get a little something running on a Pimoroni PicoSystem using Embedded #Swift !
The PicoSystem uses an RP2040, so I was able to use the embedded examples from Apple to get started.
The demo is using the PicoSystem SDK on top of the Pico SDK. I had to work around the C++ name mangling differences between g++ and Clang by making a thin C wrapper.
I’ll be publishing the code somewhere soon, and hope to have a more interesting demo eventually.
I’d still like to find a solution that doesn’t require a C wrapper. Perhaps building the PicoSystem SDK with Clang would work? The Pico SDK has issues with Clang, out of the box at least.
What's a modern alternative to https://github.com/JohnSundell/Files that people us using nowadays? #SwiftLang the correct answer is probably just Foundation, but I'm curious if there is another interesting one
Hey, is there any way to add a range check to a SwiftUI TextField?
I have an
struct MyView: View {
@ State var intValue: UInt16
var body: some View {
TextField("UInt16”, value: $intValue, format: .number)
}
}
and if I enter “-1” or “65537” into the text field, it calls fatalError() trying to convert the user-entered text into a UInt16, and I'd rather it just beep than crash the app on invalid user input.
It's called Evolreader (because it's for reading Swift Evol-ution... you get it). It downloads the swift-evolution repo to your device so you can read stuff offline. It also saves your progress along the way.
I had fun making it, it's free, and maybe some of you might enjoy it. Here, have some hashtags and screenshots. #swiftlang#iosdev#macdev