Jiahao XU

Results 380 comments of Jiahao XU

I'd prefer `--disable-strategy` here since we are adding opt-out options.

Amazing, I didn't think of using an alternative codegen. > So we could build in release mode with cg_clif in CI for testing, and do nightly builds in release mode...

> Maybe would be worth making a custom action instead... I think it definitely should be make a custom action, though it also has to cooperate with `cross`.

@passcod IMO the best way to implement this is to [build an image on `cross`](https://github.com/cross-rs/cross/#dockerfiles): ```Dockerfile ARG CROSS_BASE_IMAGE FROM $CROSS_BASE_IMAGE RUN ... ``` This means that we only need to...

> > I think building in debug mode with cg_clif in CI is enough for testing, we don't need to build in release mode just for testing. > > We...

@passcod I think we can create a repository, which periodically builds `cg_clif` on [`zig` image](https://github.com/cross-rs/cross/pkgs/container/zig) and publishes it. The [`Dockerfile` for `zig`](https://github.com/cross-rs/cross/blob/main/docker/Dockerfile.zig) is pretty straight forward and we can add...

P.S. using `build-std` feature on my MBA 2020 further trims 0.4M from release build: ```bash cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --release --target aarch64-apple-darwin ``` This would be good...

I thought we didn't need this back when the caching was fixed and the compilation time was reduced to 2-4m, but now it is spiking again. So looks like we...

After a bit research, I think the target we want to support is wasi, which provides a std library. Tokio is working on supporting it https://github.com/tokio-rs/tokio/issues/4827 , once it's done...

Another runtime we should support is [WasmEdge](https://github.com/WasmEdge/WasmEdge). In additional to existing wasi support, it also supports [thread proposal](https://github.com/WebAssembly/threads), [wasi-sockets](https://github.com/WebAssembly/wasi-sockets) and [wasi crypto](https://github.com/WebAssembly/wasi-crypto).