|
From: Konstantin T. <an...@ya...> - 2017-05-22 11:46:00
|
<div> </div><div> </div><div>22.05.2017, 14:43, "gilleain torrance" <gil...@gm...>:</div><blockquote type="cite"><div>Hi,<div> </div><div>Apologies for the cross-post, but I'm not sure how many people are on the JCP-devel list.</div><div> </div><div>Anyway, it's clear that Java Applet's days are numbered.</div></div></blockquote><div><br />Note that it's not only applet, but also stand alone swing application. I also was using it as a part of OpenOffice.org plugin where Java was obvious choice.</div><div> </div><div> </div><blockquote type="cite"><div><div>There are a number of options here:</div><div> </div><div>1) Abandon JCP - there are other JS chemical editors out there!</div><div>2) Port (cross-compile? transpile?) JCP to Javascript</div><div>3) Re-write in JS</div><div> </div><div>I'm not a fan of option 1) naturally. So I'm wondering if anyone has any advice on 2) or 3). I note this SO question from Rich Apodaca:</div><div> </div><div><a href="http://stackoverflow.com/questions/440302/how-to-cross-compile-java-source-code-to-javascript">http://stackoverflow.com/questions/440302/how-to-cross-compile-java-source-code-to-javascript</a></div><div> </div><div>which has led me to various options:</div><div> </div><div>- GWT (google's toolkit)</div><div>- Kotlin (JVM language)</div><div>- JSweet (uses Typescript)</div><div>- Java2Javascript (used by Jmol)</div><div> </div><div>However, I'm sure there are others. I will try and experiment with some of these - starting with JSweet - and will put the results on github. What I'm likely to try is just some simple vector editing written in Java and cross-compiled to JS.</div><div> </div><div>One initial problem is that to get everything into the browser, you have to cross-compile all the code (including CDK code) and all dependencies to JS. Not sure how possible that could be. An alternative might be to have a thin JS client with the view model and a servlet maintaining the domain model.</div><div> </div><div>Let me know if you have other ideas, or forsee any problems..</div><div> </div><div>Gilleain</div></div>,<p>------------------------------------------------------------------------------<br />Check out the vibrant tech community on one of the world's most<br />engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot">http://sdm.link/slashdot</a></p>,<p>_______________________________________________<br />Cdk-jchempaint mailing list<br /><a href="mailto:Cdk...@li...">Cdk...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cdk-jchempaint">https://lists.sourceforge.net/lists/listinfo/cdk-jchempaint</a></p></blockquote><div> </div><div> </div><div>-- <br />Regards,</div><div>Konstantin</div><div> </div> |