<div dir="auto">Compiling JS into an intermediate representation like the JVM or LLVM isn't really possible because JavaScript is a dynamic language. <div dir="auto"><br></div><div dir="auto">That's my understanding anyways. The binary AST is as close as we can get.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Oct 24, 2017 23:43, "doodad-js Admin" <<a href="mailto:doodadjs@gmail.com">doodadjs@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_-6765191286447433585WordSection1"><p class="MsoNormal">No WASM/AST.... Don’t challenge my ignorance.... I’m basically suggesting a way to compile:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">````js<u></u><u></u></p><p class="MsoNormal">const a = {};<u></u><u></u></p><p class="MsoNormal">```<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">to opcodes, like:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">```hex<u></u><u></u></p><p class="MsoNormal">F10B6100<u></u><u></u></p><p class="MsoNormal">```<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b>From:</b> Karl Cheng [mailto:<a href="mailto:qantas94heavy@gmail.com" target="_blank">qantas94heavy@gmail.<wbr>com</a>] <br><b>Sent:</b> Wednesday, October 25, 2017 12:57 AM<br><b>To:</b> doodad-js Admin <<a href="mailto:doodadjs@gmail.com" target="_blank">doodadjs@gmail.com</a>><br><b>Cc:</b> es-discuss <<a href="mailto:es-discuss@mozilla.org" target="_blank">es-discuss@mozilla.org</a>><br><b>Subject:</b> Re: Compiled JS<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">It seems that you're referring to something like <a href="http://webassembly.org/" target="_blank">WebAssembly</a> or a <a href="https://github.com/syg/ecmascript-binary-ast" target="_blank">binary AST</a>. Please check them out and see if they're similar to what you're thinking of.<u></u><u></u></p><div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On 25 October 2017 at 08:06, doodad-js Admin <<a href="mailto:doodadjs@gmail.com" target="_blank">doodadjs@gmail.com</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal"><span lang="FR-CA">Hi,</span><u></u><u></u></p><p class="MsoNormal"><span lang="FR-CA"> </span><u></u><u></u></p><p class="MsoNormal">By seeing many proposals about reducing the syntax for X and Y, I just want to open the idea of a [non-native] compiled JS world. What do you think?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Because, if that’s not the problem (code size), what it is ?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Claude Petit<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div><div id="m_-6765191286447433585m_4873514219324665342DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><p class="MsoNormal"><u></u> <u></u></p><table class="m_-6765191286447433585MsoNormalTable" border="1" cellpadding="0" style="border:none;border-top:solid #d3d4de 1.0pt"><tr><td width="55" style="width:41.25pt;border:none;padding:9.75pt .75pt .75pt .75pt"><p class="MsoNormal"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="color:windowtext;text-decoration:none"><u></u><u></u></span></a></p></td><td width="470" style="width:352.5pt;border:none;padding:9.0pt .75pt .75pt .75pt"><p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#41424e"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="color:#41424e;text-decoration:none">Virus-free. <u><span style="color:#4453ea">www.avg.com</span></u> <u></u><u></u></span></a></span></p></td></tr></table></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="color:windowtext;text-decoration:none"><br>______________________________<wbr>_________________<br>es-discuss mailing list<br><u><span style="color:blue">es-discuss@mozilla.org</span></u><br><u><span style="color:blue">https://mail.mozilla.org/<wbr>listinfo/es-discuss</span></u><u></u><u></u></span></a></p></blockquote></div><p class="MsoNormal"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="color:windowtext;text-decoration:none"><br><br clear="all"><br>-- <u></u><u></u></span></a></p><div><p class="MsoNormal"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="color:windowtext;text-decoration:none">- Karl Cheng (Qantas94Heavy)<u></u><u></u></span></a></p></div></div></div></div></div></div><br>______________________________<wbr>_________________<br>
es-discuss mailing list<br>
<a href="mailto:es-discuss@mozilla.org">es-discuss@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/es-discuss" rel="noreferrer" target="_blank">https://mail.mozilla.org/<wbr>listinfo/es-discuss</a><br>
<br></blockquote></div></div>