Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Aug 18, 2019
1 parent 50d792a commit eb94c67
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions docs/source/todo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ TODO
Memory Block Operations integrated in language?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

list,string memory block operations?
array/string memory block operations?

- list operations (whole list, individual element)
operations: set, get, copy (from another list with the same length), shift-N(left,right), rotate-N(left,right)
clear (set whole list to the given value, default 0)
- array operations
copy (from another array with the same length), shift-N(left,right), rotate-N(left,right)
clear (set whole array to the given value, default 0)

- list operations ofcourse work identical on vars and on memory mapped vars of these types.
- array operations ofcourse work identical on vars and on memory mapped vars of these types.

- strings: identical operations as on lists.
- strings: identical operations as on array.

these should call optimized pieces of assembly code, so they run as fast as possible
For now, we have the ``memcopy`` and ``memset`` builtin functions.

For now, we have the ``memcopy``, ``memset`` and ``strlen`` builtin functions.

More optimizations
^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -48,9 +47,6 @@ without having to to index into the stack?
Misc
^^^^

Add sort() function that can sort an array (ascending and descending)


Several ideas were discussed on my reddit post
https://www.reddit.com/r/programming/comments/alhj59/creating_a_programming_language_and_cross/

0 comments on commit eb94c67

Please sign in to comment.