royalicing.com
webassembly in elixir: https://useorb.dev · components everywhere: https://components.guide · blog: https://royalicing.com · he/him
95 posts
540 followers
999 following
Prolific Poster
Conversation Starter
comment in response to
post
Another way of saying this is LLMs have been literally trained on the book “JavaScript: The Good Parts” but they also have been trained on JavaScript: The Bad Parts, The Ugly Parts, The Insecure Parts, And I’m A Dog And I Have No Idea What I’m Doing Parts
comment in response to
post
I write about web dev especially from a UX point of view, WebAssembly, components, testing, and a little about AI.
royalicing.com
comment in response to
post
What’s scary?
comment in response to
post
It’s very inspired by the idea of JSX, which allows composing of powerful puzzle pieces.
Rejigging the code example above and it might start to look more familiar:
comment in response to
post
Here’s a link to Orb’s GitHub: github.com/RoyalIcing/Orb
comment in response to
post
Here’s a link to Orb: github.com/RoyalIcing/Orb
And here’s where these component features are being built: github.com/RoyalIcing/G...
comment in response to
post
And down the road render this also in the browser so you have universal components like React.
That’s the magic of WebAssembly: it’s platform agnostic. It can run anywhere you want.
This could unlock a realtime browser editing experience.
comment in response to
post
I have the <head> rendering separately so I could do the Vercel trick of caching this shell separately from the dynamic body. Or the PHP trick of simply flushing that before rendering the <body>.
Soon I want to add more richer components like Canvas for WebGL. And accessible landmarks.
comment in response to
post
comment in response to
post
The send_css/2 function is then very simple, delegating the work to the GoldenOrb.CSS protocol and the venerable Plug library.
comment in response to
post
Under the hood GoldenOrb.CSS is an Elixir protocol, whose default implementation uses the Wasmex library to execute our WebAssembly.
comment in response to
post
Yes! And with several quite varied domains.
comment in response to
post
Curious if you can share how much?