bartblast

bartblast

Creator of Hologram

Testers wanted: protocol pruning for smaller client bundles

:test_tube: Could use a hand testing something. Just landed a protocol pruning enhancement - the compiler now drops protocol implementations your app can’t actually reach, so every app gets smaller client bundles. Biggest win for apps whose deps ship lots of impls (Ash, ex_money, ex_cldr, decimal and friends), where the old behavior could explode the bundle and even stack-overflow the browser.

{:hologram, github: "bartblast/hologram", ref: "cab6efaedce58c1fe01582088b1ffeef6524364c"}

mix deps.update hologram, rebuild, then click through your pages (navigation, actions, anything that renders structs) and watch the browser console for client-side errors.

Bonus: compare your bundle sizes before and after, the runtime bundle especially (that’s the one that was blowing up) - would love to hear the numbers.

Where Next?

Popular in RFCs Top

tmbb
I’ve started working on a toy project to compile extended POSIX-compatible regular expressions into NimbleParsec combinators. These combn...
New
pzingg
https://github.com/pzingg/phx_cookie_consent I took a phx.gen.auth application and added support for storing a user’s cookie consent set...
New
BartOtten
This thread once discussed Routex in it’s early form. It has been repurposed to gather feedback and discusses pre-releases. Currently: p...
New
ca1989
Hi all, this week I played a bit with Phoenix and Elm. I ended up with this POC: https://github.com/carlotm/elmex The repository cont...
New
marick
TL;DR I’ve forked the Lens package, changed the API some, added new lens makers and – most importantly – added a ton of documentation. In...
New
wolf4earth
Every protocol you’ve shipped assumes the spec doesn’t change during the connection. This one doesn’t. Code is typed, composable, content...
New
type1fool
After discussing some of my ideas around Event Sourcing at last night’s Elixir Happy Hour in Austin (highly recommend), I spent some time...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement