bartblast
Creator of Hologram
Hey folks,
I’ve started publishing Build in Public posts about Hologram, roughly 1-2 times a week. They cover the design thinking behind framework features as they happen: pivots, trade-offs, the messy middle of API design before things ship, and so on.
First one is up now about the realtime layer I’ve been working on the last few weeks.
If that’s the kind of thing you want to follow:
- LinkedIn: https://www.linkedin.com/in/bartblast/
- X: @Bart_Blast
- Bluesky: @bartblast.com
Trending in News & Updates
Doggo 0.18.3 has been released.
Added
tabs: Add a disabled attribute to the :panel slot. A disabled tab can be focused with the arrow k...
New
ReqLLM v1.28.0 has been released.
Features:
add StepFun chat and audio providers (#1087) by mikehostetler
openai: honour image deta...
New
Hologram v0.12 is out! This one is for the big apps. Evo Store, Hologram’s Performance Sponsor, has an app with over 9,000 Elixir modules...
New
Mob 0.9.18 has been released.
Added
anchor: "bottom" on :scroll, for chat logs (MOB-481). The scroll
opens at the end of its content. ...
New
Nerves v2.0.0-pre.4 and v2.0.0-pre.3 has been released.
Changes
Fix typo preventing SOURCE_DATE_EPOCH from propogating through the
fi...
New
Mob 0.9.17, 0.9.16 and 0.9.15 has been released.
Added
Async work in screens, the LiveView way. Mob.Socket.start_async/3 runs
a functi...
New
Some root certs are compromised, updates are needed to maintain TLS security.
As reported by Mozilla the eMudhra intermediate CA privat...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #hex










Showing Posts 1 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
hxgdzyuyi
cool


DaAnalyst
Apologies if annoying, but how far down the road is importing and calling Elixir functions in hologram from JS?
bartblast
No worries, good thing to ask!
Action dispatch from JS already works today via
Hologram.dispatchAction("name", "target", params)- that’s the supported path. See the “Dispatching Actions from JavaScript” section in the docs: JavaScript Interop.Calling arbitrary Elixir functions from hand-written JS (outside the action-handler model) isn’t planned though. Hologram doesn’t just transpile - it’s a full compiler. Among other things, it analyses the call graph at compile time and ships only the Elixir code each page actually needs (which is why Hologram bundles stay so small). A JS call site referencing an arbitrary Elixir function is opaque to that analysis, so the function (or its transitive deps) could get tree-shaken out of the bundle. Action dispatch sidesteps this because actions are first-class compile-time entry points the compiler already traces.
The reverse direction - Elixir → JS - is mature today via the
Hologram.JSmodule:js_import,JS.call,JS.get,JS.new, the~JSsigil, etc. (Same docs page covers both directions.)DaAnalyst
Thank you!
DaAnalyst
So, just to confirm before diving into it: I can now reuse full fledged Elixir modules otherwise used server-side and invoke their functions from my web components by merely having a hologram wrapper for them (
Hologram.dispatchAction("name", "target", params)?bartblast
Correct!
DaAnalyst
Yeah, I’ve just checked it with my LLM. Thanks, man! This looks great!