Pedro Lisboa's Avatar

Pedro Lisboa

@pedrolisboa

I'm the loco one in this gang! Doing cool Ocaml code at Ahrefs 🐫

29
Followers
12
Following
4
Posts
27.11.2024
Joined
Posts Following

Latest posts by Pedro Lisboa @pedrolisboa

I'm planning to finally create a blog to gather some ideas in a single place. What held me back before was laziness.

04.03.2025 14:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

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

04.03.2025 06:04 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

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?

25.02.2025 16:19 πŸ‘ 12 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0

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...

17.12.2024 12:57 πŸ‘ 2 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Hello Word

17.12.2024 12:52 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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.

16.12.2024 17:00 πŸ‘ 15 πŸ” 1 πŸ’¬ 4 πŸ“Œ 1

It's great that you find ppx-by-example accessible ❀️
Btw, ppx-by-example is on a movement to be incorporated into ppxlib official documentation :3

17.12.2024 12:51 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0