Results 154 comments of 阿豪

> Making cross compile work faster and nicer is pretty cool. Maybe with `cargo zigbuild` or whatever it is called I often use this action, it is easier to use...

cargo-binstall has full list, but we don't need support all of them https://github.com/cargo-bins/cargo-binstall/releases

Because actions/upload-artifact@v4 is used to compress files, CRC calculation errors occur. https://github.com/cargo-bins/cargo-binstall/issues/1080. Therefore, zip packages such as fnm-windows.zip cannot be used even if metadata is added. It needs to be...

I'm not sure if there is a definite target size, such as within 10MB?, but judging from the bloat results, there is little room for optimization. ![Image](https://github.com/user-attachments/assets/fa672691-9da2-4e2f-bb9d-de2a6e2aaeda)

> I'm interested in the image you presented. For example, if we could remove the h2 crate, would that lead to roughly a 10% reduction overall? I'm not sure, since...

elk needs to provide a worker when running, llrt and txiki.js including boa cannot run ``` if (!optionsClone.workerFactory) { var _require = require('./elk-worker.min.js'), _Worker = _require.Worker; optionsClone.workerFactory = function (url)...

There are many libraries that require the isatty function, such as https://github.com/chalk/chalk ``` import tty from 'node:tty'; const supportsColor = { stdout: createSupportsColor({isTTY: tty.isatty(1)}), stderr: createSupportsColor({isTTY: tty.isatty(2)}), }; ```

> This could be expected with default target Es5. The expected behavior should be to display the characters directly instead of Unicode encoding, because in some engines, multi-byte encoding cannot...

utf8 seems to take up less file size than unicode ```js const fs = require('fs') // const a = "🌏"; // 🌏 or  const a = ""; // 🌏...

Unfortunately, llrt does not support installation using cargo-binstall. Installation from source code is very complicated and time-consuming.