I have some time, and don't really feel like doing what I'm supposed to be working on. Let's do another one of these "ask me questions about concurrency" days.
What have you got?
I have some time, and don't really feel like doing what I'm supposed to be working on. Let's do another one of these "ask me questions about concurrency" days.
What have you got?
I'm way into unknown territory here and web search hasn't been helpful, but I'm trying to pass a value back to a C function that I can later use as a lookup key on subsequent calls where all I get is my returned pointer.
I was hoping to stuff the bytes of an enum UInt32 rawValue into the pointer I have to return. The closest I came is allocating my own buffer and using a pointer to that, which should work I guess. And maybe this is "cleaner"/safer.
I've made a draft for a vision document for Swift Evolution to provide pure functions as a language level feature in Swift.
tl:dr; If you mark your functions as pure then you have decreased privileges (in order to compile-time guarantee that the function is in fact pure), but you get automatic sendability.
Given the scope, it seemed like it needs more than one evolution proposal, so I wrote a vision.
Please share your feedback.
There's no official Swift Language account on Mastodon, is there? Still only on Twitter? :swift_app:
I was thinking that maybe I could try to talk someone there into starting to post on Mastodon and Bluesky too, given… <gestures around> you know