Search
Items tagged with: swift
Check out the latest blog post on the #swiftlang website about the #adwaita for #swift package!
https://www.swift.org/blog/adwaita-swift/
You can find the repo on GitHub: https://github.com/AparokshaUI/adwaita-swift
#linux #libadwaita #gnome #gtk
GitHub - AparokshaUI/adwaita-swift: A framework for creating user interfaces for GNOME with an API similar to SwiftUI
A framework for creating user interfaces for GNOME with an API similar to SwiftUI - AparokshaUI/adwaita-swiftGitHub
The #gnome app "Memorize" is on Flathub!
https://flathub.org/apps/io.github.david_swift.Flashcards
It is written using Adwaita for #swift with an interface very similar to #swiftui.
Content warning: Opinion about operating systems, possible holy war, strong language.
- Swift Argument Parser: a library for elegant and nice parsing of command-line argument
- SwiftSoup: a library used for web scraping
- Creating a full Swift utility as an SPM package rather than Xcode project. I was forced, or rather motivated to do all 3 thanks to my Chinese university studies. In order to download audio material for the official #HSK #book, one needs to go to a website, click a link for the file, and confirm whether you want to download it, for sure! Tage into account that the server is slow, and every such operation takes a minute or something like that, multiply that by the number of tracks and by the number of books. I have discovered that the HSk sites have the exactly same structure, hence I want to build an utility that will scrape the website and download the files for me and my teachers. I want to publish my work to Github so yall can roast the unstructuredmess it is heh. There's always room for improvement.
Currently working on two #gnome apps!
- Scripter: A simple app for basic scripts ⌨️ & calculations 📐 [GitHub: https://github.com/david-swift/Scripter]
- Flashcards: Create, edit, and study flashcard sets 🎓 - easily import your existing Quizlet sets [GitHub: https://github.com/david-swift/Flashcards]
Both are written in #swift using an interface similar to #swiftui for #gtk and #libadwaita [GitHub: https://github.com/AparokshaUI/Adwaita]
GitHub - AparokshaUI/Adwaita: A framework for creating user interfaces for GNOME with an API similar to SwiftUI
A framework for creating user interfaces for GNOME with an API similar to SwiftUI - GitHub - AparokshaUI/Adwaita: A framework for creating user interfaces for GNOME with an API similar to SwiftUIGitHub
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>()
https://eclecticlight.co/2021/08/04/when-idiomatic-code-is-slower-and-how-to-accelerate/
When idiomatic code is slower, and how to Accelerate
Benchmarking 32-bit Float vector dot-product calculations using Swift, NEON assembly, and Apple’s SIMD libraries, on Intel and M1 Macs.The Eclectic Light Company
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:
https://gist.github.com/pcantrell/7b68ce7c5b2e329543e2dadd6853be21
Comments on AI Text:
https://gist.github.com/pcantrell/d51bc2d4257027a6b4c64c9010d42c32
(Better) Human Text
https://gist.github.com/pcantrell/f363734336e6063f61e451e2658b50a6
#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”: https://www.youtube.com/watch?v=lgivCGdmFrw
Introducing a Memory-Safe Successor Language in Large C++ Code Bases - John McCall - CppNow 2023
https://www.cppnow.orghttps://www.linkedin.com/company/cppnow---Introducing a Memory-Safe Successor Language in Large Code Bases - John McCall - CppNow 2023...YouTube
Walleri is a Mastodon Client that lets you listen to your timeline instead of reading it!
Here is the TestFlight Link: https://testflight.apple.com/join/kex6mnjV
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.
http://itunes.apple.com/app/man-reader/id522583774?mt=12
#macOS #swift #terminal #zsh #bash
Man Reader
Man Reader allows quick, convenient and easy access to the man pages on your system, useful for programmers, system administrators and tweakers.App Store
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.
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
Project presentation:
@Monal - Monal is a modern #iOS and #MacOS XMPP chat client
https://wiki.xmpp.org/web/Google_Summer_of_Code_2023#Monal
https://monal-im.org/
#XMPP #GSoC2023 #GSOC, #Google #interoperability #standards #federation #SwiftUI #Swift #ObjC
#swift #serversideswift
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.
https://github.com/1Password/typeshare
#rust #swift #kotlin #go #golang #rustlang
GitHub - 1Password/typeshare: Typeshare is the ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI.
Typeshare is the ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI. - GitHub - 1Password/typeshare: Typeshare is the ultimate tool for synchron...GitHub
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