Giter Site home page Giter Site logo

Internals of eris about eris HOT 2 CLOSED

fnuecke avatar fnuecke commented on May 28, 2024
Internals of eris

from eris.

Comments (2)

fnuecke avatar fnuecke commented on May 28, 2024

Always happy to hear when it's helpful to people :)

I'm afraid there's no article specifically discussing the internals of Eris. Aside from the readme on the repo describing the high-level functionality, the file format documentation is probably the most you can find before having to dig into the actual code.

Aside from details though, basically what happens is that persist_typed is called starting with a root object to persist, and then possibly called recursively while traversing all references leading out from that root object -- so for tables all their keys and values, for functions their upvalues, for threads their stack etc. For deserialization it's the opposite process.

One thing that will help immensely while reading the code is understanding what the comments on the right of many lines mean: e.g. in this line, it's /* ... tbl nil */. These comments document the state of the Lua stack after that line finished execution. So here the stack holds some values (...), a table (tbl) and a nil value (nil), which was just pushed onto the stack.

If you have any specific questions, let me know and I'll try to remember the answers to them.

from eris.

alex-aparin avatar alex-aparin commented on May 28, 2024

Great thanks for reply (I have understood something from your code) . I will definitely ask questions (I need some time to learn sources of eris).

from eris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.