Category: Swift
Everything filed under Swift.
A WeatherFlow Tempest UDP Broadcast Receiver in Golang, Rust, Swift, and C++
After a Twitter convo about weather stations I picked up a WeatherFlow Tempest . Setup was quick, but the sensor package died within 24 hours. I was going to give up on it but I had written an R package (for the REST API & UDP broadcast…
New TabularData Available in Swift on macOS Monterery (et al)
WWDC 2021 is on this week and many new fun things are being introduced, including some data science-friendly additions to the frameworks that come with Xcode 13 and available on macOS 12+ (and its OS…
A {swiftr} Brief Interlude While Awaiting {cdcfluview} CRAN Checks
My {cdcfluview} package started tossing erros on CRAN just over a week ago when the CDC added an extra parameter to one of the hidden API endpoints that the package wraps. After a fairly hectic set of days since said NOTE came, I had time…
A Small macOS (Big Sur+) App to Extract Indicators of Compromise
There's a semi-infrequent-but-frequent-enough-to-be-annoying manual task at $DAYJOB that involves extracting a particular set of strings (identifiable by a fairly benign set of regular expressions) from various interactive text sources…
Making macOS Universal Apps in Swift with Universal Golang Static Libraries
There are a plethora of amazingly useful Golang libraries, and it has been possible for quite some time to use Go libraries with Swift. The advent of the release of the new Apple Silicon/M1/arm64 architecture for macOS created the need for…
Avoiding The mdls Command Line Round Trip With swiftr::swift_function()
The last post showed how to work with the macOS mdls command line XML output, but with {swiftr} we can avoid the command line round trip by bridging the low-level Spotlight API (which mdls uses) directly in R via…
Help Your Mac Stand Between The Darkness And The Light with GreyWatch
They also have a generous (10K calls/day), free community API which does not require credentialed access and returns a subset of information that the full API does. This is handy for folks who can't afford the service or who only need to…
Making It Easier To Experiment With Compiled Swift Code In R
The past two posts have (lightly) introduced how to use compiled Swift code in R, but they've involved a bunch of "scary" command line machinations and…
Calling [Compiled] Swift from R: Part 2
The previous post introduced the topic of how to compile Swift code for use in R using a useless, toy example. This one goes a bit further and makes a case for why one might want to do this by showing how to use one of Apple's machine…
SwiftR Switcheroo: Calling [Compiled] Swift from R!
I've been on a Swift + R bender for a while now, but have been envious of the pure macOS/iOS (et al) folks who get to use Apple's seriously ++good machine learning libraries, which are even more robust on the new M1 hardware (it's cool…