@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.

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, to random
@krzyzanowskim@mastodon.social avatar

I posted a thing about „AI” and I got called: shit, donkey brain, boomer, incopetent, stupid, brainlet

Internet is healing 🤣

image/jpeg

steve, to random
@steve@discuss.systems avatar

This implementation of cos(πx) and sin(πx) for Float16 came out pretty neat: https://github.com/stephentyrone/swift-numerics/blob/trig-pi/Sources/_NumericsShims/sincospif16.s

Throughput for this scalar implementation is about 1.75ns/element on M1, which is ... tolerable. I expect that it could go somewhat faster, but this is nice and pretty tidy.

The equivalent pure Swift implementation I have takes about 2.3ns/element, largely due to not having a means to do a "convert float to integer, and just give me some don't-care value if its out of range" (which you can't spell in C either), but I already put a patch up to add the machinery that I need for it in Swift, so we'll get that straightened out and see where we stand.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@steve did you try use Copilot for another 55% faster?

SvEzs, to swift
@SvEzs@mastodon.social avatar

I'm trying to embed a remote image into a string using TextKit2.

When downloading remote images, I want to display the SFSymbol images, and after the download is complete, display the retrieved images.

Is there any good sample?

#iOSDev #swift #SwiftUI

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@SvEzs use text attachment with a view provider. that part didn’t change from textkit1 afaik

krzyzanowskim, to random
@krzyzanowskim@mastodon.social avatar

there is a guy, who says that Swift on Windows is more complete than Swift on Linux. let that sink in 🤔

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

that guy is @compnerd who single-handedly brings Swift to Windows

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

the year of Linux on desktop cannot come soon enough

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

@helge me? no

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@helge these are not my claims. but the story is that windows swift is in feature parity with latest apple swift, while linux is always behind

krzyzanowskim, to random
@krzyzanowskim@mastodon.social avatar

my big privacy related question is: why (seriously why) Apple keeps deleted photos on their servers indefinitely? for what really? and how that aligned with the privacy of the iPhone statements

bugs happens. that is not just a bug. that is a bug that surfaces the questionable design decisions.

https://www.macrumors.com/2024/05/17/ios-17-5-bug-wiped-devices-photos-resurfacing/

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@stevenodb @tclementdev that wouldn't survive device wipe (to big of assumption?)

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@ff00aa I like that explanation. weird situation to keep for a long time, but thet’d explain why photos are still on their servers.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@leonid the concern is, according to the report, it reappear in other person photos library.

gernot, to random German
@gernot@mas.to avatar

In theory, an M4 iPad with 16GB ram and the Magic Keyboard can completely replace my mac, and it is more versatile because it’s an iPad. It needs to run Xcode with at least all the SwiftUI related components, Instruments, and a terminal for git, and have some means of real filesystem based apps so that something like „Tower for iPad“ is possible. It shouldn’t be overwhelmend with outlandish tasks like „using some program to create graphical assets for use in an Xcode project“.

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@gernot what makes you think M1 or M2 iPadPro was not capable of any of that?

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@gernot iPadPro M2 has 16GB mem too. the keyboard is always optional and the weight is never an issue with macbook pro. Also Swift Playgrounds is already full featured swift compiler IDE 🥁 why don't you use it

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@gernot it doesn’t work on 2019? (I don’t remember). I have M1 pro, and this machine can do anything already. only buggier and slower software can make it slow

jsq, to random
@jsq@mastodon.social avatar

Does anyone have tips for getting Xcode's Instruments to... uh… simply work at all?

It can't seem to find the dSYMs.

Has anyone at Apple ever tried to use this program. 🙃

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

@jsq it's just "double check" for me. I used to have .noindex in deriveddata directory and it never worked due to that and I had to manually adjust the dSYM path. But Xcode being Xcode

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