These are chat archives for systemjs/systemjs

28th
Mar 2017
yurydelendik @yurydelendik is wondering if there is a "top-level module await"-thing
Yury Delendik
@yurydelendik
Mar 28 2017 15:01
it's possible to provide a custom loader to make this happen, but is there a proposal on spec side?
Guy Bedford
@guybedford
Mar 28 2017 16:59
@yurydelendik this is pending a spec proposal. Its a well known possibility, but in need of implementor support and spec work. It's a bit of a waiting game until then.
@yurydelendik I also came across your wasm gist recently... helped a lot! Have you managed to get wasm compiling with llvm on its own yet (no binaryen) or is this still in development?
Yury Delendik
@yurydelendik
Mar 28 2017 17:38
@guybedford it's in the works but you can play with it, llvm has all pieces
@guybedford there is also http://wasdk.github.io/WasmFiddle
binaryen or other tools might be needed to perform linking (notice with fiddle if you compile something with #include it will require insane amount of imports)
Guy Bedford
@guybedford
Mar 28 2017 18:06
Btw on top-level await, we'd support it in the system.register output if it goes forward.
Yury Delendik
@yurydelendik
Mar 28 2017 18:06
good to know, thanks
Guy Bedford
@guybedford
Mar 28 2017 18:06
I tried using the wasm32 architecture output in dev llvm but couldn't get it to compile
Very keen to play with the full workflow no matter how hacky, your previous gist really got me going on it
Yury Delendik
@yurydelendik
Mar 28 2017 18:25
Using emscripten may be a good route to check as well, but I wish emscripten generated a proper module
Guy Bedford
@guybedford
Mar 28 2017 18:52
Yeah that's the thing I need for systemjs integration and all. For now c -> s -> wast is working fine for me though. Just interested to know if this is still the simplest workflow.
yurydelendik @yurydelendik is checking if easier way to produce wasm object files is working
Yury Delendik
@yurydelendik
Mar 28 2017 19:17
@guybedford looks like bin/clang --target=wasm32-unknown-unknown-wasm fib.c -c -o fib.wasm works
hmm, does not produce valid wasm though :/
Florian
@FlorianGrimm
Mar 28 2017 22:56
Can I enforce SystemJS to use xhr?