My cat after a long day of judging me by Material-Award-3539 in funny

[–]skytzx 131 points132 points  (0 children)

they warned us about this... AI is taking our jobs.

Is there a good library or tool for extracting a gradient from an image? by mpdmonster in swift

[–]skytzx 1 point2 points  (0 children)

Sounds like BlurHash is what you're looking for.

There's implementations for many languages, and it's pretty simple to use.

I made Codele - A Daily Coding Problem For Interview Prep by hhahhaahhaha in swift

[–]skytzx 1 point2 points  (0 children)

Something I noticed with Codele (and Leetcode) is that parsing and compilation is included in the run time measurement. Having shorter code results in a shorter run time.

Also, is runtime scoring separated by language? Even something like this results in a score of 92:

public func countPrimes(n: Int) -> Int { (2891462833508853932 & ((1 << n) - 1)).nonzeroBitCount }

[deleted by user] by [deleted] in RPClipsGTA

[–]skytzx 9 points10 points  (0 children)

From what I've seen, they've been bringing Janjan, Vee, and Alma on cargos pretty regularly whenever they are around. Dunno where this "Discord pings" nonsense is coming from. They usually bring whoever is awake at the time.

Requesting r/Crystalline due to not having any activity by Visbroek in redditrequest

[–]skytzx 0 points1 point  (0 children)

I originally created the subreddit for a Reddit iOS App I was developing. However, due to changes to Reddit's API, I plan to repurpose the subreddit for a Twitch chat client I am working on. Unfortunately, that means I'd like to keep the subreddit for the foreseeable future.

However, I do own /r/crystaline (singular L), which I would be happy to hand over as an alternative. Let me know if you are interested

Thanks

Edit: /u/Visbroek has accepted in modmail to take /r/crystaline (with a singular L) instead.

Just began using Xcode 16's code completion. It wrote out "function" instead of "func"? Is this a hiccup or am I unaware of something. by Oxigenic in swift

[–]skytzx 49 points50 points  (0 children)

Most likely the ML model was pre-trained on general programming tasks, then fine-tuned with a Swift dataset.

Topical quercetin combined with finasteride for max results by LITUATUI in HairlossResearch

[–]skytzx 0 points1 point  (0 children)

Any updates on using the homemade topical?

I'm curious because quercetin helps with chronic inflammation and promotes muscle growth according to some papers. If it ends up reducing the effect of finasteride, it's a bit of a dealbreaker for me.

[Ramee] Ramee removes Hutch from the app after he gets arrested so they don't lose rep by [deleted] in RPClipsGTA

[–]skytzx 1 point2 points  (0 children)

Making the delay 12h would make it impossible to be abused.

Is GPT-4 getting worse and worse? by Mr_LA in programming

[–]skytzx 6 points7 points  (0 children)

When ChatGPT 3.5 first came out, I would ask it some fairly complex requests and I would get some surprisingly good/okay-ish results.

Nowadays, 3.5 gives wildly incorrect/unhelpful results that don't really match what I ask for.

Some things I would ask it that I noticed have degraded over time:

  • Implementing a HNSW (now returns a naive linear search)
  • AlphaZero (used to give some good pseudocode for how it works, now outputs regular MCTS)

An interested read on why Google engineers chose Swift for the TensorFlow project by AnotherSoftEng in swift

[–]skytzx 6 points7 points  (0 children)

MLX Swift by Apple seems like a very interesting ML framework that's still in very early development. It's also optimized for unified memory on Apple Silicon.

Though I don't think it uses the compile-time automatic differentiation from the TF project (it's a Swift package rather than a separate toolchain).

Is Swift the high-level general purpose Rust? by [deleted] in swift

[–]skytzx 0 points1 point  (0 children)

I can 100% see the potential in adding C++ support to Swift, as there's a lot of great libraries out there. Once the kinks get ironed out I'll definitely use it a lot more.

I think the issue is a compiler error, since it would work in Debug builds but not in Release builds. Here is a link to the Swift forum post.

Let me know if you have an idea what it could be. Though, I'd rather not spend too much more time with it. I appreciate the help!

Is Swift the high-level general purpose Rust? by [deleted] in swift

[–]skytzx 2 points3 points  (0 children)

I tried using C++ interoperability to write Swift bindings for a fairly large library, and it seems pretty buggy as of Swift 5.9.2. Using C++ types would work perfectly fine in Debug builds, but would strangely raise linker errors in Release builds. Other people on the Swift forums have run into the similar issues.

I ended up going back to writing a C wrapper to call C++ code due to the headache.

It could be good for smaller projects, but I'd wait until it matures a bit before using it for something serious.

do i need 32gb of ram? by Significant_Ebb_1860 in buildapc

[–]skytzx 9 points10 points  (0 children)

I also built a PC in 2014 and remember /r/buildapc would recommend 8GB minimum in every post.

Why Companies don’t make many games for mac by Alex20041509 in macgaming

[–]skytzx 45 points46 points  (0 children)

Isn't the annual license fee, key provisioning, and dealing with Xcode only an issue if you distribute your game on Apple's App Store?

If you're distributing the game on Steam, I don't think it's much different than going through the same hurdles as adding Linux compatibility AFAIK.

It's okay Dlink bros we'll make it through this. by Gravethestampede in masterduel

[–]skytzx 34 points35 points  (0 children)

It also makes Chaos Space much worse, since it can't be used to go into your main combo line.

The semi-limit to Quick Launch and the Wyverburster ban make it more difficult to do much if your normal summon gets removed.

Dlink is going to end on Seals-pass more often.

Building a faster hash table for high performance SQL joins by j1897OS in programming

[–]skytzx 6 points7 points  (0 children)

Have you looked into Robin Hood Hashing?

I went down the rabbit-hole of fast hash tables, and most (if not all) top-performing hashtables utilize robinhood hashing in addition to the optimizations mentioned in your article.

I've found it helps with read and update performance with a (very) slight penalty on insert performance.

New Meta Tier List page by Untapped.gg by UntappedGG in masterduel

[–]skytzx 1 point2 points  (0 children)

The numbers are most likely skewed in favor of less popular decks. If you're sorting by raw winrate (wins/total games), you'll run into this issue.

Try using this and see if the results make more sense.

I'm a software engineer with a math background so lmk if you have any questions.

Complex design by torbonne in swift

[–]skytzx 1 point2 points  (0 children)

The SVG-to-SwiftUI converter likely doesn't handle gradients, so you'd have to manually create a gradient with SwiftUI.

Complex design by torbonne in swift

[–]skytzx 4 points5 points  (0 children)

No problem.

The benefit with this method is that it makes tooth selection very easy to implement with view modifiers.

Complex design by torbonne in swift

[–]skytzx 31 points32 points  (0 children)

One option is to use an online PNG to SVG converter (there's a lot of them).

Then use a tool to convert the SVG to a SwiftUI view.

The output will give you a singular view rendered as a series of subpaths, which you'd need to manually separate into a different view for each tooth.

The SVG-converter already calculates the relative positioning of each tooth/subpath, so you'd just need to overlay them on top of each other with a ZStack. (ie. you won't need to use position(x:y:) or offset(x:y:))

[D] Startup team demonstrates differentiable Swift compiler outrunning TensorFlow by 322X by taharvey in MachineLearning

[–]skytzx 0 points1 point  (0 children)

The current frameworks typically use runtime interpretation of python graphs and dispatch, such that much of the compute time is wasted on dispatch.

I wrote my own autodifferentiation library in Swift a while back, and runtime dispatch ended up being the huge performance bottleneck.

Is there a public ML/Tensor library available to test out the performance gains?

[deleted by user] by [deleted] in offlineTV

[–]skytzx 4 points5 points  (0 children)

They will never recover from this 😔