DWC with Qt WebAssembly
-
I am currently thinking about how to develop for DWC, but avoiding double coding C++ and JavaScript. One idea which emerged was Qt WebAssembly, which uses C++ code and let run it inside a web server. It should be possible to run it inside DWC. Qt has dual license, including GPL
or LGPL(Qt has LGPL, but WebAssembly seems to be GPL only), so it should be allowed to link it with DWC. An idea is to make a link between OpenScad (which uses Qt) and DWC to transfer models between OpenScad and DWC.- is this a direction which is in the interest of the Duet team?
- are there argumens against this solution?
About WebAssembly eg https://doc-snapshots.qt.io/qt6-dev/wasm.html
-
@JoergS5 I can' really comment on that, but it may be of interest to you that in version 3.5 of DWC the Javascript has been rewritten in Typescript.
-
@dc42 thank you for this information. Type safety is always a good idea.
-
@JoergS5 You can develop a custom DWC plugin to embed custom WASM content but I don't want to add this to the core since we need to support standalone as well as SBC mode. A .NET alternative to Qt WebAssembly could be Blazor, which does basically the same thing, but is free-to-use AFAIK.
-
@chrishamm ok, thanks, so I will stay at the current solutions for the moment, as Blazor is C# based.