News for hackers. Stuff that matters.
Re:Rust Dependencies Scare Me by pjmlp on Saturday May 10, 2025 @02:25AM (#43943605)
No they don't, PTC, Aicas, GraalVM and OpenJ9 support reflection.

The others no longer matter, out of business.

Re:Rust Dependencies Scare Me by saagarjha on Saturday May 10, 2025 @03:53AM (#43943951)
You can't LTO code under the presence of reflection. You can AOT but there will always be a "cold path" where you have to interpret whatever is left.
Re:Rust Dependencies Scare Me by pjmlp on Saturday May 10, 2025 @04:36AM (#43944118)
Yet it works, thanks to additional metadata, either in dynamic compiler which effectly does it in memory, throwing away execution paths with traps to redo when required, and with PGO like metadata for AOT compilation.

And since we are always wrong unless proven otherwise,

https://www.graalvm.org/jdk21/reference-manual/native-image/...

https://www.graalvm.org/latest/reference-manual/native-image...

Re:Rust Dependencies Scare Me by saagarjha on Saturday May 10, 2025 @04:42AM (#43944149)
You do understand that the topic at hand is not shipping around all that code needed to support a trap, right?