aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-25 14:26:32 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:37:04 +0200
commitb6b3760e19716c574ca9a0ec0bacfe5518b39f77 (patch)
tree76c2c04069d22d36550a62e4b5bb7878fcefb4fd /README.md
parent203fbb778e9cfe3aff8b4dee6da9a103a171ca0e (diff)
load function in progress
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 16f5252..4b12d62 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,10 @@ All branch targets should be 16-byte aligned.
* Implement pub for imports and show compile error when using non-pub symbols in pub closures/structs/etc.
* Use a list instead of a hash map for variable lookup, since the list will be small most of the time.
* Optimize buffer_append by returning pre-allocated space which can be used directly, instead of adding data to a variable and then copying it to the buffer.
+* Use instructions such as CMPXCHG8B to optimize operations such as `if(a == b) a = c;`.
+* Do not allow (re)assigning to variables in global scope. This wouldn't be consistent since files are parsed asynchronously so the order wouldn't be deterministic.
+* Compile error if a variable has the same name as a keyword.
+* Only allow importing files that has .amal extension, this also fixes the issue where windows has illegal filenames such as aux, nul, etc. Also do the same for the main file.
# Documents
Documents are located under doc. The file doc/Documentation.md is generated from source files by running doc/doc_extract.py
but there is no need to run this script unless you are modifying documentation in the source.
@@ -78,4 +82,4 @@ Define `AMAL_MUTEX_DEBUG` in src/thread.c to enable mutex debugging.\
Set `PEDANTIC` environment variable to 1 before compiling to enable pedantic mode.\
Set `SANITIZE_ADDRESS` environment variable to 1 before compiling to run compile with asan.\
Set `SANITIZE_THREAD` environment variable to 1 before compiling to run compile with tsan.\
-Set `SCAN_BUILD` environment variable to 1 before compiling to run scan-build on the source files. \ No newline at end of file
+Set `SCAN_BUILD` environment variable to 1 before compiling to run scan-build on the source files.