Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've only done a few hello world style projects in rust, and my python experience is also almost 8 yrs ago now, so I might be wrong... But doesn't rust pull it's dependencies as bytecode vs python (which is a script language at its core) that pulls the source code?

The bytecode would only ever work with the VM that it's been compiled against I think, which sounds to me like the real issue here...?

I don't think you'd have this issue if you'd fetch your rust dependencies via git and then build them locally.

And pre building for every version is expensive, which is likely why the rust ecosystem doesn't really do it right now.

And I doubt it's gonna change unless a MAMA (Microsoft, Apple, Meta, Alphabet) company "embraces" it... The EEE style



Crates.io stores packages as source code.

Rust does not have a VM, and doesn't use bytecode.

That being said, it could in theory serve them as binary code, which yes, would then mean that it would need to be stored per version and per architecture both, which would be quite a lot more than the source that's stored now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: