Open amirouche opened 1 year ago
I have been thinking about running GRASP in the browser, but I'm looking for a decent way to do this. GRASP is written in Kawa, and uses certain Kawa extensions in order to work. And Kawa emits JVM bytecode. There are some projects which allow to run JVM bytecode in the browser, like Bytecoder, TeaVM, JWebAssembly or CheerpJ.
From what I've seen, CheerpJ would allow to run the desktop version of GRASP directly in the browser, with no modifications.
I also tried running Bytecoder, but it doesn't (yet?) implement many vital features of the JVM that are used by Kawa. I wasn't able to figure out how to use TeaVM or JWebAssembly. (I don't know Java ecosystem too well, and I have no idea about the philosophy of tools such as Maven or Gradle.)
I think that the optimal solution would be to implement a new instance of the Painter interface, that would paint to HTML5 canvas. Currently I'm just hoping that the Bytecoder tool will be improved by the time GRASP becomes usable.
Of course if you know some good tools that could be used (or if you know someone who might know them), all help will be appreciated :)
GRASP targets touch, multitouch devices. That includes web browsers. Have you made plans to port GRASP to the HTML / CSS?