from Hacker News

Show HN: Percy – A Rust and WebAssembly isomorphic virtual DOM implementation

by chinedufn on 7/26/18, 12:23 PM with 50 comments

  • by nevi-me on 7/26/18, 1:08 PM

    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 a cursory look at the code; I can't figure out something:

    I can see how you're using wasm in the front-end, but could you please elaborate a bit more about in the backend? I presume that your backend is Rust based?

    I spent last weekend porting some code from NodeJS to a wasm module. I got it sort of working on Node, but haven't tried it on the browser yet (ran out of weekend).

    I'm quite optimistic about wasm [and Rust with wasm_bindgen]. I'd been thinking of writing a native add-on for Node, but the idea that I can use wasm instead is exciting.

  • by dtx1 on 7/26/18, 1:26 PM

    Can someone ELI5(+) what an isomorphic virtual dom is?
  • by thinkpad20 on 7/26/18, 1:57 PM

    How does this compare to the Yew framework?
  • by Buetol on 7/27/18, 4:21 PM

    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 pyxl/mixt/lys and brython) and you just proved that there’s interrest in that !
  • by andrethegiant on 7/26/18, 2:26 PM

    Heads up, there's something already called Percy in the JS space. https://percy.io
  • by _bxg1 on 7/26/18, 3:54 PM

    [makes side-eyes at React team to utilize webassembly]
  • by jhabdas on 7/26/18, 3:09 PM

    Has Facebook picked up on this yet? Good thing the Web is a Web of documents.
  • by jlebrech on 7/26/18, 12:49 PM

    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?
  • by lovescalajs on 7/26/18, 1:56 PM

    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.