Rusty Java - Transition the Java Runtime from C/C++ to Rust.
Glavo
zjx001202 at gmail.com
Wed Nov 20 13:02:59 UTC 2024
Hi Eric,
I don't think this is an interesting job.
It would take a lot of people working on this for a lot of time, for very
little benefit.
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.
As they say:
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,
nor using current or future hardware memory safety features, such as memory
> tagging, can help with the security challenges faced by V8 today.
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.
I agree with what Andrew said:
If we're translating the Java runtime into a better language, that
> language would be Java.
Although rewriting HotSpot in Java would be equally hard work, it would be
much more rewarding and interesting.
Glavo
[1]: https://v8.dev/blog/sandbox
On Wed, Nov 20, 2024 at 8:41 AM Eric Kolotyluk <eric at kolotyluk.net> wrote:
> I started writing a JSR 'Rusty-Java' a while ago, but before I go too
> far, is this something people might be interested in, or is it a lost
> cause?
>
> You can view my thinking at https://github.com/kolotyluk/Rusty-Java
>
> Cheers, Eric
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/discuss/attachments/20241120/64c9d319/attachment.htm>
More information about the discuss
mailing list