blurspline
Re:Greenlet – Move an async function into its own thread in the browser
on Monday January 29, 2018 @10:54AM (#16258172)
after the web worker executes its function, it post a message to the original context with 3 arguments - the call id (c), error string(e), the successful result object(d).
the greenlet function when invoked returns a promise waiting to be resolved or rejected. the resolver and rejector functions are stored in object p with the key with a unique call id.
so line 18 `p[c][e?1:0](e||d);` basically means resolve or reject the promise based on the parameters from the web worker message by invoking either the resolve or reject function stored by its call id.
here's my quick attempt to understand and annotate this lib.
https://gist.github.com/zz85/25564f1910f1877c39c25ace5e5159b...
Re:QDirStat – Treemap Visualization of Directory Statistics
on Saturday January 20, 2018 @07:47AM (#16193154)
Spaceradar supports this feature https://github.com/zz85/space-radar#reading-from-a-file-
Re:QDirStat – Treemap Visualization of Directory Statistics
on Friday January 19, 2018 @11:01PM (#16191993)
You could try this Electron-based app SpaceRadar that should run on Windows, Mac, Linux https://github.com/zz85/space-radar
It has some support for sunburst graphs, flame charts, and treemaps (disclaimer, author here)