Skip to content

ethan-sargent/elm-vs-yew

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elm vs Yew

DemoArticle


About

This is a demo showcasing the rendering performance of two frontend frameworks, Elm and Yew.

You can either run the whole demo, or run each single app separately. Please note that in order to run the Yew app, you need a browser that supports WASM.

Usage

First of all, install the required dependencies

yarn
cd elm && yarn && cd -
cd yew && yarn && cd -

For the yew app, you need wasm-pack and you need to add wasm32-unknown-unknown to your rust toolchain:

rustup target add wasm32-unknown-unknown

Serve locally

Bundle the two apps and serve them on a single page, available at http://localhost:10000

./make.sh serve

Build

Create the production build inside dist/ folder

./make.sh build

Create the production build with a custom publicPath for the Yew app:

YEW_PUBLIC_PATH="/custom/yew/" ./make.sh build

About

A visual demo on the performance of Elm vs Yew

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.4%
  • Rust 5.8%
  • Elm 4.6%
  • Mustache 4.4%
  • HTML 1.6%
  • CSS 1.5%
  • Shell 0.7%