XaiaX (💻)

@developer.xaiax.net

Software development focused sub-account of xaiax.net

If you see me unfollow you here and simultaneously follow you on my main account, it's just because I'm trying to keep my feed on here as development-oriented as possible and some of you are just too social ;)

oh no no no no, search engines are different because I, personally, find them useful. Sure, everyone knows it's scraping every copyrighted article possible without prior permission and building a model that's exploited for commercial purposes, but what my job presupposes is... what if it wasn't?

In the UIColor implementation in iOS in order to get RGBA values you call “getRed”, because the signature is getRed(_, green: _, blue: _, alpha: _) This is because it follows objective C coding standards, which were designed by criminals who should all be in jail.

Ok, today the goal is to get the app to generate something other than progress bars. (Although I do think my progress bar is pretty neat, I don't think end users would be satisfied with that.) Currently implementing the naïve CPU search algorithm (again) as a baseline for "correct".

Is there a good / canonical set of image training data these days? I have the old CIFAR 32x32 images available but I vaguely recall there being some issues with that. (This is not for image recognition, just want something to use to develop hyperplanes for a locality sensitive hash idea I have.)

I feel like I may have found this before, but just discovered in Swift you can do return if someCondition { case_when_true() } else { case_when_false() } Which seems clearer than the traditional ternary format.

The autocomplete code generation in Xcode seems to be getting really good. Seems to be trained on Swift and somewhat context and maybe stylistically aware. I wrote the doc string and the function signature and it completed the rest of the code on its own. This runs entirely offline, too.

Xcode screenshot with this code
/// For regression testing, outputs messages to the console about the behavior of the conversions
static func validationTest(granularity: Int = 1) {
for i in stride(from: 0, through: 255, by: granularity) {
for g in stride(from: 0, through: 255, by: granularity) {
for b in stride(from: 0, through: 255, by: granularity) {
let c1 = LABColor.fromRGB(r: Int8(r), g: Int8(g), b: Int8(b)) }}}

Back at it. Been thinking about the screenshots / Live Photos / etc stuff and realized that I can make a more dynamic experience where the user can turn those on and off without needing a full parse / index. The way that it works now is that I parse through local library, which is all thumbnails.

It captures shapes much better in monochrome. I might also make a version of this that uses the luma data from the tiles and the chroma data from the target. (It’s in LAB format already so that should be easy)

The word “crime” in plain all caps Helvetica, composed of a few hundred small black and white photos. A panel from the famous.dog comic AKA “this is fine”, where the dog is sitting at the table saying “this is fine” while the background is on fire. It is composed of several hundred tiny black and white pictures of faces and things like that.

Ok time to figure out WTF "Capture of 'someVar' with non-sendable type 'SomeClass<String, Int>' in a '@Sendable' closure" means. (Well, more specifically, figure out how to get it to stop warning me about this.)

This account is a sub account of my main at @xaiax.net and will just be for dev stuff / maybe software in general, so I'm not going to just mirror my following list here. Fave this one if you want me to follow you from here, maybe if I see dev stuff I can help. (Mostly I just do Swift and Python)

I'm going to attempt to use this for dev logging, probably in an extremely verbose manner so that I can get all my thoughts down in text in a way I can get to from anywhere and also that other people might be able to read if they care to.