#What Better (Rust vs JS)

1 messages · Page 1 of 1 (latest)

final hinge
#

What better on Tauri: Same Api on Rust, Same API on NodeJS

clever patrol
#

Rust.

toxic otter
#

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

clever patrol
brisk tulip
toxic otter
final hinge
brisk tulip
#

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

final hinge
#

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

worthy eagle
#

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.

clever patrol
#

Better than spending 48 minutes on discord