Sauron

Languages and libraries

web framework

SHOW HN2019

Legend

Sauron

A web framework in Rust that adheres to the Elm architecture

github.com

#rust#wasm#elm architecture#web framework

305points
97comments
#97of 2,195 in 2019
Top 5%of 2019 by points

How HN took it

CuriousMostly questions and neutral comments

4 positive, 19 neutral or asking, 1 mixed, 8 critical, out of 32 comments about the project. Thread score -0.14.

Idea: 1 for, 4 againstPerformance: 2 for, 3 againstDesign: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Concise code with no parser and compiler-checked view syntax

    From 1 comment
    • 1.) The syntax in creating the view: is just plain function calls which the rust compiler can accurately tell you about errors in your code, ie: typo, unclosed…
      ivanceras on HN
  • Good branding of the name

    From 1 comment
    • Looks cool, really like the name. It’s always interesting to me to see other developers who are good at branding, despite no obvious marketing background.
      owens99 on HN

Objections

  • Wasm bundle size is large (1.17MB minimal, 165KB release)

    From 2 comments
    • Sauron looks really great and I for one am super excited about the future of Rust + WASM for web apps(with Backend). However I am a bit concerned that even the minimal example is…
      K0nserv on HN
    • Doh. My bad for being a dummy. 165kb is still fairly big for a minimal example, much smaller than 1.17MB though, compared to React for example. Are there ways to analyze what…
      K0nserv on HN
  • Performance not yet optimized

    From 2 comments
    • 1.) The syntax in creating the view: is just plain function calls which the rust compiler can accurately tell you about errors in your code, ie: typo, unclosed…
      ivanceras on HN
    • I think If you start adding more code, the growth of the release binary will diminish. The todomvc code is only 207KB when compiled and has relatively more code than the minimal…
      ivanceras on HN
  • Name may evoke Lord of the Rings trademark concerns

    From 2 comments
    • Slightly off topic - I can’t imagine calling the framework Sauron and posting a photo from the LOTR movie is legal.
      eljimmy on HN
    • Is that the Internet's idea of "fair use" which is "I can pretty much do whatever I want as long as I say 'fair use'", or the legal one? Calling it Sauron is almost certainly OK.…
      jerf on HN

Requests

  • JSX-like syntax support

    From 2 comments
    • Would there be an easy/straightforward way to put a jsx transpiler in front of the rust compilation step, potentially with hot reloading? I realize that jsx in react is really…
      Octoth0rpe on HN
    • Look into the framework Yew. It sits somewhere between elm and react in how it's designed, and makes use of an html macro that allows for jsx-like markup.
      mdtusz on HN
  • Better bundle size reduction

    From 2 comments
    • > EDIT: It's 68KB gzipped and 165KB is the uncompressed size What's the state of brotli content type support in browsers? Wasn't that supposed to be the next generation beyond…
      wyldfire on HN
    • I think you can still reduce that size further with binaryen
      tiuPapa on HN

Questions

  • How does it compare to Yew?

    From 2 comments
    • Obvious questions first: How does it compare to Yew?
      dbrgn on HN
    • Do you have any experience with Sauron vs Yew? I'm quite interested in Yew due to the benchmark and that their code examples look similar to me. Yew also says Elm inspired. Since…
      asdkhadsj on HN
  • How does caching work with a single wasm binary?

    From 1 comment
    • (Disclaimer: very limited knowledge about WASM) Curious as to how WASM impacts browser caching? In the JS scenario, several modules will be cached and change in one may still…
      yumraj on HN

Alternatives named

  • Yew

    From 2 comments
    • Obvious questions first: How does it compare to Yew?
      dbrgn on HN
    • Look into the framework Yew. It sits somewhere between elm and react in how it's designed, and makes use of an html macro that allows for jsx-like markup.
      mdtusz on HN
  • Blazor

    From 2 comments
    • Between this and Blazor ( http://blazor.net/, among other wasm projects I'm forgetting right now), I'm glad more complicated UIs are being once again designed on the backend and…
      twoquestions on HN
    • Check out http://blazor.net/
      ksejka on HN
  • Phoenix LiveView

    From 1 comment
    • Another lightweight contender, not WASM though, is Phoenix Live View[1] [1] https://github.com/phoenixframework/phoenix_live_view
      lostjohnny on HN
  • Elm

    From 1 comment
    • Elm gets plundered repeatedly before it ever reaches version 1.0. Is name-brand Elm still growing in adoption?
      frou_dh on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/19756505)