Replies: 2 comments 3 replies
-
Hi Nael! I only know about these:
Keep us posted if you find (or author!) more. |
Beta Was this translation helpful? Give feedback.
-
Hi Nael!, Regarding moving to web assembly. I can comment about the performance characteristics If one expects a 10 fold increase in performance ( which is a reasonable target when moving to C++ or RUST ) I can say that is achievable target today, ... ONLY on the server ... OR on a desktop apps. But in the browser, today this is very difficult to achieve.. A browser target speedup of about three or four is achievable. The problem comes when mixing data in java script with web assembly (RUST in my case.) Data in javascript needs to be copied into a shared memory buffer before the RUST code and access it. This overhead kills performance ... this is being worked on by the byte code alliance, but the proposals which will fix this problem are still in the draft phase. making-javascript-run-fast-on-webassembly The trick is to refactor your app so that a large data set gets copied into the RUST domain .. and then all future data manipulations and rendering must be restricted to RUST code. The recommendation from the web-pack people is for all DOM manipulation to be done in typescript/java script and only a limited set of thing performed in Web-Assembley. Also when I do see performance improvements, in my own projects .. it is because the discipline imposed by RUST stricter typing Here is a better articulation of what I am trying to say...It is a long video , but Bryan Cantrill, talks about just this point at the end of this video ... It short there a lots of subtle issues to overcome ... I hope your conversions go well. I published my rust crates over the Christmas holiday ... as as they are shiny and new ... if you have any problems getting started, just let me know. I will offer free support. to even the smallest question. Martin |
Beta Was this translation helpful? Give feedback.
-
Hi!
Do you plan on rewriting some modules with WebAssembly?
I use many d3 modules for https://github.com/nshiab/simple-data-analysis.js.
I am exploring the idea of recoding some parts with the Rust language and then compiling it to WebAssembly to improve performance (and to learn something new in 2023!).
I was just curious if you thought about it for D3.
Thanks for your amazing work. :)
Cheers
Beta Was this translation helpful? Give feedback.
All reactions