SW Java and SWJS

This topic has been viewed 4513 times and has 2 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

SW Java and SWJS

Post by buzzz »

Hi all,

I read this post: http://www.sweethome3d.com/support/foru ... _offset,10

From what I read, it is possible to build an online version from SWJava ? I'm a bit lost. (sorry I'm a c# dev). I see that there is a transpiler used to convert the java to JS. That's all ? Magical ?

I do not understand if SWJava and SWJS are now (version 7) two distinct projects or if SWJS is a transpilation from the main Java project.

In such a case, I'm very impressed. I'm a programmer from the 90' (C/C++/Java and ASM). I never really had the opportunity to get into web languages and now it's the standard. Your pipeline is a very attractive option (for me) to get into web projects.

sys
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: SW Java and SWJS

Post by Puybaret »

As explained here, a large part of Sweet Home 3D Java is transpiled to JavaScript, but some classes too complicated to transpile as well as all the code which handles the user interface were rewritten in JavaScript (see src folder in SweetHome3DJS project).
Therefore, as the transpiled part of Sweet Home 3D JS is generated from Sweet Home 3D Java code, SweetHome3DJS project depends on SweetHome3D project, and keeping this dependency helps to benefit of bugs fixes programmed in SweetHome3D project by just transpiling again the classes needed in SweetHome3DJS project.
Emmanuel Puybaret, Sweet Home 3D creator
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: SW Java and SWJS

Post by buzzz »

Thank you

I will read this web page with great interest !!!
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest