<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">I am a little puzzled.</div><div class="gmail_default" style="font-family:monospace,monospace">Lukas Larsson's recent video</div><div class="gmail_default" style="font-family:monospace,monospace"><a href="https://www.youtube.com/watch?v=Qz7OCAoiB7Q">https://www.youtube.com/watch?v=Qz7OCAoiB7Q</a></div><div class="gmail_default" style="font-family:monospace,monospace">presents a long history of Erlang JIT failure</div><div class="gmail_default" style="font-family:monospace,monospace">and the new JIT is very new indeed.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">I note that in the last quarter of 2019 about</div><div class="gmail_default" style="font-family:monospace,monospace">6.4e9 ARM chips were shipped, nearly one for every</div><div class="gmail_default" style="font-family:monospace,monospace">person on the planet, in just one quarter.  I</div><div class="gmail_default" style="font-family:monospace,monospace">believe about 2/3 of those were for embedded use,</div><div class="gmail_default" style="font-family:monospace,monospace">but Erlang should be useful there.  So how long</div><div class="gmail_default" style="font-family:monospace,monospace">will it be before the new JIT targets ARM?</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">The video I linked above talked only about speed,</div><div class="gmail_default" style="font-family:monospace,monospace">but for tablet/phone/IoT applications power consumption</div><div class="gmail_default" style="font-family:monospace,monospace">is a big issue.  What is known about the new JIT's</div><div class="gmail_default" style="font-family:monospace,monospace">effect on power consumption, and are there any plans</div><div class="gmail_default" style="font-family:monospace,monospace">to make compiling for low power a consideration in the</div><div class="gmail_default" style="font-family:monospace,monospace">JIT design?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 18 Jun 2020 at 20:35, Kenneth Lundin <<a href="mailto:kenneth@erlang.org">kenneth@erlang.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><h4 style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px"><span></span></h4><p style="margin:1em 0px;color:rgb(0,0,0);font-family:sans-serif;font-size:13px">HiPE is the runtime and compiler support for native code generation of Erlang modules that some of you might have tried, it is part of the OTP repository today.</p><p style="margin:1em 0px;color:rgb(0,0,0);font-family:sans-serif;font-size:13px">The OTP team is planning to remove HiPE in the OTP 24 release for the following reasons:</p><ul style="line-height:1.5em;list-style-type:square;margin:0.3em 0px 0px 1.5em;padding:0px;color:rgb(0,0,0);font-family:sans-serif;font-size:13px"><li style="margin-bottom:0.1em">we plan to introduce a new way of executing Erlang, the "JIT" described by Lukas Larsson at Code Beam V</li><li style="margin-bottom:0.1em">since OTP 22, HiPE is not fully functional (does not handle all beam instructions and combinations)</li><li style="margin-bottom:0.1em">there is no use of HiPE among our primary customers. We actually don't know where HiPE is used except for speeding up Dialyzer which we have another solution for.</li><li style="margin-bottom:0.1em">The current support for HiPE in the code is a blocker or creates extra work in our new development.</li></ul><p style="margin:1em 0px;color:rgb(0,0,0);font-family:sans-serif;font-size:13px">In order to not remove HiPE in OTP 24, we really soon need maintainers committing (long term) to keep HiPE in shape and up to date with the rest of OTP.</p>/Kenneth Erlang/OTP, Ericsson</div>
</blockquote></div>