Live data from Hacker News

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

github.com

21–30 of 53 posts

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

#21
post #7

Earlier quoted context omitted.

An isomorphic virtual DOM is much like an inverted-index homomorphic shadow DOM, but instead of using a shadowed mapping they virtualize the original elements themselves .

I'm not sure if you are you are fucking with me or if i'm just ery stupid.... :(

AFAIK he's fucking with you ^^

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

#22
post #4

Can someone ELI5(+) what an isomorphic virtual dom is?

Some definitions from my understanding: "isomorphic" - can render on server and client side with same code, "virtual dom" - non-browser DOM, i.e. often just a HTML data model useful for mutating and then diffing to minimize changes to the page DOM, "dom" - the data model of the page.

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

#24
post #4

Can someone ELI5(+) what an isomorphic virtual dom is?

Sorry for the confusion I tried to write a title that would fit and guess I missed the mark! What I really mean is a virtual dom implementation that - On the frontend can diff/patch a real DOM node - On the backend can render into an HTML string that you can serve So my intended takeaway with that title was: -> A virtual dom implementation that allows you to write frontend web applications that support server side re…

> Sorry for the confusion I tried to write a title that would fit and guess I missed the mark!

You did not miss the mark, you did a good job in the limited space you had.

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

#25

Earlier quoted context omitted.

An isomorphic virtual DOM is much like an inverted-index homomorphic shadow DOM, but instead of using a shadowed mapping they virtualize the original elements themselves .

> An isomorphic virtual DOM is much like an inverted-index homomorphic shadow DOM, but instead of using a shadowed mapping they virtualize the original elements themselves. Not sure if this is ironic, but a 5 year old definitely wouldn't understand this!

Given software/computers are part of curriculum now, i would not be surprised if we have some five year old already understanding this.

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

#27
post #18

Earlier quoted context omitted.

damn, this sounds awesome, specially the part about batching renders, much like 'vsync' but for DOM. thank you for the info!

(Ok, before anyone goes running off telling their colleagues about this great new tech: I literally made all of this up on the fly except the batching stuff. That's actually one of two reasons why this whole shadow-DOM-stuff exists. The other is encapsulation. I think this whole thread is a most beautiful demonstration of Poe's law in its original form.)

I thought Shadow DOM only provides encapsulation??

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

#28
post #18

Earlier quoted context omitted.

damn, this sounds awesome, specially the part about batching renders, much like 'vsync' but for DOM. thank you for the info!

(Ok, before anyone goes running off telling their colleagues about this great new tech: I literally made all of this up on the fly except the batching stuff. That's actually one of two reasons why this whole shadow-DOM-stuff exists. The other is encapsulation. I think this whole thread is a most beautiful demonstration of Poe's law in its original form.)

This is brilliant. Your first comment had me laughing; your second had me second-guessing myself.

I think I have some new tech to tell my coworkers about. >;)

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

#29
post #2

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?

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 the code on the client side it'll call componentDidMount(), where you can add client-specific code.

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

#30

Heads up, there's something already called Percy in the JS space. https://percy.io

Pretty sure there's something called everything in the JS space. Thankfully this is the Rust/WASM space so all good names get to be recycled.
Post reply on HN