richardhundt/lua-engram
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
engram - Pure Lua Runtime serialisation for messaging and persistence using the dump format Based on John Hind's: http://lua-users.org/wiki/EngramProposal Provides: local engram = require"engram".engram Two modes are supported: Heavy: local func = engram(whatever, environment) local data = func() Lite: local func = engram(whatever) local data = func() The distinction is that if an 'environment' table is passed (second argument), then upvalues, function environments and metatables are serialized recursively. Otherwise these are ignored. Only standard Lua 5.1 bytecode is supported currently. Caveats: Serialization is not blazingly fast, but deserialization is pretty fast since it uses Lua's dump format. Further work: I've got a prototype lying around somewhere which doesn't produce bytecode, but generates source strings instead. It's a bit slower during serialization, but more portable (obviously). I'll send this version along in due course.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published