Stream: t-compiler/help

Topic: (no topic)


Paul Faria (Aug 05 2019 at 19:26, on Zulip):

Hi everyone, I'm reading the rustc guide, and came across the phrase "interns identifiers" (from https://rust-lang.github.io/rustc-guide/the-parser.html , the last sentence on that page). What does it mean for something to be interned?

oli (Aug 05 2019 at 19:31, on Zulip):

It means that you are not creating a heap allocation for an identifier every time, but instead have a global table where they are stored and deduplicated. You then just need to store the index into the global table whenever you have an identifier

Paul Faria (Aug 05 2019 at 19:36, on Zulip):

Thanks!

Santiago Pastorino (Aug 05 2019 at 19:47, on Zulip):

@Paul Faria @oli if this is not entirely clear in the guides may it worth opening a PR and explaining it better? :)

Paul Faria (Aug 05 2019 at 19:49, on Zulip):

I'm collecting some notes on my first read through, I'll share them here and then we could create PR's based on that?

Santiago Pastorino (Aug 05 2019 at 19:49, on Zulip):

definitely

Santiago Pastorino (Aug 05 2019 at 19:49, on Zulip):

:+1:

Last update: Nov 11 2019 at 22:00UTC