Percy

Languages and libraries

virtual dom library

SHOW HN2018

Percy

A Rust and WebAssembly isomorphic virtual DOM implementation

github.com

#rust#webassembly#virtual dom#server side rendering

234points
50comments
#139of 2,155 in 2018
Top 7%of 2018 by points

How HN took it

CuriousMostly questions and neutral comments

3 positive, 7 neutral or asking, 0 mixed, 1 critical, out of 11 comments about the project. Thread score +0.16.

Idea: 1 for, 0 againstDocs: 1 for, 0 againstExecution: 0 for, 1 againstDesign: 1 for, 0 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

  • Macro-based html syntax is nice without a JSX-like language

    From 1 comment
    • The use of the html macro is incredibly nice, no need for a special "JSX" language, it’s all builting thanks to macros. I’m working on the same thing for python (using…
      Buetol on HN
  • Clear explanation of the server and client crate structure

    From 1 comment
    • Thanks, that makes sense. I haven't built web servers with Rust as yet; so it was a bit difficult to follow the code.
      nevi-me on HN

Objections

  • Wasm-bindgen limitations with generics made the commenter choose Yew

    From 1 comment
    • >One difference is that Yew is powered by stdweb and Percy is powered by wasm-bindgen. >I'm personally SUPER bullish on wasm-bindgen because it's been designed from day 1 to be…
      JD557 on HN
  • Name clashes with percy.io in the JS space

    From 1 comment
    • Heads up, there's something already called Percy in the JS space. https://percy.io
      andrethegiant on HN

Requests

  • A minimal example without server side rendering

    From 1 comment
    • As in an example app? If you don't need server side rendering you can have one Rust file but you also need a JS file to initialize the WebAssembly module. So just one file isn't…
      chinedufn on HN
  • Single file app code marking client and server parts

    From 1 comment
    • can you write an app in just once file and mark what can run in the client and what must only run on the server?
      jlebrech on HN

Questions

  • What an isomorphic virtual DOM is

    From 1 comment
    • Can someone ELI5(+) what an isomorphic virtual dom is?
      dtx1 on HN
  • How the backend works in Rust

    From 1 comment
    • Hi chinedufn, this looks very interesting. I am at the same stage as you re. "I REALLY want to use this for everything ...". I see you're using wasm_bindgen quite a bit, but from…
      nevi-me on HN

Alternatives named

  • Yew

    From 1 comment
  • React with react-dom/server

    From 1 comment
    • React already does this, though perhaps not in the way you're imagining. You can use react-dom/server with your client side code to render out HTML templates, then when you run…
      untog on HN
  • ScalaJS

    From 1 comment
    • Another good tool if you want to write front end in a great general purpose language is scalajs. It allows you to reuse the dame Scala code for backend and front end.
      lovescalajs on HN
  • ASP.NET and Opa

    From 1 comment
    • ASP.NET does this, you use its components and it generates client side javascript. In a more functional way, there's another language that does this caled Opa! http://opalang.org/
      somenewacc 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/17616839)