<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Addressing the "code too large" scenario (skip first error
message, that was previously discussed today and I need to recheck
the X3DUOM for another issue. This is most likely due to JSON
differences). For example, here are 2 different java styles,
net/coderextreme (mine) and net/x3djsonld (don's).</p>
<p>~/X3DJSONLD/src/main/java$ javac -cp
.:/home/coderextreme/pythonSAI/X3DJSAIL.4.0.full.jar
net/coderextreme/data/JinLOA4*java<br>
net/coderextreme/data/JinLOA4.java:70: error: cannot find symbol<br>
.addValue(new
MetadataSet().setName("HAnimHumanoid.info").setReference(<a class="moz-txt-link-rfc2396E" href="https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid">"https://www.web3d.org/documents/specifications/19774/V2.0/Architecture/ObjectInterfaces.html#Humanoid"</a>)<br>
^<br>
symbol: method addValue(MetadataSet)<br>
location: class HAnimHumanoid<br>
1 error</p>
<p>(note: My JinLOA4_1.java compiles. But my JSON may be
incorrect.)<br>
</p>
<p><br>
</p>
<p>~/X3DJSONLD/src/main/java$ javac -cp
.:/home/coderextreme/pythonSAI/X3DJSAIL.4.0.full.jar
net/x3djsonld/data/JinLOA4*java<br>
net/x3djsonld/data/JinLOA4_1.java:114: error: code too large<br>
public final void initialize()<br>
^<br>
1 error</p>
<p>Linked is coderextreme (Carlson, not Brutzman) take on reducing
method size for JinLOA4_1.java. One may want to try this on some
files to make sure output is correct. I don't compare Carlson to
Brutzman output often.</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/java/net/coderextreme/data/JinLOA4_1.java">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/java/net/coderextreme/data/JinLOA4_1.java</a></p>
<p>Yes the number of classes really explodes. Like from 1 class to
600 or so. It would be good to have someone else test my java
serializer at some point...</p>
<p>I'm not doing optimization yet, although that is important/
Thesource code size is around 18K difference (mine is larger). I
can't report on bytecode size because one test did not produce
bytecode.<br>
</p>
<p>Corrrectness IS important, and not something I didn't report on
in this message. I can't test the correctness of absent
bytecode.<br>
</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 12/20/21 12:05, Brutzman, Donald
(Don) (CIV) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BY3PR13MB4884CACA854E610CABA182FBC47B9@BY3PR13MB4884.namprd13.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0in;}ul
{margin-bottom:0in;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">[copy: x3d-public]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Yes, agreed it is a goal, so far my
workarounds have not overcome this Java blocker. Possibly
adjustments to the array-dissection method might work.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please see following for details:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ul style="margin-top:0in" type="disc">
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1"><a class="moz-txt-link-freetext" href="https://www.web3d.org/specifications/java/X3DJSAIL.html#TODO">https://www.web3d.org/specifications/java/X3DJSAIL.html#TODO</a><o:p></o:p></li>
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1">Limitations
of Java memory handling: many methods with large blocks of
data (greater than 64K compiled) are supported by splitting
off arrays portions as separate data structures, when
needed, rather than pipelined functional-style
instantiations. However some of the extremely large X3D
models are simply... too large. See build.java.all.log.txt
for console logs from all examples.<o:p></o:p></li>
<li class="MsoListParagraph"
style="margin-left:0in;mso-list:l0 level1 lfo1"><a class="moz-txt-link-freetext" href="https://www.web3d.org/x3d/content/examples/build.java.all.log.txt">https://www.web3d.org/x3d/content/examples/build.java.all.log.txt</a><o:p></o:p></li>
</ul>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">all the best, Don<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">-- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">Don Brutzman Naval Postgraduate School, Code
USW/Br <a class="moz-txt-link-abbreviated" href="mailto:brutzman@nps.edu">brutzman@nps.edu</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">Watkins 270, MOVES Institute, Monterey CA
93943-5000 USA +1.831.656.2149<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">X3D graphics, virtual worlds, navy robotics
https://</span>
<span style="font-size:10.0pt;font-family:"Courier
New"">faculty.nps.edu/brutzman<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> John Carlson
<a class="moz-txt-link-rfc2396E" href="mailto:yottzumm@gmail.com"><yottzumm@gmail.com></a> <br>
<b>Sent:</b> Sunday, December 19, 2021 8:32 PM<br>
<b>To:</b> Brutzman, Donald (Don) (CIV)
<a class="moz-txt-link-rfc2396E" href="mailto:brutzman@nps.edu"><brutzman@nps.edu></a>; Joseph D Williams
<a class="moz-txt-link-rfc2396E" href="mailto:joedwil@earthlink.net"><joedwil@earthlink.net></a><br>
<b>Subject:</b> Problem with X3dToJava.xslt (code to
large)<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p><span style="font-family:"Courier
New";color:black;background:white">Probably this is a
"don't fix" I am addressing other JinLOA4_*java next.
Attached. _1.java</span><o:p></o:p></p>
<p><span style="font-family:"Courier
New";color:black;background:white">$ javac -cp
.:/home/coderextreme/pythonSAI/X3DJSAIL.4.0.full.jar
net/x3d</span><span style="font-family:"Courier
New""><br>
jsonld/data/JinLOA4*java <br>
net/x3djsonld/data/JinLOA4_1.java:114: error: code too
large <br>
public final void initialize() <br>
^ <br>
1 error</span><o:p></o:p></p>
</div>
</div>
</blockquote>
</body>
</html>