1,230 karma · joined Nov 10, 2020 (6y ago) · 503 submissions
comment 22h ago · link · parent
No that's not what I meant. Of course there is a bug in LLVM, but I said there will be no miscompilations and meant that - because with strict provenance, we don't use the problematic constructs (that LLVM miscompiles).
> No, integers shouldn't have provenance. Due to this compiler bug unfortunately we can give integers provenance and blow up the world.
Nope that's incorrect. In LLVM (and all other compilers I know) integers do not have provenance, and there aren't any optimizations that think they do. The bug (as understood by experts) is in pointer handling and not integers, specifically that ptr2int is not treated as having side-effects and that int2pt is considered to give the same pointers for the same integers.
comment 1d ago · link · parent
If I'm getting what you mean correctly, that's not true. Integers do not have provenance and if `a - b == 0` then `a == b` when a, b are integers. The problem is only when LLVM concludes from this that `a as *const _ == b as *const _`, and that doesn't exist for strict provenance.
comment 1d ago · link · parent
comment 1d ago · link · parent
I believe it's a bit of an exaggeration. Formally specifying int2ptr and ptr2int casts in a way that permits both all code found in the wild (or at least a large majority of it) and all optimizations compilers want to perform (ditto), is more than just a bit difficult.
comment 1d ago · link · parent
> The mapping functions for converting a pointer to an integer or an integer to a pointer are intended to be consistent with the addressing structure of the execution environment.
So even if it's not mandatory, it is expected to work.
comment 5d ago · link · parent
comment 1w ago · link · parent
comment 1w ago · link · parent
Documentation certainly has nothing to do with it.
Other factors you mentioned are more convincing.
23.
Rust – Enabling the parallel front end on nightly(blog.rust-lang.org ↗)
10 points · by afdbcreid · 1w ago · discuss
24.
Jiff – A datetime library for Rust – reaches 1.0(burntsushi.net ↗)
15 points · by afdbcreid · 1w ago · 2 comments
comment 1w ago · link · parent
comment 1w ago · link · parent
Uhmm... No? E.g.:
- Python has long strongly recommended virtual environments.
- Not to talk about JavaScript which of course manage things per project by default.
- I don't remember what was the state of things in .NET Framework, but in modern .NET NuGet packages are distributed as DLLs with your app.
I don't know other ecosystems well but I believe they aren't different.