GHC WebAssembly Weekly Update, 2023-01-11

Previous update: https://discourse.haskell.org/t/ghc-webassembly-weekly-update-2022-12-14

  • Wasm backend CI rework (ci-images!106) (!9661) to address core team concerns (#22664) and unblock 9.6 release. Waiting for reviews, will backport to ghc-9.6 branch when it lands on master.
  • The hsc2hs patch required by wasm backend (#68) finally merged.
  • The process patch required by wasm backend (#270) got merged.
  • Several PRs to upstream wasi-sdk merged (#277) (#278) (#279), mainly for improving upstream CI experience.
  • With all the CI rework wrapped up, I’m returning to the debugging land. I gave a quick try to build the wasm backend with emscripten instead of wasi-sdk, for the hope of using emscripten’s ASAN/UBSAN support to help with debugging. It’s possible with some patches, but then there are linker errors that suggest our wasm-specific logic in the tree only works for wasi-sdk’s sysroot instead of emscripten’s. This may be another deep rabbit hole, so I’m stopping here and back to other approaches.
11 Likes