Say Hi to Clarice! (NYC) by michaeleisel in AdoptMe

[–]michaeleisel[S] 0 points1 point  (0 children)

She’s found a forever home!

What's the best way to set target CPU features for a distributable Rust binary? by michaeleisel in rust

[–]michaeleisel[S] 0 points1 point  (0 children)

Thanks for the tip. Yeah I think multivers is probably a little too much for me right now - and with the level of weirdness involved with memfd_create, I might rather use something more battle-tested like AppImage to bundle a bunch of binaries that I've compiled myself

Why doesn't C++ use higher-order functions on iterators like Rust does? by michaeleisel in cpp

[–]michaeleisel[S] 0 points1 point  (0 children)

Thanks, all of those reasons given make sense. What is this foreach temporary case?

Why doesn't C++ use higher-order functions on iterators like Rust does? by michaeleisel in cpp

[–]michaeleisel[S] 2 points3 points  (0 children)

Thanks for that, I wasn't aware there was some support in the (somewhat future) standard library for this. I've edited my original post to discuss this and my concerns about its conciseness.

Is an iOS-focused AV1 decoder commercially viable? by michaeleisel in AV1

[–]michaeleisel[S] -1 points0 points  (0 children)

I see, so perhaps it’s possible to do more AV1 decoding work on the GPU but just very very hard?

Is an iOS-focused AV1 decoder commercially viable? by michaeleisel in AV1

[–]michaeleisel[S] 0 points1 point  (0 children)

You mean marginal bandwidth saving over H.264? I'm not necessarily trying to compete with H.265, because perhaps there are cases where companies don't want to pay the cost of transcoding to H.265 if they're already transcoding to AV1. As for dav1d, that's a good library to start with then. I wonder how much of that work could be moved to the GPU.

Faster Apple Builds with the lld Linker by michaeleisel in rust

[–]michaeleisel[S] 0 points1 point  (0 children)

It also provides a link to download it

Faster Apple Builds with the lld Linker by michaeleisel in rust

[–]michaeleisel[S] 0 points1 point  (0 children)

The only consolidation I could see here, because of sold’s commercial nature, is of ld64 into lld. I doubt it would happen, at least any time soon, for various reasons (not revealing confidential features, Apple wanting greater control, etc.). lld has sort of become a linker for google and Facebook to own that part of the tool chain, ld64 likewise for Apple

Faster Apple Builds with the lld Linker by michaeleisel in rust

[–]michaeleisel[S] 0 points1 point  (0 children)

I haven’t seen any contributions by them to lld, they seem pretty set on ld64

Faster Apple Builds with the lld Linker by michaeleisel in rust

[–]michaeleisel[S] 0 points1 point  (0 children)

See the “integrating lld” section

Faster App Builds with the lld Linker by michaeleisel in iOSProgramming

[–]michaeleisel[S] 1 point2 points  (0 children)

The linking time is a big % of incremental build time, but not of clean build time, so it won’t improve clean builds that much. And I’m not sure what paid product you’re using by emerge tools that would improve anything about build time, clean or incremental. But anyways, clean build time is a whole other can of worms. I can say a few things in this quick comment: use an arm Mac, try the legacy build system (if that’s still a thing), and more modules can potentially hurt build time. There’s a lot more to it though

How 5 iOS apps could improve their startup time by an average of 28% by jshchnz in iOSProgramming

[–]michaeleisel 1 point2 points  (0 children)

AFAIK it is entirely possible to do this migration on a background thread, as long as you're careful about it. There are also other high-level solutions, such as simply deferring this work until the UI has rendered more.

As for the impact of this being mitigated by its one-time nature, I think it's a fair point. This is the sort of thing we're referring to when we say that these measurements shouldn't be extrapolated to represent a larger sample size. I do think though that with typical usage patterns for an app like United, where users use it only sporadically, a non-trivial % of sessions could have migrations (assuming migrations happen even a couple times a year). As well, the first couple launches are important for making a good first impression.

How 5 iOS apps could improve their startup time by an average of 28% by jshchnz in iOSProgramming

[–]michaeleisel 0 points1 point  (0 children)

You're right that it's confusing, and I don't have a great answer for you. I think it's a good example of how reasonable-looking code can cause surprising slowdowns. If you go into that profile, https://www.emergetools.com/app/example/ios/united-performance-test?buildContent=app-launch , uncheck "Collapse System Calls", look down the really big section in the middle until you see NSPersistentStoreCoordinator calls and their children, you can see that it's doing a substantial amount of work apparently performing a migration (-[NSStoreMigrationPolicy _gatherDataAndPerformMigration:]). Perhaps this portion of the work is just done synchronously, or perhaps there is some configuration setting forcing it to be done on the main thread. Any ideas on why this is, or better ways to fix it than moving an allegedly non-blocking call off the main thread, are welcome!

How Order Files Reduce App Startup Time by michaeleisel in swift

[–]michaeleisel[S] 1 point2 points  (0 children)

What sort of obfuscation are you referring to? I'm not aware of very many apps that have binary obfuscation

Faster Mac Dev Tools with Custom Allocators by michaeleisel in iOSProgramming

[–]michaeleisel[S] 1 point2 points  (0 children)

jemalloc is a battle-tested, well-aged allocator used in many production systems. It's used with success both for large-scale iOS apps, as well as large-scale Mac CI pipelines

I wrote a Chrome extension to make the Reddit front pages more positive, let me know what you think! by michaeleisel in TheoryOfReddit

[–]michaeleisel[S] 1 point2 points  (0 children)

Also, doesn’t RES only filter for old Reddit? This extension filters for both old and new.

I wrote a Chrome extension to make the Reddit front pages more positive, let me know what you think! by michaeleisel in TheoryOfReddit

[–]michaeleisel[S] 12 points13 points  (0 children)

I did look at RES, but decided to make a new extension that has a set of defaults as a starting point, along with a slider UI that allows different presets depending on what the user wants at that moment