Skip to content

Commit

Permalink
Started docs
Browse files Browse the repository at this point in the history
  • Loading branch information
OJarrisonn committed May 27, 2024
1 parent 0e770a5 commit e0fca00
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/aura.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Aura Docs

- [Data](./data.md)
- [Call](./call.md)
- [Control Flow](./flow.md)
- [Types](./type.md)
- [Tags](./tags.md)
- [Targets](./targets.md)
Empty file added docs/call.md
Empty file.
23 changes: 23 additions & 0 deletions docs/data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Aura: Data

The way Aura treats data and memory depends on the target, but doesn't affect the result of the computation.

## AuraVM

WIP

## C

When targeting C there are three possibilities:

- Data is used only once, so it's moved
- Data is shared by reference when passed as arguments to calls
- Data is copied when passed as argument to data constructors

## JS

WIP

## Immutability

The important thing to notice is: data is always immutable. So everytime you pass data to somewhere else, the original data is preserved
Empty file added docs/flow.md
Empty file.
Empty file added docs/tags.md
Empty file.
Empty file added docs/targets.md
Empty file.
Empty file added docs/type.md
Empty file.

0 comments on commit e0fca00

Please sign in to comment.