by jkelleyrtp on 12/11/24, 3:24 PM with 137 comments
by suby on 12/11/24, 7:21 PM
I did a cargo install. I then used the dx command line app to create a new project. After initialization I ran dx serve in the directory as instructed, but it gave me a compiler error with seemingly no feedback on what specifically went wrong. And again, this is for a hello world app that they generated for me. I'm unsure how to obtain more information on why it failed.
I feel like I'd have more insight and ability to debug this if I were trying to compile using a standard rust workflow rather than their CLI tool.
You can press v to enable verbose logging, but this doesn't add information which provides clarity to me. Here's the compiler output with verbose logging, though heavily edited to be readable in this HN comment box
14:17:49 [dev] Building server...
14:17:49 [dev] Building app...
14:17:49 [dev] Executing cargo...
14:17:49 [dev] cargo args: ["--profile", "server-dev", "-- verbose", "--features", "dioxus/server", "--bin", "hack"]
14:17:49 [dev] cargo args: ["--verbose", "--features", "desktop", "--bin", "hack"]
14:17:49 [dev] cargo args: ["--profile", "server-dev", "--verbose", "--features", "dioxus/server", "--bin", "hack"]
14:17:50 [dev] Setting builder to failed state
14:17:50 [dev] Build failed: Other(Cargo build failed, signaled by the compiler)
Status: Failed
by echelon on 12/11/24, 3:58 PM
On desktop/mobile, does Dioxus run as a native app? Is it an immediate mode renderer like egui? How do you style it? Or is it JavaScript + webview/electron?
On the web does it run as a WASM binary against a canvas renderer, or is it write to DOM? How does it talk to the DOM? WASM, JavaScript transpilation, etc.?
Can you do multithreading on web with web workers? Is the async story good? HTTP/gRPC clients?
Do you have to build your entire app in Dioxus, or can you incorporate other web (eg. React) apps? Can it talk to JavaScript?
How solid is the API now? Is it going to change a lot in the near future?
Do you think it'd be trivial to stuff a Bevy game inside of a Dioxus shell? We've thought it might be easier to prototype the UX outside the engine, especially since web is a deployment target.
How big is the community?
Looking into this for a project soon, so if any of the Dioxus devs can answer some of this, I'd super appreciate it. (Sorry for all the questions which may already be answered in the FAQ/docs.)
by jjallen on 12/11/24, 5:32 PM
Some of us want to invest many years of time and money into stuff and have to make the decision carefully.
by ewuhic on 12/11/24, 4:44 PM
I do track and use their main competitor - Leptos.
by oDot on 12/11/24, 5:23 PM
I'm also building a screenplay editor prototype[1] in the Rust equivalent, Iced, and while not as ergonomic as Lustre and Gleam, it is TEA. Iced is still in flux but I have trust, considering System76 uses it to build Cosmic.
[0]: https://blog.nestful.app/p/gleams-lustre-is-frontend-develop...
by diablozzq on 12/11/24, 4:08 PM
Mobile, desktop, web, rust
They have an eye on performance up front which is where most previous attempts fail.
And rust gives them the security and performance foundation up front.
.5 was a huge leap, this looks like the polish that should make it viable.
by weinzierl on 12/11/24, 6:17 PM
Do they require copyright assignment or a CLA? I could not find anything on their GitHub.
How many of their contributors are payed?
by ianpurton on 12/12/24, 10:54 AM
The way you write components is really great and the overall developer experience is very good.
by solidninja on 12/12/24, 1:41 PM
by ryukoposting on 12/12/24, 2:16 AM
The static HTML templating thing is pretty damn good, though. I actually use it to render parts of my blog.
by tdomhan on 12/12/24, 11:15 AM
by gr4vityWall on 12/12/24, 3:07 PM
Question: where does Qt stands these days, and how does this toolkit compare to it regarding accessibility and handling HiDPI screens? Are there any quality bindings for languages that aren't C++ and Python? It feels like they solved a lot of problems long ago, and the toolkit could be way more popular with better bindings and tooling.
by andridk on 12/11/24, 4:25 PM
Is the web framework necessary? How does this compare, to say Tauri w. React & Vite?
by datadeft on 12/11/24, 3:54 PM
by _blk on 12/11/24, 5:31 PM
by satvikpendem on 12/11/24, 6:17 PM
by solarkraft on 12/11/24, 11:11 PM
by adastra22 on 12/12/24, 6:07 PM
by revskill on 12/12/24, 4:42 AM
Trying to figure out which parts of the page to auto reload is hacky to me.
And it's the best proof of: Preoptimization is the root of all evil squares.
by _bin_ on 12/12/24, 6:23 PM
by kussenverboten on 12/11/24, 8:58 PM
by ecmascript on 12/12/24, 11:40 AM
by sa-code on 12/11/24, 4:49 PM
by trentontri on 12/12/24, 1:46 PM
by benatkin on 12/11/24, 7:33 PM