diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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. |