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

Possible kinds of variables #13

Open
BenWeber42 opened this issue Jun 18, 2020 · 0 comments
Open

Possible kinds of variables #13

BenWeber42 opened this issue Jun 18, 2020 · 0 comments
Labels
design design-choice/s related

Comments

@BenWeber42
Copy link
Contributor

Here we list possible kinds of variables that we could encounter during the development of dusk. Taking possible future directions into account should help us design good answers to the challenges we face regarding kinds of variables.

Fields (+type: Real, single/double precision float, int, bool?)

  • API Fields
  • temporary Fields

Variables (+types)

  • global (constexpr, runtime parameter)
  • local

In the Vertical

  • vertical iteration variable: usually k (or level)
  • vertical interval boundary markers (k_flat, k_end, k_start)

Vertical Indirections

  • absolute vertical offsets
  • Int/KIndex Fields?

Horizontal Indirections

Neighborhood Variables

  • constexpr aliases for short-cuts (diamond = Edge > Cell > Vertex)
  • special neighborhoods (half_diamond)

Array-Like

  • First-class support for weights (from reductions)
  • Possibly support arrays?
  • Vector Fields

Related

  • Typing/dusk's type system
  • Scopes & life-times
@BenWeber42 BenWeber42 added the design design-choice/s related label Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design design-choice/s related
Projects
None yet
Development

No branches or pull requests

1 participant