[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Thought experiment: what would you remove from Lua
- From: Eike Decker <zet23t@...>
- Date: Wed, 1 Aug 2018 10:57:00 +0200
Are there features in Lua that could be removed to create a simpler language?
Of course 'simpler' needs to be defined.
Simpler for users?
Simpler for implementors?
Often these are conflicting goals.
I'd like to see a version with a reference counting GC instead of a mark and sweep algorithm.
There'd be wasted memory with cyclic references, but the __gc call would be deterministic and would allow guard objects,e.g. like a mutex lock object that would unlock upon cleanup.