From e3afbcf81b71c71b304639f970d04137906f08c0 Mon Sep 17 00:00:00 2001 From: JaDogg Date: Sat, 2 Mar 2024 21:41:55 +0000 Subject: [PATCH] Update YAMA docs --- src/pages/yama/0001_c_enums.md | 1 - src/pages/yama/0003_syntax_sugar_for_loop.md | 1 - src/pages/yama/0004_iterator.md | 2 -- src/pages/yama/0005_dsl_macros.md | 1 - src/pages/yama/0006_c2c.md | 1 - src/pages/yama/0007_structs_revisited.md | 6 +++--- src/pages/yama/0009_strings_revisited.md | 2 +- 7 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/pages/yama/0001_c_enums.md b/src/pages/yama/0001_c_enums.md index 5b51671..6d0fa60 100644 --- a/src/pages/yama/0001_c_enums.md +++ b/src/pages/yama/0001_c_enums.md @@ -37,7 +37,6 @@ typedef enum Currently we can use something like - ```yaksha SOMETHING: Const[int] = 0 diff --git a/src/pages/yama/0003_syntax_sugar_for_loop.md b/src/pages/yama/0003_syntax_sugar_for_loop.md index 43e82b5..4efe2b4 100644 --- a/src/pages/yama/0003_syntax_sugar_for_loop.md +++ b/src/pages/yama/0003_syntax_sugar_for_loop.md @@ -9,7 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro' - Author(s): Bhathiya Perera - Status : ✅ - ## Problem diff --git a/src/pages/yama/0004_iterator.md b/src/pages/yama/0004_iterator.md index 7ba3ef6..9f87543 100644 --- a/src/pages/yama/0004_iterator.md +++ b/src/pages/yama/0004_iterator.md @@ -9,8 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro' - Author(s): Bhathiya Perera - Status : Draft - - ## Problem We would like to introduce support for iterators, such that it allows Yaksha to simply iterate arbitrary content. diff --git a/src/pages/yama/0005_dsl_macros.md b/src/pages/yama/0005_dsl_macros.md index 0ce0e43..90238ff 100644 --- a/src/pages/yama/0005_dsl_macros.md +++ b/src/pages/yama/0005_dsl_macros.md @@ -9,7 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro' - Author(s): Bhathiya Perera - Status : In Progress - ## Problem diff --git a/src/pages/yama/0006_c2c.md b/src/pages/yama/0006_c2c.md index ebb59c4..74d5d90 100644 --- a/src/pages/yama/0006_c2c.md +++ b/src/pages/yama/0006_c2c.md @@ -9,7 +9,6 @@ layout: '../../layouts/YamaPostLayout.astro' - Author(s): Bhathiya Perera - Status : Draft - ## Problem diff --git a/src/pages/yama/0007_structs_revisited.md b/src/pages/yama/0007_structs_revisited.md index 687439d..6103d8f 100644 --- a/src/pages/yama/0007_structs_revisited.md +++ b/src/pages/yama/0007_structs_revisited.md @@ -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 @@ -23,7 +23,7 @@ class Orange: origin: int ``` -## Item 1 - Allocate single object on heap +## Item 1 - Allocate single object on heap ✅ ```yaksha a: Ptr[Banana] = make("Banana") @@ -31,7 +31,7 @@ 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} diff --git a/src/pages/yama/0009_strings_revisited.md b/src/pages/yama/0009_strings_revisited.md index a96c8ab..cce2ab0 100644 --- a/src/pages/yama/0009_strings_revisited.md +++ b/src/pages/yama/0009_strings_revisited.md @@ -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.