dgregor79, to random
@dgregor79@sfba.social avatar

The fifth (and final!) episode of my guest appearance on the ADSP podcast is up! We talk about more , generics, Swift 6, and data race safety. https://www.adspthepodcast.com/2024/05/31/Episode-184.html

dgregor79, to random
@dgregor79@sfba.social avatar

I had some fun today adding "subcommand group" support to the argument parser library: https://forums.swift.org/t/grouping-subcommands/72219

maxd, to random
@maxd@mastodon.social avatar

There's a new #SwiftLang pitch authored by @fbusch that I had an opportunity to contribute to. If graduates to a proposal and is implemented as envisioned, it could become one of the most impactful changes in how one writes package manifests for #SwiftPM https://forums.swift.org/t/pitch-package-traits/72191

paris, to swift
@paris@hachyderm.io avatar

let’s goooooo bay area friends! no, you don’t need to attend WWDC to RSVP to the social.

RE: https://hachyderm.io/@holly/112527188602767590

uliwitness, to random
@uliwitness@chaos.social avatar

Weird, I thought Combine's Cancellable would guarantee that when a Cancellable is freed, it implicitly triggers cancel().

But I can't find that mentioned anywhere in the (sparse) documentation (https://developer.apple.com/documentation/combine/cancellable).

Anyone remember where that's documented? Or am I hallucinating?

#swiftlang #combine

finestructure, to swift
@finestructure@mastodon.social avatar

“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.”

https://tech.phlux.us/Juice-Sucking-Servers-Part-Trois/

JTostitos, to swift
@JTostitos@techhub.social avatar

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”.

ole, to random
@ole@chaos.social avatar

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

krzyzanowskim, to random
@krzyzanowskim@mastodon.social avatar

there is a guy, who says that Swift on Windows is more complete than Swift on Linux. let that sink in 🤔

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

that guy is @compnerd who single-handedly brings Swift to Windows #swiftlang

mackuba, to bluesky
@mackuba@martianbase.net avatar

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) 😕

swiftcraft, to programming
@swiftcraft@hachyderm.io avatar

🌟Exclusive offer for job seekers!🎉

Dive into the world of Swift development at SwiftCraft's main conference for just £90 + workshops or tutorials for an additional £90 each!

Find out more and apply! https://swiftcraft.uk/jobseekers

natpanferova, to swift
@natpanferova@mastodon.cloud avatar

Exciting news! I just released a new book called "Swift Gems" 📚✨

The book consists of a large collection of advanced Swift language techniques gathered and tested over the years, tailored for experienced developers.

Please, check it out: https://books.nilcoalescing.com/swift-gems

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.

swiftcraft, to programming
@swiftcraft@hachyderm.io avatar

🌐Join us at for "Experimenting in a Sociotechnical System" by @jessitron

🚀Explore innovative ways to conduct experiments in complex systems, beyond traditional methods.

https://youtu.be/Z06HJ7qLpHE

Don't miss out! https://swiftcraft.uk/register

finestructure, (edited ) to swift
@finestructure@mastodon.social avatar
helge, to random
@helge@mastodon.social avatar

#SwiftLang sometimes is a lot about writing code in such a way that you get compilation speed down.

jerrodputman, to swift
@jerrodputman@mastodon.gamedev.place avatar

I managed to get a little something running on a Pimoroni PicoSystem using Embedded !

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.

A Pimoroni PicoSystem running an Embedded Swift demo, which has a bouncing apple next to the text “Hello, Swift!”

jerrodputman,
@jerrodputman@mastodon.gamedev.place avatar

As promised, here’s the project source. https://github.com/jerrodputman/swift-picosystem-example

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.

#Swift #SwiftLang #embedded

ctietze, to random
@ctietze@mastodon.social avatar

Today I was reaching for the Sequence protocol to write a consuming (!) iterator over stuff.

It's actually not that simple to consume or destroy the sequence via iteration 🤔

Need to reach for a final class it seems to have truly shared state. At least I can't make it work with a struct for the sequence and its iterator.

#swift #swiftlang

mackuba, to rust
@mackuba@martianbase.net avatar

Looks like strings in #rustlang are annoying in the same way as strings in #swiftlang are 😛

ctietze, to random
@ctietze@mastodon.social avatar

2 years ago, I wouldn't have expected me to say this:

From C++ people who deal with pointers and have to protect themselves from their ab-use, I've learned useful techniques to wrap C libraries in Swift.

#swift #swiftlang #cpp

paris, to random
@paris@hachyderm.io avatar

I’m so excited for this first edition of a swift on server meetup

RE: https://fosstodon.org/@joannis/112326814104246497

alexito4, to random
@alexito4@mastodon.social avatar

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

uliwitness, to SwiftUI
@uliwitness@chaos.social avatar

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.

fancypat, to swift
@fancypat@mastodon.social avatar

Hi #Swift pals, ever wish there was an app just for reading Swift Evolution proposals? Me neither. Anyways, I built one: https://testflight.apple.com/join/qmH8gk0n

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

image/png
image/png

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines