This commit is contained in:
anon 2024-07-01 23:56:59 +02:00
parent 99e5ebf0be
commit 5ee84af68f

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# Stacktor
> stack-vector
So,
theres this very technical sentiment that dynamic vectors are
impossible due to how memory layout works.
We constantly have to reallocate vectors on the heap if we wish to expand them.
Now,
here is an even more technical gotcha'.
The stack is dynamic (""),
but we use it for all locals...
Except all threads (under Linux anyways) get their own stack.
Logically follows that a stacktor is vector implemented using the stack,
cheesing threads.
Does this have any benefits? Not really. Is it evil? Definitely.
Anyways, enjoy.