Post AcJv2fGlyrs5GHHduC by rml@functional.cafe
(DIR) More posts by rml@functional.cafe
(DIR) Post #AcJ6Tjj2QVbZEnejCK by rml@functional.cafe
2023-11-29T18:14:34Z
1 likes, 1 repeats
"The thing is that maximal tree-shaking for languages with a thicker run-time has not been a huge priority. Consider Go: according to the #golang wiki, the most trivial program compiled to #WebAssembly from Go is 2 megabytes, and adding imports can make this go to 10 megabytes or more. Or look at Pyodide, the Python WebAssembly port: the REPL example downloads about 20 megabytes of data. These are fine sizes for technology demos or, in the limit, very rich applications, but they aren't winners for web development.[...]I work on the #Hoot #Scheme compiler, which targets #Wasm with GC. We manage to get down to 70 kB or so right now, in the minimal "main" compilation unit, and are aiming for lower; auxiliary compilation units that import run-time facilities (the current exception handler and so on) from the main module can be sub-kilobyte. Getting here has been tricky though, and I think it would be even trickier for #Python."https://wingolog.org/archives/2023/11/24/tree-shaking-the-horticulturally-misguided-algorithm#guile #compilers
(DIR) Post #AcJ75EjS6iPW7MjO8O by iska@catposter.club
2023-11-29T18:41:27.842Z
0 likes, 0 repeats
@rml@functional.cafe 10, 20 megabytes? you can fit an entire game engine into that. sbcl dumps trial with submodules into a 21MB (compressed) executable image
(DIR) Post #AcJv2fGlyrs5GHHduC by rml@functional.cafe
2023-11-29T19:54:52Z
1 likes, 0 repeats
@iska real.