HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by creata | Hacker News Reader
Parent
Full thread
creata
·
Can't the Rust compiler cache the evaluated outputs?
View on HN
pjmlp
·
In theory yes, with the current LLVM toolchain doesn't look like it.
vlang1dot0
·
LLVM has nothing to do with `const` evaluation in Rust. `const` evaluation happens at the MIR level which participates in incremental compilation.
pjmlp
·
> cache the evaluated outputs
Was the point of my answer.
vlang1dot0
·
Apologies but as your comment currently stands, it reads to me like "in theory yes, but actually no".
Reply on news.ycombinator.com