Sign in

Yury Selivanov

@1st1.dev
2.9K followers 30 following 79 posts

Co-founder & CEO of Gel • Python core developer • PSF fellow • async/await • asyncio • uvloop • asyncpg ••• @geldata.com • github.com/1st1

PostsRepliesMedia
Yury Selivanov @1st1.dev · 17/05/2025
📣 if you are at PyCon US come to see my talk 2:30pm Ballroom BC. you will not regret it to say the least...
0110
Yury Selivanov @1st1.dev · 14/01/2025
We're almost there...
1224
Yury Selivanov @1st1.dev · 31/12/2024
2024 was tough but transformative. dropped 15kg, resolved some health and behavioral issues, and finally made progress on guitar—bar chords are happening (i'm still 🚮, i know). 2025 is gonna be a banger—for me and @edgedb.com 🫡, stay tuned.
060
Yury Selivanov @1st1.dev · 18/12/2024
Believe me when I say this: it will be absolute 🍌🍌🍌🍌🍌🍌🍌🍌🍌 Join @pablogsal.com and I at PyCon US 2025.
A screenshot of a submitted talk to PyCon US 2025. The talk title is "Zoom, Enhance: Asyncio's New Introspection Powers".
1121
Yury Selivanov @1st1.dev · 13/12/2024
Center-aligned code is beautiful, so glad I made the switch. Can somebody help me debug my Python code though? 🙏
3170
Yury Selivanov @1st1.dev · 08/12/2024
Running EdgeDB test suite is like...
061
Yury Selivanov @1st1.dev · 04/12/2024
Which one is more readable, SQL solutions (they are great) or EdgeQL? I'm biased, please help. 👋 (day 4 AoC solution)
121
Yury Selivanov @1st1.dev · 03/12/2024
Here's the whole thing for your (hopefully) enjoyment:
110
Yury Selivanov @1st1.dev · 03/12/2024
Tying it all together, finally:
100
Yury Selivanov @1st1.dev · 03/12/2024
But remember, we just need to find if there's ONE way for a record to satisfy the rules:
100
Yury Selivanov @1st1.dev · 03/12/2024
Now the sweet part, time to test every record we prepared against the "good record" requirements:
100
Yury Selivanov @1st1.dev · 03/12/2024
Remember, EdgeQL is declarative and functional, so it's not your typical Java code. We need to be a bit creative with this task. Let's expand every "record" into a set of "records" that we'll be trying to lobby through the rules:
100
Yury Selivanov @1st1.dev · 03/12/2024
Then we want to just parse the records into arrays of integers -- so much easier to work with!
100
Yury Selivanov @1st1.dev · 03/12/2024
Let's break this scary (no so!) query apart. First, split the incoming string into an array of strings/lines and convert it into a set:
100
Yury Selivanov @1st1.dev · 03/12/2024
Silly me. Turns our Advent of Code challenges have two parts in them, and who knew, the second part is harder 🙈 I went back and implemented the second part of the second day challenge. This might be interesting to you regardless of EdgeQL, read if you like math or SQL too. 🧵
261
Yury Selivanov @1st1.dev · 03/12/2024
Part 2 wasn't that problematic either
100
Yury Selivanov @1st1.dev · 03/12/2024
Alright, me vs. Advent of Code. Part 1 of today's challenge is super straightforward. Dare I say, EdgeQL solution is actually more concise and elegant than a corresponding Python code.
221
Yury Selivanov @1st1.dev · 02/12/2024
Advent of code in EdgeQL, day 2
160
Yury Selivanov @1st1.dev · 02/12/2024
Albeit we can make EdgeQL version shorter
010
Yury Selivanov @1st1.dev · 02/12/2024
ngl Python looks great too
110
Yury Selivanov @1st1.dev · 01/12/2024
Alright advent of code, let's do this in EdgeQL
190
Yury Selivanov @1st1.dev · 26/11/2024
Hello from 🇲🇽
080
Yury Selivanov @1st1.dev · 24/11/2024
Upon further investigation, apparently wrapping a single callback in a lambda expression, significantly increased number of Python objects created and skyrocketed pressure on GC. Any code that used gather() heavily could become significantly slower. This patch fixed it entirely.
190
Yury Selivanov @1st1.dev · 24/11/2024
I wrote a rather involved stress microbenchmark and didn't observe any difference. Then @pablogsal.com came and did his thing, uncovering the actual culprit: asyncio.gather() got significantly slower. Something was wrong with 'lambda' functions in it.
150
Yury Selivanov @1st1.dev · 24/11/2024
The most recent mind blowing finding was that somehow, our branch made asyncio 25% slower on some benchmarks, which was completely unexpected for me. Here's a link to the PR by the way: github.com/python/cpyth...
140