| 10 Feb 2025 |
alexfmpe | so I guess the question becomes, is anyone using miso with ghcjs from today's nixpkgs that would also be driven into a corner if they didn't get to bump nixpkgs until js backend was feature par out of nixpkgs? | 22:55:11 |
alexfmpe | (and that's assuming the ghcjs build works on that nixpkgs, but that build takes longer to have an answer for) | 22:56:50 |
alexfmpe | * (and that's assuming that ghcjs 8.10 build works on this days-old nixpkgs, but that build takes longer to have an answer for) | 22:57:06 |
@dmjio:matrix.org | that I'm not sure, there's one person in particular who would know Tysonzer0 and he's not online, but I've pinged to join. All of miso's examples and haskell-miso.org use the 6 year old hash. | 22:58:04 |
@dmjio:matrix.org | I can make a PR to update my nix scripts and bump the nixpkgs hash to latest see how far it gets. | 23:04:18 |
@dmjio:matrix.org | alexfmpe let me check the payload sizes again rn and compare with what you've shown | 23:04:27 |
alexfmpe | I'd say compare with and without -dedupe, but not closure nor compression | 23:05:06 |
alexfmpe | I'm not sure if -dedupe per-se will come back | 23:05:36 |
alexfmpe | doyougnu: do you...gnow? | 23:05:49 |
| Kyle joined the room. | 23:30:40 |
@dmjio:matrix.org |  Download image.png | 23:53:26 |
@dmjio:matrix.org | alexfmpe: w/o the -dedupe too .. not sure if that even does anything anymore. There was a time when js-sources were duplicated in all.js though. 3x smaller | 23:54:07 |
@dmjio:matrix.org | $ nix-build --arg examples true -A miso-examples
| 23:54:54 |
alexfmpe | Hmmm about 2.5x or so. I wonder if the gap goes down considerably post closure and compression | 23:56:09 |
alexfmpe | Though... it might already be less bloated than 10 | 23:57:06 |
alexfmpe | * Though... it might already be less bloated than 8.10 | 23:57:13 |
alexfmpe | Huh I wonder if I can already build my project with 9.12 js backend | 23:58:00 |
alexfmpe | Ah one thing though | 23:58:56 |
alexfmpe | The stuff coming out of the derivation I pasted and it's all ~10MBs | 23:59:23 |
alexfmpe | I think that's an actual executable | 23:59:33 |
alexfmpe | At least it is for the hello package | 23:59:53 |
| 11 Feb 2025 |
alexfmpe | I'm not sure what else is there, maybe just a call to nodejs | 00:00:43 |
alexfmpe | * The stuff coming out of the derivation I pasted where it's all ~10MBs... | 00:01:08 |
Tristan Ross | https://endoflife.date/ghc this is fun to look at, anything older than 9.2 isn't supported at all. | 00:04:22 |
@dmjio:matrix.org | ❯ nix-shell -p closurecompiler --run 'closure-compiler -W QUIET < ./result/bin/simple.jsexe/all.js > out.js && du -hs ./result/bin/simple.jsexe/all.js out.js'
The compiler is waiting for input via stdin.
4.5M ./result/bin/simple.jsexe/all.js
3.7M out.js
| 00:07:26 |
@dmjio:matrix.org | seems advanced opts aren't working with this version of closure compiler, even when externs are specified | 00:07:55 |
alexfmpe | by "aren't working" do you mean incorrect behavior or just less savings that it used to? | 00:13:49 |
alexfmpe | because I see use of ADVANCED in hello world example in https://gitlab.haskell.org/ghc/ghc/-/issues/24584 | 00:14:37 |
alexfmpe | haven't yet tried out closure on actual js backend stuff | 00:14:56 |
alexfmpe | though I think we're in the wrong room to continue this conversation | 00:15:17 |