[x3d-public] consider renaming local variables in X3DJSAIL to support JSweet transpiler; X3DJSAIL release tests many new libraries

Don Brutzman brutzman at nps.edu
Mon Mar 16 10:01:17 PDT 2020


Thanks for this helpful report and interesting progress John.

On 3/14/2020 11:40 AM, John Carlson wrote:
> JSweet conversion to *Script reveals keywords renamed.

[1] jsweet: a transpiler from Java to TypeScript/JavaScript
     http://www.jsweet.org

Certainly following transpiler patterns is one way for us to keep programming idioms and documentation consistently defined, Java/JavaScript/TypeScript.

The JSweet warnings posted below are sensible improvements and all fixed.  Further refinements welcome.

Am happy to report deployment of an updated release of X3DJSAIL providing those changes.

[2] X3D Java Scene Access Interface Library (X3DJSAIL)
     supports programmers with standards-based X3D Java interfaces and objects, all as open source.
     https://www.web3d.org/specifications/java/X3DJSAIL.html

Improved documentation and fixed a bug in that was passing default values for bbox fields during stylesheet conversions to Java, JSON, Python and Turtle.

Added a section describing Configuration Properties, note property rename/reversal showDefaultAttributes -> stripDefaultAttributes (for consistency with stripTrailingZeroes).

[3] X3DJSAIL: Configuration Properties
     https://www.web3d.org/specifications/java/X3DJSAIL.html#ConfigurationProperties
     https://www.web3d.org/specifications/java/examples/X3DJSAIL.properties
     https://www.web3d.org/specifications/java/X3DJSAIL.properties.template

Also tested multiple new codebases with this release:

[4] OpenJDK 13.0.2
     https://jdk.java.net/13

[5] Savage Developers Guide: Java
     https://savage.nps.edu/Savage/developers.html#Java

[6] Apache Netbeans 11.3
     https://netbeans.apache.org

[7] Savage Developers Guide: NetBeans
     https://savage.nps.edu/Savage/developers.html#NetBeans

[8] Blender 2.82a
     http://www.blender3d.org

[9] X3DJSAIL: Blender
     https://www.web3d.org/specifications/java/X3DJSAIL.html#Blender

[10] Meshlab
      https://www.meshlab.net

[11] Meshlab-2020.03 release
      https://github.com/cnr-isti-vclab/meshlab/releases

[12] X3DJSAIL: MeshLab
      https://www.web3d.org/specifications/java/X3DJSAIL.html#MeshLab

The Meshlab release is particularly notable since it has been years since a public update was available.  Cool.

> Will post package once I've got it all up to date.
> 
> John
> 
> 2020-03-14 13:30:00.000 INFO  JSweetTranspiler:877 - scanning C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\BlenderLauncher.java...
> 2020-03-14 13:30:00.000 WARN  output:58 - local variable name 'arguments' is not allowed and is automatically generated to '__arguments' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\BlenderLauncher.java(240)
> 2020-03-14 13:30:00.000 WARN  output:58 - local variable name 'arguments' is not allowed and is automatically generated to '__arguments' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\BlenderLauncher.java(240)
> 
> 2020-03-14 13:30:03.003 INFO  JSweetTranspiler:877 - scanning C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\CommandLine.java...
> 2020-03-14 13:30:03.003 WARN  output:58 - local variable name 'arguments' is not allowed and is automatically generated to '__arguments' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\CommandLine.java(239)
> 2020-03-14 13:30:03.003 WARN  output:58 - local variable name 'arguments' is not allowed and is automatically generated to '__arguments' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\CommandLine.java(239)
> 2020-03-14 13:30:03.003 WARN  output:58 - local variable name 'arguments' is not allowed and is automatically generated to '__arguments' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\CommandLine.java(774)
> 2020-03-14 13:30:03.003 INFO  JSweetTranspiler:903 - output file: org\web3d\x3d\jsail\CommandLine.ts
> 2020-03-14 13:30:03.003 INFO  JSweetTranspiler:877 - scanning C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\ConfigurationProperties.java...
> 2020-03-14 13:30:03.003 WARN  output:58 - local variable name 'in' is not allowed and is automatically generated to '__in' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\ConfigurationProperties.java(611)
> 2020-03-14 13:30:03.003 INFO  JSweetTranspiler:903 - output file: org\web3d\x3d\jsail\ConfigurationProperties.ts
> 2020-03-14 13:30:03.003 INFO  JSweetTranspiler:928 - created C:\git\X3DJSAIL\target\ts\org\web3d\x3d\jsail\ConfigurationProperties.ts
> 
> 2020-03-14 13:30:10.010 INFO  JSweetTranspiler:877 - scanning C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\Core\X3DObject.java...
> 2020-03-14 13:30:11.011 WARN  output:58 - local variable name 'in' is not allowed and is automatically generated to '__in' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\Core\X3DObject.java(2597)
> 2020-03-14 13:30:11.011 WARN  output:58 - local variable name 'in' is not allowed and is automatically generated to '__in' at C:\git\X3DJSAIL\src\main\java\org\web3d\x3d\jsail\Core\X3DObject.java(2901)
> 2020-03-14 13:30:12.012 INFO  JSweetTranspiler:903 - output file: org\web3d\x3d\jsail\Core\X3DObject.ts
> 2020-03-14 13:30:12.012 INFO  JSweetTranspiler:928 - created C:\git\X3DJSAIL\target\ts\org\web3d\x3d\jsail\Core\X3DObject.ts


Have fun with X3D Java/JavaScript/TypeScript !  8)

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list