Skip to main content

Search

Items tagged with: Swift


Dear developer community,
In the latest beta of Xcode (16A5171c) a bug exists which makes it extremely difficult for blind people from using the autocomplete features. If you are an user of Xcode, please test with VoiceOver and thenfill in a feedback with Apple. I thank you on my behalf and other developers who will benefit from them fixing it.
#apple #programming #wwdc #xcode #swift


Hey people. I am not good with #introduction posts but let's see. My name is Arkadiusz, I am currently 22 years old and I am studying #chinese in #Milan, #Italy. I am passionate about #programming for #Apple platforms, as I am a huge fan of their hardware and software. I will be mostly writing and reading about #accessibility, #programming, #swift, #china and #chinese (in no particular order). Hit me up for any questions.


I am playing with the NaturalLanguage framework in #Swift and I am having some interesting results. Here are the most similar words to the word „Dictatorship”. The left column are the words, the right is the distance. The more distant, the less similar the word is.

dictator 0.7791867852210999
autocracy 0.7871801853179932
dictatorial 0.7904724478721619
regime 0.7980139851570129
democracy 0.8397299647331238
totalitarian 0.845069408416748
repressive 0.8523193001747131
oligarchy 0.8619794845581055
despotism 0.8681145310401917
despot 0.8691430687904358
Here is the code I used.
import NaturalLanguage
guard let embedding = NLEmbedding.wordEmbedding(for: .english) else {
print("Nic z tego nie będzie.")
fatalError()
}
let words = embedding.neighbors(for: "dictatorship", maximumCount: 10)
for word in words {
print("\(word.0)\t\(word.1)")
}
#apple #swift #programming #CodingFun #iOS #macOS


It’s been about two months since I was laid off from Mozilla, and I’m still on the job hunt! I’m looking for an #iOS role, open to other #Apple platforms. 10+ YoE total across a few industries, exclusively iOS for the last 7+. Happy in both #Swift and #ObjC environments. #Remote / Chicagoland. #fedihired


Check out the latest blog post on the #swiftlang website about the #adwaita for #swift package!

swift.org/blog/adwaita-swift/

You can find the repo on GitHub: github.com/AparokshaUI/adwaita…

#linux #libadwaita #gnome #gtk


Currently working on two #gnome apps!

- Scripter: A simple app for basic scripts ⌨️ & calculations 📐 [GitHub: github.com/david-swift/Scripte…]
- Flashcards: Create, edit, and study flashcard sets 🎓 - easily import your existing Quizlet sets [GitHub: github.com/david-swift/Flashca…]

Both are written in #swift using an interface similar to #swiftui for #gtk and #libadwaita [GitHub: github.com/AparokshaUI/Adwaita]


I came across a blog from a 2 years ago that compared different implementations of dot product. It had a couple interesting points. The cost of functional programming in #Swift was huge (31x on M1 and 198x on x86). I did an equivalent test in #Rust and the cost was 1x (on M2). That lets programmers use the high level abstractions without dreading the performance costs.

Rust:
left.iter().zip(right.iter())
.map(|(&l, &r)| l * r )
.sum::<f64>()
eclecticlight.co/2021/08/04/wh…


OK, trying an experiment with my Programming Languages class!

• Have an AI generate some of your writing assignment.
• Critique its output. Call BS on its BS.

Assignment details in screenshots below. I’ll let you know how it goes.

(Here are the links from the screenshots:)

Raw AI Text:
gist.github.com/pcantrell/7b68…

Comments on AI Text:
gist.github.com/pcantrell/d51b…

(Better) Human Text
gist.github.com/pcantrell/f363…

#ai #chatgpt #education #writing #highered
#swift #proglang


The first half hour of @rjmccall’s talk provides really good insight into Apple’s plans and motivation for Swift: a single successor language for C/C++/Obj-C for the entire stack, including kernel and embedded systems. Focused on correctness, safety, and security. Incremental adoption is key, hence the importance of interop with C, Obj-C, and now C++. #Swift

“Introducing a Memory-Safe Successor Language in Large C++ Code Bases”: youtube.com/watch?v=lgivCGdmFr…


Today I'm excited to finally introduce @walleri!

Walleri is a Mastodon Client that lets you listen to your timeline instead of reading it!

Here is the TestFlight Link: testflight.apple.com/join/kex6…

If you have any feedback - good or bad, don't hesitate to reach out!

#walleri #swift #swiftlang #swiftui #ios #iosdev #iosdevelopment #tootsdk #fedidev #mastodonapi #buildinpublic #mastodev #testflight #xcode #indiedev


Man Reader - my Mac app for reading Terminal command man pages - has finally had its long awaited update. The new version is now waiting for review.

Currently, Man Reader costs USD 4.99 or the local equivalent. I will be increasing this to USD 9.99 when the update is released, so if you want to save some money, buy it now and get the upgrade at half-price.

itunes.apple.com/app/man-reade…

#macOS #swift #terminal #zsh #bash


One thing I particularly like about Rust — which I’m very new to — is how thoughtfully the compiler errors and warnings have been designed. It not only diagnoses and explains the problem: it provides a possible solution. Genius.

This is the essence of good design: it’s compassionate, anticipating the needs and wants of another person. I can’t think of another language that does anything like this. Certainly not Swift, not that I’m bitter.

#rust #swift


Using #GTK and #Libadwaita in #swift Attempt Number 2.

Instead of using GIR to generate the code, use hand-written bindings.
More work? - Yes

Full coverage? - No

Better API and easier to use? - Yes


Fellow #iOS #swift #swiftui developers. Do you know if the ButtonRole structure actually does anything purposeful? With #VoiceOver, I cannnot get any indication whatsoever about the button’s role, while at the AppleDeveloper documentation site: developer.apple.com/documentat…, they state that such an info should be conveyed. Is there any visual indication of the role? If so, what?


Finally got around implementing #swift demangling support for #GNOME Sysprof (Not upstream (yet?))

The power of FLOSS, a feature you really want is missing? - Just add it


#Dev recommendations 6. #RegEx can be a hard topic for every new person starting with #programming. However don’t be scared of them because they are useful and fun! If you struggle to learn #RegularExpressions here are my favorite resources.
1. regex101.com. This website is your all in one toolbox for regular expressions, with tutorials, reference and a very advanced debugger which can visualise the expression’s output. All for free, and with #accessibility for the #blind out of the box.
2. youtube.com/watch?v=r6I-Ahc0HB…
A little course on regular expressions. The teaching is cler and the guy explains everything on the way.
As always, if you have any questions about #RegEx, #csharp #dotnet, #swift or anything else, feel free to ask me!


One of the coolest tools we use at #1Password has been #opensource ’d!

I present to you Typeshare 2.0! A way to share Rust types across the FFI (supports, Swift, Kotlin, TypeScript, and Go). We use it everyday and I love it, makes things so easy and awesome.

github.com/1Password/typeshare

#rust #swift #kotlin #go #golang #rustlang


Hi, I'm treefit, a #foss dev working on #deltachat. I'm responsible for the desktop client together with @jikstra.
My favorite coding language is #rustlang, but I "speak" #typescript, #javascript, #html, #css, too.
I'm also capable in #python and #swift, but not as much.

I'm new to the mastodon/toot style of communication (never used Twitter, either), so I'm still learning of how this all works.

My goal is to give you some behind-the scenes peeks onto the DeltaChat development.

#introduction