P-Y
p-y.wtf
P-Y
@p-y.wtf
https://p-y.wtf | Android Eng @Square | hashnode.com/@py | instagram.com/py.ricau | LeakCanary, Radiography, square/logcat, square/PAPA. He/Him
Pinned
P-Y @p-y.wtf · Dec 21
Here's a thread of my past technical posts & threads!

Pinned it to my profile to make these threads easier to find without having to scroll through all my random hot takes like how S'mores are disgusting garbage

#AndroidDev
Reposted by P-Y
Turns out Tidal is only a few dollars more a month for a family plan than Spotify and they have a cool feature where they’re not running ads to recruit for the gestapo.
November 7, 2025 at 10:56 PM
TIL that you can easily slice a pizza or pie in 5 pieces: make a paper pentagon, place it at the center, use corners as slice starting points.

Paper pentagon? Tie a simple overhand knot with a long strip of paper, keeping it flat, cut off the ends.

Wow. Life changing trick 😊
November 8, 2025 at 2:51 PM
Reposted by P-Y
This is fantastic and @zacsweers.dev deserves all the praise but it also is gonna give you a false idea of what Z is like as a maintainer and author, what the project is like, and how you might achieve something like this yourself
Hot take: Dependency Injection on Android just got a huge upgrade!!

Square just moved Anvil to maintenance mode to adopt Metro - a DI framework built by ONE PERSON that's 47-56% faster than Dagger+Anvil.

This is what "individual developers changing ecosystems" looks like 🧵

#AndroidDev
November 8, 2025 at 7:01 AM
Reposted by P-Y
Hot take: Dependency Injection on Android just got a huge upgrade!!

Square just moved Anvil to maintenance mode to adopt Metro - a DI framework built by ONE PERSON that's 47-56% faster than Dagger+Anvil.

This is what "individual developers changing ecosystems" looks like 🧵

#AndroidDev
November 7, 2025 at 7:13 PM
Reposted by P-Y
The wet fart noise you hear is the AI bubble deflating. CEOs are pivoting from "AI will make us more productive, somehow" to "culture will make us more productive, somehow"

The bottleneck has ALWAYS been bad strategy at the top. But instead, Amazon is trying to solve it by hollowing out the middle.
Amazon's layoffs are driven by something even stupider than AI
Andy Jassy wants you to think that velocity can make up for lack of strategy. But "build, measure, learn" only works if you're willing to learn.
productpicnic.beehiiv.com
November 2, 2025 at 6:51 PM
"Banana engineering"

I just made that up, but I see this pattern all the time when investigating issues:

"This bug appeared yesterday. I bought bananas yesterday. Let's throw away the bananas, maybe the bug will go away"

Correlation != Causation yadda yadda yadda

youtu.be/kOH1Kdj9c1c?...
Embracing the Chaos: Investigating Production Madness - Pierre-Yves Ricau | droidcon Berlin 2025
YouTube video by droidcon & fluttercon
youtu.be
October 30, 2025 at 12:57 PM
Waiting for the build
October 30, 2025 at 12:25 PM
Is there a type of graph that represents distributions over time?

e.g. take a sample of data every day, graph a distribution every day, then represent that over time.

Seems like a 3D map might work well
October 28, 2025 at 4:41 PM
I've been going down a stats + Android macrobenchmarks rabbit hole

Trying to write a blog post about that, in the meantime I'll share some raw thoughts here as a thread.

I've been focusing on benchmarks that capture frame duration metrics, e.g. developer.android.com/codelabs/jet...

#AndroidDev
Practical performance problem solving in Jetpack Compose  |  Android Developers
Make your Compose app run fast by analyzing system traces and fixing common lag causes.
developer.android.com
October 24, 2025 at 1:13 PM
rods... WORDS, I MEANT WORDS godamnit
October 24, 2025 at 11:50 AM
Reposted by P-Y
The German company that makes the mechanical ladder used in the Louvre heist has used the image to advertise, with the text 'When you need to move fast'

10/10 response, no notes
October 24, 2025 at 8:27 AM
Reposted by P-Y
Come see @hoford.bsky.social and I in London next week -- we have some cool stuff to show off :-)

#RemoteCompose: an #AndroidX framework to project rich, animated #UI from apps or servers onto remote surfaces.

#dcldn25
October 22, 2025 at 9:44 PM
Reposted by P-Y
I made plot-benchmarks (a tool to view and compare AndroidX Benchmark Results) public.
androidx.dev/benchmarks/p...

Simply drag and drop the benchmark JSON to the page, and you can start plotting and comparing !

The souce code for the app is here: cs.android.com/androidx/pla...
Plot Benchmarks
androidx.dev
October 22, 2025 at 5:26 PM
Great crowd with the Paris Android User Group at Radio France

Showing how frame metrocs & percentiles are computed in Macrobenchmark, then I went on to explain how to draw a distribution, compute confidence intervals, and do bootstrapping. That was a little ambitious, but tons of fun

#AndroidFun
October 21, 2025 at 10:51 PM
Reposted by P-Y
I wrote a thing about this exact frictionlessness last week, from the perspective of art in particular. phirephoenix.com/blog/2025-10...
choosing friction
In 2018, legal scholar Tim Wu wrote in the New York Times that: Today’s cult of convenience fails to acknowledge that difficulty is a constitutive feature of human experience. Convenience is all desti...
phirephoenix.com
October 21, 2025 at 1:07 PM
Love this!

Graph traversal might be intimidating, but you really just need:

1) a way to track what you've already seen (e.g. set, boolean flag on node..)

2) a way to track what you still have to see (e.g. list..)

3) a way to decide what you should see next (e.g. head or tail of list, priority..)
They don’t teach you this enough in CS school: graph data structures and algorithms are everywhere. Maps, social networks, build systems, object graphs, page ranking, you name it.
Master them, and you’ll unlock superpowers in problem-solving. 🚀
October 21, 2025 at 11:53 AM
I turned a leak investigation into a post on the Block eng blog to share a method that works well!

It's a bit long... I had to show how to encode code knowledge to automate leak investigations, and dig even deeper with YourKit Java Profiler.

engineering.block.xyz/blog/the-lea...

#AndroidDev
The LeakCanary Method
This blog post shares a method for root causing Android memory leaks
engineering.block.xyz
October 21, 2025 at 9:00 AM
Reposted by P-Y
my toxic engineer trait is that I'm basically allergic to code

all code is bad. the less code the better. why are you writing new code stahp *sprays devs with squirt bottle*
October 19, 2025 at 9:55 PM
I just discovered the WindowInspector.addGlobalWindowViewsListener() API in Android version 36.1 #AndroidDev

Commit:
cs.android.com/android/_/an...

Happy to see a request for a new API land!

(I officially asked in 2023 & unofficially for many years before issuetracker.google.com/issues/29031...)
Search and explore code
cs.android.com
October 20, 2025 at 7:56 PM
Just saw "Chien 51" (title "Dog 51" in English) and really enjoyed it.

Elements of Minority Report & Hunger games, but in a French set up which felt reasonably realistic, not overdoing things like typical Hollywood movies, more substance. Great acting

Highly recommend!
October 20, 2025 at 5:53 PM
Reposted by P-Y
There's a type of guy whose only contribution at work is sheer volume of outputs, whether or not they serve any purpose. AI tools ask us, "what if everyone could be that guy?"

It would suck! A lot!

Scaling up trash only makes more trash. Work that doesn't pave a road to a better system is waste.
All your problems are people problems (Don't Just Do Things, Part 2)
If you want to do strategy, you must be willing to do process transformation first.
productpicnic.beehiiv.com
October 19, 2025 at 2:34 PM
This is in less than an hour!

I'll be talking about Benchmarking with confidence.. wish me luck, live demos incoming

www.meetup.com/new-york-and...

#AndroidDev
October 16, 2025 at 8:09 PM
Reposted by P-Y
rememberGraphicsLayer() is amazing! 🤩
Using it, I can split a Composable into multiple slices and animate them separately, like in my glitch effect.

www.sinasamaki.com/glitch-effec...
October 16, 2025 at 7:00 AM
Reposted by P-Y
Awesome post from @f1xedgear.bsky.social and @autonomousapps.bsky.social about improving Gradle sync times in the IDE

engineering.block.xyz/blog/shrinki...

#gradle
Shrinking Elephants
Managing very large projects with Gradle and Intellij IDEA-based IDEs
engineering.block.xyz
October 15, 2025 at 10:30 PM
Reposted by P-Y
tfw your 1,000-word tweets aren't working
October 15, 2025 at 7:24 PM