lua-users home
lua-l archive

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


Hello my esteemed lua fans!

I use an embedded operating system that looks a lot like the old
(pre-OSX) Apple Macintosh OS. The device has no hardware MMU to
provide a "flat" memory view to software. There are many concurrent
threads competing for the heap, so the OS developers implemented a
"handle-based" memory manager (apps get "pointers-to-pointers"). App
developers are encouraged to "unlock" their memory handles when not
actively using them.

With all this in mind, how hard would it be to modify Lua 5.x to:

1) use memory handles instead of pointers, and

2) unlock these handles at opportune times (i.e. waiting for a c
function to complete, etc).

Any precedent for this?

Thanks for your time!
-joe

-- 
If it ain't broke, break it.  How else are you going to figure out how it works?