-
Notifications
You must be signed in to change notification settings - Fork 382
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
docs: add first documentation archetype. #957
Conversation
Adding different concepts linked between them as a first iteration to keep adding new and deeper ones to our documentation. Signed-off-by: Antonio Navarro Perez <[email protected]>
docs/daos.md
Outdated
--- | ||
|
||
# DAOs | ||
Decentralized Autonomous Organizations are represented as a group of [Realm](./realm.md)s or/and [package](.)s that can manage decisions using the blockchain. We have several DAOs that will be in charge of: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmh, it's actually people, no? I see it as decision-making regulated through code
docs/gnovm.md
Outdated
|
||
# Gnovm | ||
|
||
Gnovm is in charge to run [Gno](.) code. It interprets directly the source code and parses it to an AST. After that, it emulates CPU instructions to execute the AST instead of executing it directly. It is able to store the state of a [Realm](./realm.md) and retrieve it on the next execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it emulates CPU instructions to execute the AST instead of executing it directly
unclear; I would suggest something like "interprets the AST to execute its code, similarly to Python, in contrast to executing machine code directly, like Go with the official compiler".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose(combines discussion above): "Gnovm is in charge to run Gno code. Firstly, Gno source code is parsed into an Abstract Syntax Tree (AST). Then, Gnovm interprets the AST to execute the code. This process bears similarity to Python's execution model, which contrasts with that of Go's official compiler that directly executes machine code..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest something like "interprets the AST to execute its code, similarly to Python, in contrast to executing machine code directly, like Go with the official compiler".
I would prefer to explain things as they are instead of using other languages as examples. Some people might not know how Python interpreter works.
edit: where are we talking in your rewordings about OP codes? we are not just executing the AST but generating a list of OP codes that will be executed.
docs/gnoweb.md
Outdated
|
||
gnoweb is an application that can call a special method on a [realm](./realm.md) that returns markdown as the output. This can be used to create any kind of web interface, like social networks, blog systems, forums, or standard status pages. | ||
|
||
The method that it calls is `Render(string)`string` where the input string is a path, and the output string is markdown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method that it calls is `Render(string)`string` where the input string is a path, and the output string is markdown. | |
The method that it calls is `Render(string) string` where the input is a path (to discriminate different requests, and potentially handle them through a router), and the return value is markdown to be rendered. |
I would also add something like:
It has read-only access also to the [Realm State](./realm-state.md), so it can serve as a useful bridge between web2 and content on web3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that the output of Render
does not have to be markdown specifically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this as a starting point for our official docs, that will incorporate these very documents somehow
Left a few super minor comments, otherwise it looks good for the base version that will get expanded 💯
@@ -0,0 +1,9 @@ | |||
--- | |||
state: design # Nothing implemented yet, figuring out the best way to do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kinds of states do we have in total?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now, 3:
- improvements-needed: The final PoC is working well, but it must evolve performance-wise.
- design: Nothing implemented yet, figuring out the best way to do it.
- done: it is done (nothing yet)
docs/gnoweb.md
Outdated
|
||
gnoweb is an application that can call a special method on a [realm](./realm.md) that returns markdown as the output. This can be used to create any kind of web interface, like social networks, blog systems, forums, or standard status pages. | ||
|
||
The method that it calls is `Render(string)`string` where the input string is a path, and the output string is markdown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that the output of Render
does not have to be markdown specifically
Signed-off-by: Antonio Navarro Perez <[email protected]>
Superseded by #1046 |
Adding different concepts linked between them as a first iteration to keep adding new and deeper ones to our documentation.
Related issues and PRs:
Contributors Checklist
BREAKING CHANGE: xxx
message was included in the description