4 ms·
This is really cool and makes me want to learn Elixir. Staying in one language for frontend and backend is just so appealing. To my knowledge, the other option
by graboid 4y ago
This is really cool and makes me want to learn Elixir.
Staying in one language for frontend and backend is just so appealing.
To my knowledge, the other option to achieve that would be having something like Blazor WASM or Rust Yew that compiles to WebAssembly to have a client-side app a la React/Vue/Svelte.
I wonder which of these approaches will end up be more prevalent in the future. To me it seems like compiling something React-like to WASM might be more attractive, because you can stay in your backend language, but ditch the permanent websocket connection.
- kolanos 4y agoI came across something that is somewhere in the middle. Maybe a happy medium? It's a Python library called IDOM [0]. Best way I can explain it is that it is server-side bindings for React, where state and diffs are passed back and forth for you via web sockets. You implement your components in Python with a React-like API and IDOM builds the equivalent React components for you on the client-side and then wires up your server-side state handlers. It is also web framework agnostic, works with all the most popular ASGI web frameworks in Python. Admittedly it is still a bit raw. But seemed like a really interesting concept when I was looking for LV equivalents. [0]: https://idom-docs.herokuapp.com/docs/index.html https://idom-docs.herokuapp.com/docs/index.html
- zem 4y agothere's also justpy, uses vue and is closer to liveview in that it generates all the frontend code for you. https://justpy.io/ https://justpy.io/