mackuba, to bluesky
@mackuba@martianbase.net avatar

I sometimes wonder how things would've looked on 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 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.

#Swift #SwiftLang #iOSDev

swiftcraft, to programming
@swiftcraft@hachyderm.io avatar

🌐Join us at #SwiftCraft 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

#swiftlang #coding #programming #softwareengineering #software

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

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.

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.

mackuba, to rust
@mackuba@martianbase.net avatar

Looks like strings in are annoying in the same way as strings in 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.

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

image/png
image/png

paris, (edited ) to swift
@paris@hachyderm.io avatar

, I welcome you to check out , the programming language, to help you build tooling for all of your servers filled with your pics from the Eras tour! it’s modern and joyful just like taylor. 😆 tag me with your creations!

swift.org

ctietze, to random
@ctietze@mastodon.social avatar

We're almost at v6 and there's still no way to inspect an operator like "+" in Xcode to find out more about its definition and relation to the two summands

mackuba, to ruby
@mackuba@martianbase.net avatar

I've been playing with benchmarking some regexp matching code in several languages last week (I want to replace that part of code with something faster - I was thinking of Crystal or Swift). ChatGPT helped me write some versions :)

The results were… unexpected. & Crystal didn't do well, but JS & PHP did 🤔

mackuba,
@mackuba@martianbase.net avatar

Finally, I also had an idea to try (which I don't know at all), and together with GPT we've managed to write something working. Rust turned out to be the fastest (but only in release mode, debug is very slow).

Interesting that the new native regexp seems… super slow? I've only run it at 100 iterations instead of 10k, and it took a few seconds… 🤔

Here are all versions: https://github.com/mackuba/regexp-benchmark

david_swift, to GNOME
@david_swift@mastodon.online avatar

I know there are already plenty of task managers available for the desktop, but no one is simple enough for my very limited needs. So I'm working on the Subtasks app:

https://github.com/david-swift/Subtasks

While developing the app, I documented the process and created a tutorial on how to develop GNOME apps in (note that the tutorial is not very polished yet):

https://aparokshaui.github.io/adwaita-swift/tutorials/table-of-contents

david_swift, to GNOME
@david_swift@mastodon.online avatar

Memorize 0.2.1 for has been released and will be available on Flathub soon! Thanks @konstantin for implementing a search feature for flashcards in the edit dialog!

https://flathub.org/apps/io.github.david_swift.Flashcards

mackuba, to random
@mackuba@martianbase.net avatar

I've managed to make a command-line Swift package that includes ObjC code, built and run from the command line, all without touching Xcode 😱 Thx to PSPDFKit for this tutorial: https://pspdfkit.com/blog/2023/developing-mixed-source-swift-packages/

polpielladev, to random
@polpielladev@iosdev.space avatar

🏷️ Are you a Swift Package maintainer and want to automatically and safely release your library when you create a tag with GitHub Actions?

🧵 Follow this thread and you'll never have to do a manual release again!

mackuba, to random
@mackuba@martianbase.net avatar

Is there a way to tell the compiler to just compile a single file like swift build test.swift -o test? Or do I need to have a Package.swift, Sources folder etc.?

ole, to swift
@ole@chaos.social avatar

Huge thanks to the Swift team for publishing (and maintaining!) documentation of underscored (and therefore unofficial/private) Swift language attributes. It’s been a big help. https://github.com/apple/swift/blob/main/docs/ReferenceGuides/UnderscoredAttributes.md

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