Readit News logoReadit News
ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
xori · a year ago
I understand, but things like https://github.com/GoogleChromeLabs/comlink enable it. Similar to how iFrames don't have access to their parent page you need a facilitator. My question is why not use a js facilitator that could work in all browsers, rather than just Chrome.

I find it an interesting choice that the author decided to invest in new iFrame technology rather than existing multi-thread technology in the browser.

ashubham · a year ago
I don't think Comlink supports DOM as well. It's just syntax sugar over Web workers making them easier to use rather than providing new functionality over them.
ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
ks2048 · a year ago
The demo is computing prime numbers - what does that have to do with the DOM?
ashubham · a year ago
It also plots the prime numbers on a visualization which is DOM. You will see over time plotting more points becomes time consuming in the demo
ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
pragmatic · a year ago
I think you’re burying the lede here.

It looks like you have the ability to run an isolated portion of the dom on another thread and you can communicate with it with this library? Am I close?

I think more examples could help. Could you have 2-3 real time analytics viz/charts running in 2-3 different threads? Is this mostly for desktop or does mobile benefit also?

ashubham · a year ago
Thanks for the feedback.

You could run any number of parallel threads.

This is applicable on both desktop and mobile.

ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
kreetx · a year ago
What are "third party plugins" in this context?
ashubham · a year ago
Let's say your application supports a plugin marketplace where community can build plugins for your app.

For eg, a testrail plugin for JIRA or a diagramming plugin on Google Docs.

You would want to run these plugins in their own DOM so that they don't accidentally slow down the main app.

ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
XCSme · a year ago
> Heavy data visualizations, interactive infographics etc

If they are so heavy, shouldn't the vizualization be WebGL? The DOM is for hierarchical information.

ashubham · a year ago
There are no good webGL charting libraries. SVG is the gold standard as the fidelity is way higher. No one wants to look at charts which look like science experiments.
ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
keyle · a year ago
Sure, let's take 80% of market share and track users for our own benefits. Standards.
ashubham · a year ago
Use Brave. No tracking, latest features. FF needs to get their shit together honestly.
ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
mr_toad · a year ago
They say they’re looking at implementing origin-agent-cluster. That doesn’t mean they’ll change their internal process model. There is no specification for how a browser runs processes. Even Chrome might decide to use threads instead of processes for iframes.
ashubham · a year ago
Correct. A different thread is good too, as long as they are separate resources from the main DOM.
ashubham commented on Show HN: Parallel DOM – Upgrade your DOM to be multithreaded   pdom.dev/... · Posted by u/ashubham
raggi · a year ago
classic web engineering demo:

  - small well contained math operation that could be put in a worker
  - instead of putting that in a worker, startup a whole parallel page and shuttle messages via ipc for the heaviest part of the process, redoing a lot of the work twice
why are the solutions always backward?

ashubham · a year ago
Even the visualization is drawn in the parallel worker. Which CANNOT be put in a worker. If you wait long enough on the demo page, you will see how much time just redrawing the DOM is consuming.

u/ashubham

KarmaCake day51March 19, 2017
About
No business like the the show business!
View Original