@krzyzanowskim@mastodon.social
@krzyzanowskim@mastodon.social avatar

krzyzanowskim

@krzyzanowskim@mastodon.social

 unrelated. too young to die. I'm here for bugs. https://CryptoSwift.io, Founder https://swiftstudio.app 🛠 TextKit2 certified expert. Text editor implementer by day.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

lapcatsoftware, to random
@lapcatsoftware@mastodon.social avatar

Before you start speculating:

The WWDC graphics mean absolutely nothing.

Every year, they mean nothing and do not hint at anything forthcoming.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@lapcatsoftware it means: Swift 6

davedelong, to random
@davedelong@mastodon.social avatar

Instead of just ranting about the state of the tools, I decided to do A Tiny Something about it and signed up to sponsor @krzyzanowskim on Github: https://github.com/sponsors/krzyzanowskim

I’m even more excited now about the Swift Studio alpha coming later this year 🙃

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@davedelong oh the weight on my shoulders now! 🙂

thank you Dave, I appreciate

mattiem, to random
@mattiem@mastodon.social avatar

A Swift concurrency pattern I’m seeing more and more is the “stateless actor”. This is fascinating, because it seems so counterintuitive. But I think people are reaching for this to get convenient access to background processing.

I don’t think this is “wrong”. But I think it is probably building bad habits. Local, private nonisolated methods are usually simpler and better long-term.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@dgregor79 @mattiem @dimsumthinking removing isolation sounds like breaking the security assumption. would you say otherwise? (it just sounds like bad thing?)

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@mattiem @dgregor79 @dimsumthinking I'm sorry. I have hard time to understand. What does it disable then?

krzyzanowskim, to random
@krzyzanowskim@mastodon.social avatar

We're 10 years into Swift wrapping Objective-C API and still haven't covered nullability. I think the same is about to happen with the "Sendable" requirements and Apple frameworks.

how it started: UIKit api crashes because it get nil value and not Optional

krzyzanowskim, to macos
@krzyzanowskim@mastodon.social avatar

I noticed my disk storage went drastically low and I started to check system, then I realized something ( update???) enabled iCloud Photos synchronization to my Mac (that can take all the storage it get, and for that very reason I didn't enable it on my mac)

is that https://mjtsai.com/blog/2024/05/21/apple-updates-silently-enable-icloud-keychain/#comment-4092983

video/mp4

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@buck @marcoarment @atpfm omg I didnt think about it. also I shouldn’t have to haha

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@gklka I disabled it in the Photos app eventually

aleck, to random
@aleck@mastodon.social avatar

After a day with 13in MacBook Air M2, I’m really amazed just how light and silent this thing is. Last MacBook I had was 2016 MBP that feels way more heavy than it really is.
This will be really nice travel companion for next decade.

image/jpeg

krzyzanowskim, (edited )
@krzyzanowskim@mastodon.social avatar

@aleck Air rules. Why bother M2? I think about m1→m3 upgrade

lapcatsoftware, to random
@lapcatsoftware@mastodon.social avatar

It’s extremely frustrating how apartment builders don’t give any consideration about noise from neighbors.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@lapcatsoftware you probably wouldn’t afford properly noise isolated building. I suffer the same fate

zcs, to random
@zcs@me.dm avatar

@krzyzanowskim have you seen any Slack/Notion style slash command plugins for STTextView? If not, do you think it’d be hard to implement?

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@zcs I haven’t. but I’m happy to help if you going to stuck on it

phill, to random
@phill@mastodon.notsobig.co avatar

it's not right but it's okay

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@mattiem @phill but the MainActor is, isn’t it

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@mattiem I genuinely don’t understand what you’re talking about.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@mattiem it says it execute on main dispatch queue, which runs on main thread. that’s why UI enqueued on MainActor runs on main thread. I don’t understand what are you talking.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@mattiem is not a main thread, it executes on main thread, which makes not much difference in practice if enqueue on the same thread. just like main queue is not a thread, but in practice special queue that runs on amin thread

b3ll, to random
@b3ll@mastodon.social avatar

why.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@darrarski @b3ll one is $50M backed business, the other is open source project. go figure

deanatoire, to random
@deanatoire@mastodon.social avatar

Is it normal that after a few days with the new iPad Pro, I’m trying to unlock my MacBook Pro with the three finger pan gesture on the trackpad? 😂

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@deanatoire no, it is not even normal on iPad Pro 😂

pixel, to mentalhealth
@pixel@social.pixels.pizza avatar

Swift debugging driving me nuts.

I have a multiline file that I’ve loaded into a string using String(contentsOfFile:encoding:)

I'm trying to split the string using “someString.components(separatedBy: "==========\n“)

But it... just doesn’t. I know that particular string does exist in the file multiple times.

If I change the separator to just a linefeed it does split the file into 1600 items just fine. So for some reason it's not finding the "==========\n“ ?

I'm stumped.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@pixel do you mind share a sampla of the file to play with?

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@pixel one idea is that not all = is "=". it may be different glyph, like = ᐀

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@pixel = =᐀ ⩵ ⩶ is any of that possible?

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@pixel also whether EOL is “\r\n” or “\n”. I'm just shooting random ideas

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@pixel show me the file 🙂

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@pixel the components(separatedBy:) seems to give me expected result here

krzyzanowskim, to random
@krzyzanowskim@mastodon.social avatar

that should keep me busy in the evenings for the next few months at https://github.com/krzyzanowskim/STTextView

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

now it can layout text

tonyarnold, to random
@tonyarnold@mastodon.social avatar

I want to join The Browser Company just to fix the bodgy focus rings on their custom buttons in Arc, and then I'd fly off into the night like a vengeful, bug-fixing Mary Poppins.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@tonyarnold it smells too much of SwiftUI on macOS to be honest

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • rosin
  • thenastyranch
  • cubers
  • ethstaker
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • kavyap
  • anitta
  • GTA5RPClips
  • khanakhh
  • normalnudes
  • osvaldo12
  • cisconetworking
  • provamag3
  • Durango
  • tacticalgear
  • modclub
  • Leos
  • megavids
  • tester
  • lostlight
  • All magazines