Project 'ghc/ghc-wasm-meta' was moved to 'haskell-wasm/ghc-wasm-meta'. Please update any links and bookmarks that may still have the old path.
Document how to create WASI reactor with user-defined exports
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
Filter activity
- Resolved by Cheng Shao
- Resolved by Cheng Shao
198 possible to use the `ccall` calling convention for foreign exports. 199 It's still possible to exchange large values between Haskell and 200 JavaScript: 201 202 - Add `--export` flag for `malloc`/`free`. You can now allocate and 203 free linear memory buffers that can be visible to the Haskell world, 204 since the entire linear memory is available as the `memory` export. 205 - In the Haskell world, you can pass `Ptr` as foreign export 206 argument/return values. 207 - You can also use `mallocBytes` in `Foreign.Marshal.Alloc` to 208 allocate buffers in the Haskell world. A buffer allocated by 209 `mallocBytes` in Haskell can be passed to JavaScript and be freed by 210 the exported `free`, and vice versa. 211 212 Now you can create and manage C buffers, you can create and pass the 213 correct `argc`/`argv` if you want `getArgs`/`getProgName` to work. - Resolved by Cheng Shao
- Resolved by Cheng Shao
- Resolved by Cheng Shao
- Resolved by Cheng Shao
enabled an automatic merge when the pipeline for a0403384 succeeds
mentioned in commit 6f0a1cd7
Please register or sign in to reply