#What Better (Rust vs JS)
1 messages · Page 1 of 1 (latest)
Rust.
Rust ofc
The main reason is because rust is compiled so it is much much faster
If something in js takes milliseconds
Rust might take nanoseconds
here's a great video explaining in much better detail than i can do justice to:
https://twitter.com/TauriApps/status/1712013097995485515
Same API being what API?
anything
Connect to other API using request Async
Is the rest of the logic in JS or Rust?
I'm assuming you're talking about a Tauri app
It the rest of the logic is in JS stick with fetch
If the rest of your logic is in Rust go with Rust
I'm making a browser app, and I'm more comfortable on JS
It's easier to write a frontend in an adapted language than to mess around in Rust
The JS API exists for the sake of people who aren't familiar with Rust. Rust is better for performance but a developer's experience is important to consider; for you and your project, the comfort of familiarity with JS might be more important than performance.
48 minutes? 💀
Better than spending 48 minutes on discord
