Skip to content

Commit

Permalink
Update YAMA docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Mar 2, 2024
1 parent f8aeb39 commit e3afbcf
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/pages/yama/0001_c_enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ typedef enum

Currently we can use something like

<!-- Note using Python for syntax highlighting, below is Yaksha code -->

```yaksha
SOMETHING: Const[int] = 0
Expand Down
1 change: 0 additions & 1 deletion src/pages/yama/0003_syntax_sugar_for_loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro'
- Author(s): Bhathiya Perera
- Status : ✅

<!-- different languages for code blocks are used to get maximum syntax matching for free, please ignore -->

## Problem

Expand Down
2 changes: 0 additions & 2 deletions src/pages/yama/0004_iterator.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro'
- Author(s): Bhathiya Perera
- Status : Draft

<!-- different languages for code blocks are used to get maximum syntax matching for free, please ignore -->

## Problem

We would like to introduce support for iterators, such that it allows Yaksha to simply iterate arbitrary content.
Expand Down
1 change: 0 additions & 1 deletion src/pages/yama/0005_dsl_macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro'
- Author(s): Bhathiya Perera
- Status : In Progress

<!-- different languages for code blocks are used to get maximum syntax matching for free, please ignore -->

## Problem

Expand Down
1 change: 0 additions & 1 deletion src/pages/yama/0006_c2c.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro'
- Author(s): Bhathiya Perera
- Status : Draft

<!-- different languages for code blocks are used to get maximum syntax matching for free, please ignore -->

## Problem

Expand Down
6 changes: 3 additions & 3 deletions src/pages/yama/0007_structs_revisited.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layout: '../../layouts/YamaPostLayout.astro'
# YAMA 0007 - Additional features for structs

- Author(s): Bhathiya Perera
- Status : In Progress
- Status :

Structures are at the moment can be created as follows

Expand All @@ -23,15 +23,15 @@ class Orange:
origin: int
```

## Item 1 - Allocate single object on heap
## Item 1 - Allocate single object on heap

```yaksha
a: Ptr[Banana] = make("Banana")
b: Orange = make("Orange")
```

## Item 2 - Create structures or classes
## Item 2 - Create structures or classes

```yaksha
a: Banana = Banana {color: YELLOW, origin: SRI_LANKA}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/yama/0009_strings_revisited.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layout: '../../layouts/YamaPostLayout.astro'
# YAMA 0009 - Strings revisited

- Author(s): Bhathiya Perera
- Status : Draft
- Status :

Strings in programming languages are tough to design. You can make things simple by using it like a value type (Copying and deleting it). However, value like strings come at a cost as it does large number of alloc/dealloc resulting in fragmented memory. In WASM4 or embedded (potential future scenario) cases, this kind of alloc/dealloc is not acceptable.

Expand Down

0 comments on commit e3afbcf

Please sign in to comment.