News for hackers. Stuff that matters.
Re:Show HN: Visualize Data Structures in VS Code by Gehinnn on Friday August 28, 2020 @12:02PM (#24306491)
I refactored all the visualization out into a standalone framework. I share your view ;) Except that it should not be a single file. That is technically neither feasible nor required.

https://hediet.github.io/visualization/ https://github.com/hediet/visualization

Re:Show HN: Visualize Data Structures in VS Code by cxr on Friday August 28, 2020 @02:13PM (#24308185)
What makes it infeasible?
Re:Show HN: Visualize Data Structures in VS Code by Gehinnn on Friday August 28, 2020 @05:10PM (#24309983)
Well, maybe it actually is easier than I thought to bundle everything into a single html file (I thought you couldn't embed fonts into html, but apparently you can [1]).

Anyways, in case of this application, all visualizations together are like 20MB (the monaco editor is a significant part of it). Having them split up and only loading things one demand significantly increases startup time.

Also, base64-encoding all the binary resources is a little bit inefficient.

[1] https://www.mediaevent.de/font-in-css-einbetten/