Show more

Would love to work at Neuralink, but unfortunately only US positions are available :/

So I just put in the order for the Apple Developer Account. Excited and scared.

Alright so the caveat of going with a json based database model and keeping it all in memory is that there's a recommended maximum of memory you can keep at a time, or you risk your app crashing.

However, according to this:

For newer iPhones that's somewhere between 1GB and 2GB, which is a massive amount of data for a json database, something stupid like like ~7.5m to ~15m records. So for _most_ applications, if you also do some purging of ancient records, you'd be fine

Done! By doing the re-write I managed to also remove like half the code base. I'll have a blog post about my data management solution soon enough.

Show thread

Ok, so apparently constant read-writes to storage file is not the most efficient. Will re-write to read once on app open, and write once on app close. Everything else will happen in memory.

Show thread

I've reached the phase in my app's development where I now try to break it however best I can.

I do plan to release the database as open source soon as well, once I can generalise it enough to support all sorts of use cases.

Show thread

Woohoo, now that my app doesn't depend on Realm anymore, and runs on my own database, I can compile it with iOS14. Super excited about that. Getting closer and closer to a releasable iteration.

Actually it was way easier to do it through @ObservableObject rather than @State.

Show thread

So far so good, the UI is reacting to file write's, so now I just have to figure out how to update the file when @State changes and I should be able to replace Realm just fine.

Show thread

So I started with a new project; file-based data storage for SwiftUI apps. Let's see how that will go.

For anyone mad at the 404, I renamed it to Farm:

Because it's shorter and nicer, imo.

Show thread

Just finished rewriting a Swift lib I first made 9 months ago or so back when I was really really stupid as opposed to just stupid that I am now when it comes to all-things Swift. Still a README to do for it, and some finishing touches, but generally speaking:

Asko Nõmm boosted

Reminder that if your website does ANYTHING with the scroll event or sets the CSS scroll fuckery property, I hope that you die in a horrible car crash

My Jimmy Joy Plenny Shake 3.0 arrived. Tastes pretty good! Let's see if I can substitute my breakfast with it or not. I suck at eating breakfast usually, and by that I mean I don't really eat breakfast, so here's to hoping that fixes it.

I mean yes, I can add onTapGesture, and then manually add the text to the clipboard, but I mean, maybe you don't want the whole text?

Show thread

I can't believe there is no way for you to make Text() selectable in SwiftUI.

I’ve concluded that poker isn’t for me.

So I just wrote a blog post on something, not really even sure what, but I guess something to do with programming languages.

Show more

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.