|
From: Nina J. <jel...@gm...> - 2017-05-22 11:53:11
|
On 22 May 2017 at 14:45, Konstantin Tokarev <an...@ya...> wrote: > > > 22.05.2017, 14:43, "gilleain torrance" <gil...@gm...>: > > Hi, > > Apologies for the cross-post, but I'm not sure how many people are on the > JCP-devel list. > > Anyway, it's clear that Java Applet's days are numbered. > > > 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. > ... JCP is also used as Java library in several standalone applications . >From our side, it is quite a critical component in standalone Toxtree. For a web front end - there are other JS chemical editors out there indeed. Best regards, Nina > > > > There are a number of options here: > > 1) Abandon JCP - there are other JS chemical editors out there! > 2) Port (cross-compile? transpile?) JCP to Javascript > 3) Re-write in JS > > 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: > > http://stackoverflow.com/questions/440302/how-to-cross- > compile-java-source-code-to-javascript > > which has led me to various options: > > - GWT (google's toolkit) > - Kotlin (JVM language) > - JSweet (uses Typescript) > - Java2Javascript (used by Jmol) > > 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. > > 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. > > Let me know if you have other ideas, or forsee any problems.. > > Gilleain > , > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > , > > _______________________________________________ > Cdk-jchempaint mailing list > Cdk...@li... > https://lists.sourceforge.net/lists/listinfo/cdk-jchempaint > > > > -- > Regards, > Konstantin > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Cdk-jchempaint mailing list > Cdk...@li... > https://lists.sourceforge.net/lists/listinfo/cdk-jchempaint > > |