Replies

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

davidbures, to swift
@davidbures@mstdn.social avatar

Update on Cork Shortcuts support:

I have added a shortcut for refreshing packages. Next step, I'll see if I can add a separate button to Cork itself for only refreshing packages without updating them!

(also, does anyone know why Shortcuts is showing the key for each LocalizedStringResource instead of the actual string? 🤔 see pic #2 for code)

Image of code

mattiem,
@mattiem@mastodon.social avatar

@davidbures I’ve been playing around with AppIntents too!

I’m not super familiar with how LocalizedStringResource works but i don't think is AppIntents specific…

mattiem,
@mattiem@mastodon.social avatar

@davidbures Actually yes! I did have really bad problems with this. You’re going to hate this, but try rebooting…

mattiem,
@mattiem@mastodon.social avatar

@davidbures Have you implemented this in an extension?

mattiem,
@mattiem@mastodon.social avatar

@davidbures Shoot I 0/2 so far. Are you certain those string literals are used to look up localized values?

mattiem,
@mattiem@mastodon.social avatar

@davidbures I’d try it outside of the AppIntent context to try to eliminate some variables. I’ve never used that type anywhere else.

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

mattiem,
@mattiem@mastodon.social avatar

@aleck Air is such a fantastic computer!

davidbures, (edited ) to random
@davidbures@mstdn.social avatar

I'm once again reminded why I stopped engaging with the GitHub community.

Me: "I propose idea A"
Maintainer: "Idea A is not acceptable. It will be B"
Me: "I accept it can't be idea A and idea B is closer to what we need, but I think alternative C or D would satisfy both our requirements. B is not a good idea. Could you at least consider it, or give me reasons why idea C or D are still not acceptable?"
Main.: "I'm the maintainer. It will be B. If you don't agree, don't contribute" (PR rejected)

mattiem,
@mattiem@mastodon.social avatar

@davidbures I have also had trouble contributing to homebrew

JTostitos, to swift
@JTostitos@techhub.social avatar

Swift/SwiftUI Question: App Store Connect API provides a gzip when the response is successful for a particular endpoint I am accessing.

How do I take this gzip and save the contents of it to a files app / sandbox directory / swift data, so that I can read it and view the contents? From what I understand, gzip is similar to a zip file?

So far my attempts to save it to files to read the contents have failed. It says “Inappropriate file type or format”.

#swift #swiftlang #swiftui

mattiem,
@mattiem@mastodon.social avatar

@JTostitos When you say “it says”, what is “it”? You should definitely be able to do this.

mattiem,
@mattiem@mastodon.social avatar

@JTostitos Oh no my mistake I think you had everything in there.

Gzip is not the same thing as zip. But what you might be able to do is download, decompress (gunzip) and save the resulting data as public.text into Files.

mattiem,
@mattiem@mastodon.social avatar

@JTostitos You would definitely uncompress it. But after that, it is whatever type it is. If the data actually is CSV then yes.

finestructure, to swift
@finestructure@mastodon.social avatar

“With the increased limit of the acceptance queue, and a patched version of wrk, we can now conclude that swift is a good competitor speed-wise as a web application server.

Memory wise it blows all the other technologies away, using only 2.5% of the amount of memory that the java implementation needs, and 10% of node-js.”

https://tech.phlux.us/Juice-Sucking-Servers-Part-Trois/

mattiem,
@mattiem@mastodon.social avatar

@finestructure I’m not sure it’s actually truly fair to compare to Java memory usage. But still, this is good stuff!

mattiem,
@mattiem@mastodon.social avatar

@finestructure Don’t get me wrong - Java VM tuning is an enormous pain point. You basically cannot run JVM stuff without becoming an expert. But there is some optimized setting and that could, conceivably compete quite well with Swift’s memory usage when handling a similar load. So think this could be hard to compare. But it’s still great and I vastly prefer it!

jsq, to random
@jsq@mastodon.social avatar

Is it possible to set xcodebuild settings inside a Package.swift somehow?

This builds my package successfully:

xcodebuild build -scheme MyScheme SWIFT_STRICT_CONCURRENCY=complete

But if I open Package.swift in Xcode, it fails to build because “complete" is not the default.

(This is because MainActor.assumeIsolated was introduced in iOS 17, but backported to iOS 13)

mattiem,
@mattiem@mastodon.social avatar

@jsq I know of no way to do that.

But you can configure packages with swift settings. Check this out: https://github.com/mattmassicotte/PackageTemplate/blob/main/Package.swift

mattiem,
@mattiem@mastodon.social avatar

@jsq Ok so that won’t work for you?

jsq, to random
@jsq@mastodon.social avatar

Here’s my workaround for a non-sendable closures.

Is this a good idea, or a great idea?

image/png

mattiem,
@mattiem@mastodon.social avatar

@jsq “Uncheck yourself before you wreck yourself”

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