<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Eric,</div><div dir="ltr"><br></div>I don't think this is an interesting job. <br><br>It would take a lot of people working on this for a lot of time, for very little benefit.<br>If you are concerned about the memory safety of the JVM, I think you can take a look at this article[1] written by the v8 team.<br>As they say:<div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">As such, existing memory safety solutions are, for the most part, not applicable to V8. In particular, neither switching to a memory safe language, such as Rust, </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">nor using current or future hardware memory safety features, such as memory tagging, can help with the security challenges faced by V8 today.</blockquote><div><br></div>The same applies to the JVM. For JVM, most memory safety issues are logic issues of GC and JIT compilers, and rewriting it in rust cannot solve these logic issues.<br><br>I agree with what Andrew said:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If we're translating the Java runtime into a better language, that<br>language would be Java.</blockquote><br>Although rewriting HotSpot in Java would be equally hard work, it would be much more rewarding and interesting.<br><div dir="ltr"><br></div><div>Glavo</div><div><br></div><div>[1]: <a href="https://v8.dev/blog/sandbox" target="_blank">https://v8.dev/blog/sandbox</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 20, 2024 at 8:41 AM Eric Kolotyluk <<a href="mailto:eric@kolotyluk.net" target="_blank">eric@kolotyluk.net</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">I started writing a JSR 'Rusty-Java' a while ago, but before I go too <br>
far, is this something people might be interested in, or is it a lost cause?<br>
<br>
You can view my thinking at <a href="https://github.com/kolotyluk/Rusty-Java" rel="noreferrer" target="_blank">https://github.com/kolotyluk/Rusty-Java</a><br>
<br>
Cheers, Eric<br>
</blockquote></div></div>
</div>
</div></div>