Stats: 3,187,859 members, 7,933,236 topics. Date: Tuesday, 27 August 2024 at 09:54 PM |
Nairaland Forum / Science/Technology / Programming / Yew Framework: Build Multi-threaded And Performant Web Front-end In Rust (771 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! ![]() 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)
Blockchain Developers, How Much Do You Charge For A Full Application / 0x01. C - Variables, If, Else, While ALX Task / Programmer In The House Help Me Out.
(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. 9 |