Skip to content

WIP: more descriptions/comments for everything#1824

Closed
vbuterin wants to merge 12 commits intodevfrom
vbuterin-patch-4
Closed

WIP: more descriptions/comments for everything#1824
vbuterin wants to merge 12 commits intodevfrom
vbuterin-patch-4

Conversation

@vbuterin
Copy link
Contributor

Same as #1822 but fixed and rebased off of 0.12.

CC @hwwhww @protolambda

Same as #1822 but fixed and rebased off of 0.12.
@protolambda
Copy link
Contributor

It would be good to squash all these github edits, to keep the spec git history clean. If you are applying suggestions, there's also a "batch apply" function, to combine them.

@colekennelly1
Copy link

L

@hwwhww
Copy link
Contributor

hwwhww commented May 19, 2020

Redirect conversation to here:

@protolambda #1822 (comment):

The annotated spec by @benjaminion (And credit to many others, @djrtwo in particular) cannot go without mention here. Annotations and insightful comments are great, and make the spec much more readable, and hopefully enables more people to understand and audit it.

The spec has been "minimal" for a long time, often with others reducing the non-code text, but I really do think this PR is a step back in the right direction. However, it raises the question, how far should we go? More text than code?

It's a spec, and even calling them comments is wrong, they could be the majority of the spec. With a note that the code is the decision-maker, since it's not ambiguous unlike text can be. Preserving exact testable definitions through code is great.

cc @JustinDrake You have been the main proponent of minimalism, and although it was valuable to the spec, the text does not have to be like that. What do you think? And can this be a step towards the "Transparent Paper" (if that's how Eth2 as spec document will be called?).

@JustinDrake #1822 (comment)

cc @JustinDrake You have been the main proponent of minimalism, and although it was valuable to the spec, the text does not have to be like that. What do you think? And can this be a step towards the "Transparent Paper" (if that's how Eth2 as spec document will be called?).

Agreed that comments should make the spec maximally readable :) I haven't been able to deliver on the transparent paper for 1+ year so I wouldn't hold my breath on it 😂

@vbuterin vbuterin force-pushed the vbuterin-patch-4 branch from 67da5ad to 10c20f8 Compare May 19, 2020 13:01
vbuterin and others added 8 commits May 19, 2020 09:02
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
@hwwhww
Copy link
Contributor

hwwhww commented May 19, 2020

Re: minimal spec

My 2 cents

  1. It was a bit difficult to maintain the comments. e.g., the configuration was changed from 2**2 to 2**3, but the comment hasn’t been updated. But now, as the spec has been frozen to production mode, this issue should be minor than before.
  2. More than one time, I found that some context was lost between the PRs and commits, so I had to git blame to find it. 😅 And sometimes, it was misconfigured. So IMHO having “some important comments” is appreciated.
  3. I love Ben's annotated spec that explains the context detailedly, very much! So far, this PR is not too detailed or lengthy to me. I suppose we can refine the words with more iterations here...

@hwwhww hwwhww changed the base branch from v012x to dev May 19, 2020 19:08
@JustinDrake
Copy link
Contributor

I'll take a look at this and make edits to the doc directly :)

@JustinDrake JustinDrake marked this pull request as draft May 22, 2020 08:46
JustinDrake added a commit that referenced this pull request May 22, 2020
First incremental step towards #1824 focusing on containers—hopefully significantly easier to review and merge. I've cleaned up a bunch of the descriptions with more precise and concise wording. The style is also more consistent with the existing document. I've also taken some of the design notes (sometimes awkwardly placed in the space-limited tables) and added them as standalone notes below the appropriate container.
@hwwhww
Copy link
Contributor

hwwhww commented Aug 14, 2020

@vbuterin
I guess new https://github.com/ethereum/annotated-spec repo would replace this PR?

@JustinDrake
Copy link
Contributor

I guess new https://github.com/ethereum/annotated-spec repo would replace this PR?

Adding a link to the two annotated specs in this repo makes sense to me :)

@vbuterin vbuterin closed this Dec 17, 2020
@hwwhww hwwhww deleted the vbuterin-patch-4 branch February 21, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants