Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is means digest in ECMAScript document? #1197

Closed
dSalieri opened this issue May 19, 2018 · 7 comments
Closed

What is means digest in ECMAScript document? #1197

dSalieri opened this issue May 19, 2018 · 7 comments
Labels

Comments

@dSalieri
Copy link

dSalieri commented May 19, 2018

If you open Module section, you will be able to see:

Its fields contain digested information about the names that are imported by the module and its concrete methods use this digest to link, instantiate, and evaluate the module.

What is mean digest?
P.S Word digest used only in Module section.

@ljharb
Copy link
Member

ljharb commented May 20, 2018

"digest" means "to arrange in convenient or methodical order; reduce to a system; classify."

The text says that Source Text Module Records have fields that contain "digested information", meaning, information that was classified and arranged methodically. As a noun, "digest" means "a collection or compendium, usually of literary, historical, legal, or scientific matter, especially when classified or condensed." - so, it's saying that the concrete methods use the "collection of information" to link, instantiate, and evaluate the module.

@dSalieri
Copy link
Author

dSalieri commented May 20, 2018

@ljharb May https://en.wikipedia.org/wiki/Universally_unique_identifier be "digest" in this occurence?

@ljharb
Copy link
Member

ljharb commented May 20, 2018

@dSalieri no, a UUID would be a single unique identifier; in this case the "digest" is a collection of key/value pairs.

@dSalieri
Copy link
Author

@ljharb So I can translate "digested" as "processed" and "digest" as "processed data"?

@allenwb
Copy link
Member

allenwb commented May 20, 2018

I wrote the original sentence that used "digested":

So I can translate "digested" as "processed" and "digest" as "processed data"?

I think a better translation would be: "digested" as "extracted" and "digest" as "the extracted data"; because the information isn't is actually transformed. It is just collected. In English, "process" could imply that the information has been manipulated in some way.

The "digested information" exists in the source code of a module and could be obtained each time it is needed by reanalyzing the source code. But its easier in the specification to make reference to the digested information than it is describe how to analyze the source code each time some information is needed

@dSalieri
Copy link
Author

dSalieri commented May 20, 2018

@allenwb Can you show example of "digested information" in the source code of a module? I can not yet imagine this abstraction.

@ljharb
Copy link
Member

ljharb commented Jan 3, 2020

One might imagine that such information might be an AST, for example.

Closing, since this was answered in #1197 (comment)

@ljharb ljharb closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants