Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,801 members, 7,817,315 topics. Date: Saturday, 04 May 2024 at 10:02 AM

Yew Framework: Build Multi-threaded And Performant Web Front-end In Rust - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Yew Framework: Build Multi-threaded And Performant Web Front-end In Rust (732 Views)

Why I Am Stepping Into Rust / Threaded/nested Comment System Using Mongodb / Front-End Developer Or Back-End Developer: Which Job Title Has A Higher Salary? (2) (3) (4)

(1) (Reply)

Yew Framework: Build Multi-threaded And Performant Web Front-end In Rust by harryobas: 9:42am On May 22, 2020
I have been doing Rust now for over 8 months and I'm absolutely loving it. Rust advertises itself as a multi-paradigm programming language focused on performance and safety and provides memory safety without using garbage collection (wikipedia). With this statement one might be fooled into thinking that the use cases for Rust are pretty hardcore such as operating systems, compilers/interpreters and bare-metal embedded systems to name but a few. However, Rust is super flexible to the extent that it can be used for console applications, desktop applications, web applications, andriod libraries, ios libraries, Dapps (i.e smart contracts that run on the blockchain) etc.

Rust on the Web with WebAssembly - As mentioned above, Rust extends far beyond its system programming domain and can be made to run on the web as well using WebAssembly (wasm) which is a technology that enables Rust to run alongside JavaScript on the web. WebAssenbly is a language agnostic bytecode that runs at near native speed. Other languages such as C++ and TypeScript can also be compiled down to wasm. Rust however provides first-class support and mature tooling for wasm.

Yew Framework - Yew (https://yew.rs/docs/) is a complete frontend web application building framework that allows you to write web applications in Rust that can access Web APIs and compile them into wasm so that they can be run on the web. It is inspired by the Elm and ReactJS projects. It also encapsulates actor-based message passing concurrency via web workers on the web. Yew uses the stdweb crate (crates refer to libraries in rust) internally to access DOM APIs. Here are some of the features/goodies provided by the framework:

1. It features a component-based framework which makes it easy to create interactive UIs. Developers who have experience with frameworks like React and Elm should feel quite at home when using Yew.

2. It has great performance by minimizing DOM API calls and by helping developers easily offload processing to background web workers.

3. It supports JavaScript interoperability, allowing developers to leverage NPM packages and integrate with existing JavaScript applications.

Happy Coding! smiley

1 Like

Re: Yew Framework: Build Multi-threaded And Performant Web Front-end In Rust by Seun(m): 9:32pm On Jul 29, 2022
Thanks. Bump!

(1) (Reply)

Easy Courier And Parcel Management Software / Finally! Got My First Freelance Work / Which One Is Better

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.