Juan Sanzone (@johnsanzo) header
Juan Sanzone (@johnsanzo) profile picture

📱iOS  Principal @PeYaTech | Prev: @paypal - @venmo / @Mercadolibre - @Mercadopago / @letgo / @olxtecharg / @globant / 🚀 Building: @stunyapp 🎸🎹

Buenos Aires, Argentina
Joined July 2009
Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)Photo by Juan Sanzone (@johnsanzo)
Juan Sanzone retweeted
Sabes por qué no conseguiste entrada para la despedida de Messi contra Benin? Sabes por qué la entrada no es digital y te hacen ir a retirarla física? Por la caja negra de la AFA y el Chiqui Mafia que reparte entradas entre sus punteros.
124
2,072
121
16,141
522,873
Here's how Swift uses your hardware to guarantee actor isolation 👷 When you run work on a Swift actor, it doesn't execute immediately: it has to be drained onto the co-operative thread pool. Actors are backed by a private internal linked list of incoming jobs. The scheduleActorProcessJob function in the runtime creates a ProcessOutOfLineJob to “drain” the actor, where the jobs in the linked list are dequeued, prioritised, and executed. (screenshot #1) swift_task_enqueueGlobal is the ultimate runtime call which hands the job off to the global concurrent executor, where the platform’s cooperative thread pool places them on a thread. On Apple platforms, this is libdispatch. ProcessOutOfLineJob is a small object allocated separately from the default actor. It registers the process method, which is invoked as the entry-point of job execution. It’s called when the job begins running on a worker thread in the cooperative thread pool. (screenshot #2) This process method drains the job queue in the default actor. (screenshot #3) Remember that that the default actor contains two queues: the “incoming” queue, implemented by a linked list, and the “executing” priority queue, where they are bucketed by priority and executed. defaultActorDrain is where the linked list of incoming jobs is processed into this priority queue, and jobs are finally executed one-by-one. (screenshot #4) To drain the queue safely, atomic CAS is used to place a lock on the default actor by setting the state machine to running. Then, in a loop, a job is taken from the existing priority queue (if any exists) and executed on the executor context, through runJobInEstablishedExecutorContext. At the end of the loop, processIncomingQueue places any jobs from the linked list of incoming jobs into the priority queue. The drain continues, in a loop, until all the queued work is complete. When no incoming jobs remain, and they’ve all been executed, the actor unlocks and the loop completes. Recall that process was scheduled on the global concurrent executor. This drainer job is tail-called at the end of the process function, and executes all the jobs in this context via runJobInEstablishedExecutorContext. This means the work queued on the actor is all performed serially on the same cooperative thread pool thread, until the drain is finished. I literally went all the way through the source code to understand how actors actually work. It was exactly as fun as it sounds. 🕴️ blog.jacobstechtavern.com/p/…
3
28
2,849
SwiftUI's List loads row views lazily, creating content only for rows near the visible region. For this to work, SwiftUI needs to be able to determine the number of views a ForEach element resolves to without evaluating the closure. Two common patterns prevent this: - Using an `if` statement inside ForEach changes the number of views per element, so SwiftUI has to evaluate every closure upfront to get the count. - Wrapping rows in AnyView hides the type information SwiftUI needs to determine the view count, with the same result. In both cases, SwiftUI ends up evaluating the ForEach closure for every element in the collection before any rows are displayed. You can learn more about maximizing the performance of dynamic lists in SwiftUI and common pitfalls from the sample chapter of my book "The SwiftUI Way". You can read it for free here: books.nilcoalescing.com/the-…
6
21
1
246
22,555
SwiftUI Agent Skill 3.0.0 just released! It can now parse xctrace data from Time Profiler, hangs, animation hitches, and SwiftUI traces, correlate issues with main-thread samples, and turn the whole firehose into JSON + Markdown an agent can actually reason about. Huge credit to @polpielladev for shipping the parser 🙌 Ready to make your SwiftUI app faster?
5
26
3
373
28,032
Juan Sanzone retweeted
Si alguien de la comunidad, tiene a alguna empresa que pueda poner lugar, nosotros hacemos el resto
Replying to @fkzemin @Swift_BA
si loco. SwiftBA en si esta medio deprecadado porque @marcosgriselli ya no esta en Arg y el la organizaba. Pero con @iNahuelZapata estamos queriendo reactivar la comunidad. Seguro este mes organizamos algo. Estamos viendo sede…
1
3
428
GPT-5 is now built into Xcode 26!
73
205
76
2,310
568,676
The first piece of tech my grandpa actually loves. Meet Ato, an AI companion designed for seniors. It's always there to talk, connect them with family, and keep their minds sharp. With @gaspihabif we're giving away 20 prototypes. DM us if your family is in the Bay Area.
165
198
76
1,669
234,325
Stretchy headers are a common pattern in iOS apps where the image expands as the user pulls down. We can create this effect in SwiftUI using the visualEffect() modifier without changing the image frame. I've just published a post about it: nilcoalescing.com/blog/Stret…
8
32
1
445
22,950
Juan Sanzone retweeted
Insight charla de Real-World SwiftUI Navigation? Con Juan lo llevamos al siguiente nivel navegación más escalable routers modulares por feature cada módulo con su propio stack = 🔥 para arquitecturas limpias Un ejemplo real de @johnsanzo 👇 github.com/juansanzone/swift…
1
1
2
464
Juan Sanzone retweeted
🔥 Primera MeetUp 2025 con la comunidad iOS en Casa PeYa 💥 @johnsanzo nos voló la cabeza con SwiftUI + NavigationStack modular 😮‍💨 @JonUrq mostró cómo crear tus propias CLI tools con Swift 💻 Talks, after y comunidad = combo ganador 🙌 #Swifteando
1
6
14
1,089
Juan Sanzone retweeted
Qué jugador, mandandose terrible live coding! @johnsanzo #swifteando
1
1
11
329
Juan Sanzone retweeted
¡Llegó el gran día! Hoy te esperamos para actualizarnos en el iOS Meetup en Casa PeYa 📢 🗓️Mié 9/4 | 18:30 hs (hoy) 📍Parque Patricios, Piso 10 Charlas: - SwiftUI Navigation – @johnsanzo - CLI tools in Swift – @JonUrq #iOS #Swift #PeYaTech
2
1
2
885
Juan Sanzone retweeted
Vuelven los meetups iOS en Bs As! No te quedes afuera! Cupos limitados!
iOS Meetup en Casa PeYa 📢 🗓️Mié 9/4 | 18:30 hs 📍Parque Patricios, Piso 10 Charlas: - SwiftUI Navigation – @johnsanzo - CLI tools in Swift – @JonUrq Cupos limitados → ¡Inscribite acá! 👉n9.cl/yqy30c #iOS #Swift #PeYaTech
1
1
5
496
Juan Sanzone retweeted
iOS Meetup en Casa PeYa 📢 🗓️Mié 9/4 | 18:30 hs 📍Parque Patricios, Piso 10 Charlas: - SwiftUI Navigation – @johnsanzo - CLI tools in Swift – @JonUrq Cupos limitados → ¡Inscribite acá! 👉n9.cl/yqy30c #iOS #Swift #PeYaTech
5
4
7
3,387
Juan Sanzone retweeted
Structural Identity is a really important concept to understand. In particular, it's really useful when working with animations. Not understanding how this works correctly always leads to: - Unnecessary re-drawings - Glitchy animations tanaschita.com/swiftui-struc… @tanaschita 👏
1
1
134
Juan Sanzone retweeted
Hiring Android devs in Los Angeles! 🚀 Need to be onsite—come build this awesome device with us. My DMs are open!
15
12
2
170
17,417
Juan Sanzone retweeted
Estamos creciendo y no nos dan las manos! Buscamos BizDev Manager que venga a liderar ventas regionales en Rebill. LinkedIn no nos funciona, así que confío en la comunidad de X para encontrar a la persona indicada! 🙏🏼
3
15
4
35
9,922
Juan Sanzone retweeted
This is the first time I got featured in @twannl's newsletter, feels like a milestone 😱 Here is the article: manu.show/2025-02-22-advice-…
3
2
11
1,791
🚀 We’re hiring a Backend Engineer at Daffy! 🚀 Come help us scale our modern donor-advised fund, build seamless integrations, and optimize our backend in Kotlin, Dropwizard & PostgreSQL. Join a mission-driven team making giving easier for everyone.
2
9
17
2,386