-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Confusing names in the codebase #1409
Comments
@garious i think Account is still appropriate. we can't stray to far from mainstream |
Yeah, Account won't be changing. Lockbox was my favorite alternative, but still not a perfect fit, so not worth the change. |
No more sweeping name changes planned. |
Proposed changes:
|
@garious a transaction script calls multiple interpreters? |
Correct, a script can piece together instructions that are interpreted using different interpreters |
Proposed changes: Leave program alone. Only these:
Also, rename ReplicateStage to ReplyStage to free up term "replicate" for exclusive use in replicator work. |
Punting on "instructions -> script" for now - ROI too low. Down to just:
|
That is pretty good! |
Closing in favor of #2761 |
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.13.9 to 7.13.10. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.13.10/packages/babel-preset-env) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…a-labs#1409) sdk: Fix --no-default-features build
Crdt
is one of many Conflict-free Data Types. It should named something that reflects its data, not properties of how that data is composed.NetworkInfo
?ClusterInfo
?Account
is a strange term for the thing held by the Bank, owned by a Pubkey, and stores the owners tokens and arbitrary data. It could use a word that describes rented computer memory. But if not in the naming paradigm of banks, then Bank will need to change too - like Heap. Sticking with the banking metaphor, I'd prefer "safe deposit box", but that's too long, "safe" is ambiguous and would be confused with Rust's "unsafe". How aboutLockbox
?Program
is too generic a term for the thing that processes instructions directly and interactively.Interpreter
seems like a perfect fit. That also leaves space for calling a sequence of instructions aProgram
orScript
.Process
is probably a fine term for an instance of a program or interpreter, but now would be fine time to consider alternatives.We use
Instruction
in two places, within aTransaction
we use it to mean an instance of userdata (Vec<u8>
), aprogram_id
that tells the network what program knows how to interpret that userdata, and list of pubkey indices (Vec<u8>
) where each pubkey represents the owner of someAccount
. The second place is within the Budget DSL. Here we use it to mean something the Budget interpreter (aka program) knows how to execute. The second place seems like the more natural usage and that the first can be renamed toBytecode
, with fieldsbytes
(instead ofuserdata
),account_indexes
(orlockbox_indexes
), andprogram_id
(orinterpreter_id
).What else?
The text was updated successfully, but these errors were encountered: