do you know what's currently holding asterius back from entirely replacing ghcjs?
and also, how is asterius "keeping up" with ghc, while ghcjs is falling behind? is (and how) asterius somehow "less work" to adapt to new ghc versions?
do you know what's currently holding asterius back from entirely replacing ghcjs?
Seems like it's matter of "finishing it" :big_smile: - Roadmap and issues mention goals to make C/C++ integration fully work and to finish and polish runtime
and also, how is asterius "keeping up" with ghc, while ghcjs is falling behind? is (and how) asterius somehow "less work" to adapt to new ghc versions?
I guess it may have advantage of starting on newer GHC version, plus keeping up with upstream seems to be important given the goals
Maybe it's because of smaller amount of changes to frontend part of the compiler, but I'm really just guessing here
Asterius compiles Haskell code into WebAssembly code to be executed in a browser or in Node.js. It has reached a new milestone by being able to compile the diagrams library and its dependencies.
https://asterius.netlify.app/roadmap.html#q1
Does this mean that we can expect official support for web in GHC at some point? :smile:
do you know what's currently holding asterius back from entirely replacing ghcjs?
and also, how is asterius "keeping up" with ghc, while ghcjs is falling behind? is (and how) asterius somehow "less work" to adapt to new ghc versions?
Seems like it's matter of "finishing it" :big_smile: - Roadmap and issues mention goals to make C/C++ integration fully work and to finish and polish runtime
I guess it may have advantage of starting on newer GHC version, plus keeping up with upstream seems to be important given the goals
Maybe it's because of smaller amount of changes to frontend part of the compiler, but I'm really just guessing here
what does the compiler achieve at the moment? is it usable for toy projects?
They have some working demos here: https://github.com/tweag/asterius#demos
not bad
I wonder if Obsidian and Tweag are working entirely separately, or if there is some collaboration going on.
Separately @Sridhar Ratnakumar
Also WebGHC has not had an update in a loooong time
but Asterius is active
It's been a couple years since I looked at WASM. Can you access the DOM now?
@Peter J. Jones yes
Neat.
@Peter J. Jones https://www.tweag.io/blog/2019-12-19-asterius-diagrams/
You can see it in action!
ACTION PACKED!
That's pretty exciting. What are the
mjs
files for?@Peter J. Jones Idk, I have not made use of web assembly myself yet
but the link there clearly shows it working, which means it has dom access