lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




Dibyendu Majumdar <mobile@majumdar.org.uk> schrieb am Mi., 1. Aug. 2018, 00:16:
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.