This is smart. By means of this strategy, you may nonetheless use the UI applied sciences of the net whereas harnessing all the ability of the pc with a way more optimized language. Nevertheless, this characteristic of Tauri may be very hardly ever seen in different frameworks. Additionally, WebAssembly is a superb factor however has some type of absence within the internet. However why is that this strategy of two completely different languages so uncommon? To reply this query, we should first familiarize ourselves with the massive distinction of those two languages.
We can’t keep away from a technical comparability of those two languages if we need to strategy this query. Nevertheless, I need to maintain it brief.
Rust then again is a compiled language for system programming. Which means that Rust code is transformed into machine code earlier than it’s being shipped. The ensuing binary is due to this fact extremely optimized. Additionally, the language offers extra entry to system sources like reminiscence, rising the complexity of the implementation. Nevertheless, you have got practically whole management over your program.
However when is such a quick tempo required? There was just one undertaking within the latest previous the place I wanted to make use of Rust.
A while in the past, I needed to construct a small Markdown editor with reside preview utilizing Tauri (just like VS Code). For the parsing of the Markdown, the library “marked” was used. So good, so good.
However after a while I observed a sure latency that comes up when working with bigger texts. This has to do with the truth that with each keystroke, the entire textual content needed to be regenerated within the preview. The bigger the doc, the extra work for the parser. It shocked me a bit bit how briskly I acquired into this bottleneck. Now, there are numerous methods to assist right here.
To come back again to the query from the start: I believe desktop apps are a uncommon subject the place the requirement of nice UX and superior efficiency come collectively. IoT might have related necessities sooner or later too. Nevertheless, it might not share the necessity of nice consumer expertise. Perhaps, we’ll see this twin language strategy extra typically sooner or later.