On Tuesday, 8 May 2018 at 18:44:06 UTC, Vladimir Panteleev wrote:
On Tuesday, 8 May 2018 at 09:51:11 UTC, Mike Franklin wrote:
I've been recently assigned the task of building a web-based
Ladder Logic editor/compiler
(https://en.wikipedia.org/wiki/Ladder_logic). This would not
be a short-lived application, however.
Hmm, sounds like this would be an interactive application that
would need access to the HTML DOM. Currently, this isn't
directly possible - when running in an asm.js VM, there is no D
type to represent a JavaScript object. It is possible to call
out to / eval JavaScript, though, so perhaps it could be
possible using a shim, where a JavaScript array holds
JavaScript/DOM objects, and D refers to them by index.
Maybe we could port something like this to D. Or wait till
someday dpp can #include the STL.
https://github.com/mbasso/asm-dom/blob/master/README.md