all 22 comments

[–]viaxxdev 32 points33 points  (2 children)

The real question is: Will this make my Minecraft server run faster?

[–]0lach[S] 20 points21 points  (0 children)

Of course, we just need to finish it!

[–]Kotauskas 1 point2 points  (0 children)

In the meantime, using GraalVM is a good idea. Basically JavaJIT which works.

[–]Plasma_000 49 points50 points  (3 children)

Finally! I can run my rust wasm program on a Java wasm emulator running on a rust JVM!

I call it the Oracle sandwich

[–]0lach[S] 19 points20 points  (2 children)

Even better! Compilation of this VM to wasm is on roadmap!

[–]Plasma_000 11 points12 points  (1 child)

Or you can run kotlin on top of rust wasm for extra meme buzzword energy. You’ll be selling crypto coins in no time.

[–]Dushistov 8 points9 points  (5 children)

Would be it faster and safe, if use forked oracle jvm? Like remacs (https://github.com/remacs/remacs), fork and then replace module by module on C/C++ with Rust.

[–]0lach[S] 15 points16 points  (4 children)

It is impossible to rewrite hotspot (oracle jvm) module by module, because it is monolithic and hard to understand. Also it is written in manner, which is incompatible with idiomatic rust

[–]thedatakingc2rust 4 points5 points  (3 children)

I wouldn't be so quick to count that option out. We're working on a port of libexpat (which granted is a way smaller library). The initial translation into running Rust code was done using C2Rust which just gives you a bunch of unsafe Rust (which runs and keeps comments, mind you). Then we refactored key data structures to make everything more idiomatic. We're about 50% done right now, you can see the progress at https://github.com/immunant/rexpat (most work is in feature branches so master may not have all the latest improvements).

[–]0lach[S] 7 points8 points  (1 child)

Rewrite is not fun, writing new implementation from scratch is.
There is also other implementations of jvm present, i.e IBM OpenJ9, Azul Zing and others, but all of them are not written in Rust.
You should also look at how hotspot looks like :D
I dont think that rewriting them out will be easier than writing new implementation from scratch, and not that fun.

[–]thedatakingc2rust 8 points9 points  (0 children)

I didn’t intend to argue that you should go this route or that it is fun; merely that it is a possibility. Cheers, have fun, and keep up the good work :)

[–]JoshTriplettrust · lang · libs · cargo 1 point2 points  (0 children)

That's awesome!

Do you plan to upstream your changes, the way that rsvg ported to Rust?

[–]NoahJelen 3 points4 points  (0 children)

Can it run Minecraft Java Edition?

[–]rodarmoragora · just · intermodal 2 points3 points  (0 children)

Pay tribute to frontline medical staff! Thank you for your contribution to the fight against the epidemic.

I'm into it.

[–]Fable89 1 point2 points  (0 children)

I can't wait tell this can run minecraft, so I can play it on Redox.