Keno / julia-wasm

Running julia on wasm
https://keno.github.io/julia-wasm/website/repl.htm
332 stars 23 forks source link

Re-enable other stdlibs #7

Open Keno opened 5 years ago

Keno commented 5 years ago

A bunch of stdlibs are currently disabled in the wasm system image:

https://github.com/JuliaLang/julia/blob/kf/wasm3/base/sysimg.jl#L523-L547

For most of them that's because they depend on WeakKeyDict, which in turn uses ReentrantLock which is disabled because it depends on the libuv atomics support which is disabled. https://github.com/JuliaLang/julia/blob/a0b7a7610334d0925f126ae20f5ff2d074e3ba69/base/weakkeydict.jl

I think the right fix for now is to have a dummy implementation of ReentrantLock and then re-enable those stdlibs.

caleb-allen commented 4 years ago

Is this what was done on this Jan 17, 2019 commit? https://github.com/JuliaLang/julia/commit/1f531262d300d5703755b1ff983b541a7f9a0b69

caleb-allen commented 4 years ago

Ah, I found this https://github.com/JuliaLang/julia/pull/30534