Yuji Yamamoto (山本悠滋)
2019-04-19 Emscripten & WebAssembly night !!
※From this slide, written in English to show the developer of Asterius.
ahc-cabal command to build a module
dependent on external packages..wasm file)..mjs files)..wasm file)..mjs files).foreign import javascript explicitly…BigInt.Ref: IR types and transformation passes
.cmm files to AsteriusModule
(custom object format for Asterius).ahc-ld (dedicated linker) links for WASM.ahc-dist makes it executable.
main
function of the source Haskell file.FilePath -> Text -> Text using FFI.🔥I had to drop some dependent packages to compile my code…
IO:
foreign export javascripted function doesn’t return
the expected result!foreign export javascript, but left so far.