Better HN
topnewbestaskshowjobs
Log inSign up

ashubham

51 karma · joined Mar 19, 2017 (9y ago) · 40 submissions

No business like the the show business!
Submissions

1.

Hot take: APIs > MCP, when it comes to developers

1 points · by ashubham · 1y ago · discuss

2.

Definitive guide to multi-threaded rendering on the Web(ashishshubham.medium.com ↗)

2 points · by ashubham · 2y ago · discuss

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Thanks for the feedback.

You could run any number of parallel threads.

This is applicable on both desktop and mobile.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Use Brave. No tracking, latest features. FF needs to get their shit together honestly.

comment 2y ago · link · parent

Correct. A different thread is good too, as long as they are separate resources from the main DOM.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Unfortunately, the new browser features used in the project are currently supported on Chrome/Edge only. But, FF/Safari have shown positive intent.

I am an FF user myself and super sad to see that :(

comment 2y ago · link · parent

Can you please put more details. "Origin-Agent-Cluster" frames are actually run in a separate sub process.

comment 2y ago · link · parent

The new browser features used for this project are only supported on Chrome/Edge right now. But FF/Safari have shown positive intent.

comment 2y ago · link · parent

That initial load lag seems is something non related to this project.

comment 2y ago · link · parent

I assume you meant "race conditions" when you say "racey multithreaded DOM". The multithreaded part here is still isolated in its own context (iFrame), you should never have a race condition with your main DOM thread.

comment 2y ago · link · parent

Heavy data visualizations, interactive infographics etc. Also, if your app has the capability to run third party plugins you generally want to run it in a separate context for security reasons. With PDom, you also isolate yourself from the perf implication the 3rd pary code may have.

comment 2y ago · link · parent

For 80% of all web traffic, I would still feel its an upgrade.

comment 2y ago · link · parent

Yes correct. Safari/FF have shown positive intent to implement this FWIW.

comment 2y ago · link · parent

And Edge. This feature has positive signals from Safari/Firefox.

comment 2y ago · link · parent

You might have to wait a few seconds to see the before dropping down in FPS on Chrome/Edge.

comment 2y ago · link · parent

WebWorkers do not have access to DOM.

22.

Show HN: Parallel DOM – Upgrade your DOM to be multithreaded(pdom.dev ↗)

73 points · by ashubham · 2y ago · 78 comments

23.

Streaming fetch (OpenAI etc.) for client side JavaScript(github.com ↗)

2 points · by ashubham · 3y ago · discuss

24.

Highcharts for Any Framework with WebComponents(github.com ↗)

6 points · by ashubham · 6y ago · discuss

25.

W3C Compatible Keys for JavaScript/TypeScript(github.com ↗)

2 points · by ashubham · 7y ago · discuss

26.

Infinite Scrolling using Generators and nothing else(medium.com ↗)

6 points · by ashubham · 7y ago · discuss

27.

Markee: Simple lightweight highlighting for the web(github.com ↗)

2 points · by ashubham · 8y ago · discuss

28.

Webpage screenshots at production scale(github.com ↗)

2 points · by ashubham · 8y ago · discuss

29.

Supercharge your search bar with visual tokens(medium.com ↗)

1 points · by ashubham · 8y ago · discuss

12