News for hackers. Stuff that matters.
Re:Rust to .NET compiler – Progress update by Alupis on Friday May 03, 2024 @09:00PM (#40253940)
I'm curious of the utility of writing Rust code but wanting to run it on the CLR.

If anything, a GraalVM target would make more sense, as it's already gaining traction for this type of thing (although, usually interpreted langs like python, ruby, etc). Even there, the utility of running Rust on a JVM target also seems dubious.

TFA doesn't mention an intended use-case. Perhaps it's an academic endeavor?

Re:Rust to .NET compiler – Progress update by vips7L on Friday May 03, 2024 @09:08PM (#40253987)
IIRC graal can already run clang ir so in _theory_ you should be able to run Rust.
Re:Rust to .NET compiler – Progress update by yarg on Saturday May 04, 2024 @12:01AM (#40254698)
https://www.graalvm.org/latest/reference-manual/llvm/Compati...

It can run any LLVM bitcode, but I'm not sure where that leaves you if or when you want to call through from java.

Re:Rust to .NET compiler – Progress update by neonsunset on Friday May 03, 2024 @10:08PM (#40254236)
For the Rust use case, JVM is fundamentally limited in ways that .NET isn't. Perhaps GraalVM does better but IL offers a direct 1:1 for many features that Rust needs, like struct generics.
Re:Rust to .NET compiler – Progress update by mikasa71 on Friday May 03, 2024 @09:07PM (#40253982)
Getting into google Summer of code.
Re:Rust to .NET compiler – Progress update by wdb on Saturday May 04, 2024 @09:23AM (#40257480)
Reuse of existing business logic code. That’s what I do when reusing Swift or Go code in .NET.