4 ms·
Show HN: Haskell GHC JavaScript Code Minification Report
- deleted 2y ago[deleted]
- Vosporos 2y agoA very thorough explanation! Love the usage of graphs to understand the relationship between two points in the code. Would you say this was made easier by the STG and more generally the graph-reduction paradigm?
- gulinss 2y agoExactly! STG, being a "graph reduction machine," inherently makes it easier to understand the relationships between parts of code by representing programs as graphs. Here, I simply reversely translated the generated graph from JavaScript and pushed it into a visual graphical form to make the analysis more intuitively accessible. I suppose we could have a tool which does such graphical representation automatically for STG, generated from Haskell but I was need to measure its volume in JavaScript form. That's why I was needed to reconstruct it back from JavaScript.
- Vosporos 2y agoThanks a lot!
- v_ignatyev 2y agoGreat advance in developing Javascript backend for Haskell! Thank you
- gulinss 2y agoStay tuned! :) I continue my investigation at 1. https://gitlab.haskell.org/ghc/ghc/-/issues/24744 https://gitlab.haskell.org/ghc/ghc/-/issues/24744 2. https://gitlab.haskell.org/ghc/ghc/-/issues/23479 https://gitlab.haskell.org/ghc/ghc/-/issues/23479
- deleted 2y ago[deleted]