Pedro Lisboa
banner
pedrolisboa.bsky.social
Pedro Lisboa
@pedrolisboa.bsky.social
I'm the loco one in this gang!
Doing cool Ocaml code at Ahrefs 🐫
I'm planning to finally create a blog to gather some ideas in a single place. What held me back before was laziness.
March 4, 2025 at 2:29 PM
Reposted by Pedro Lisboa
a nice trick I’m using for the client components is a map with component names with React.lazy

React requires the component as soon as it renders (if not preloaded). This way, it ensures client components aren't part of the initial bundle, and the server can add preload in SSR
March 4, 2025 at 6:04 AM
Reposted by Pedro Lisboa
I’m prohibited from running server-side JS, and I literally build an RSC runtime + framework for Reason. Client components are compiled by Melange to JavaScript, while the rest runs on the server natively.

It’s finally done, time to share it?
February 25, 2025 at 4:19 PM
For anyone wanting to start on ppx, here is this repo I've made to help: github.com/pedrobslisbo....

ppx-by-example hasn't had all the ways to build ppxs as it's a WIP project, but it will help you in the beginning

bsky.app/profile/davi...
December 17, 2024 at 12:57 PM
Hello Word
December 17, 2024 at 12:52 PM
Reposted by Pedro Lisboa
Whoever told you ppx's are bad, they have lied to you.

and if they suggest a replacement to be code-generation, it's probably because they don't understand ppx's and underestimate the pain of code-generation.

Stay away from those dogmatic views, and embrace learning tradeoffs.
December 16, 2024 at 5:00 PM