Giter Site home page Giter Site logo

Comments (8)

blueloveTH avatar blueloveTH commented on May 10, 2024 2

Good luck to you. If you have any questions, just put it here and I will provide help as possible as I can.

from pocketpy.

parthvnp avatar parthvnp commented on May 10, 2024 1

@blueloveTH Are you looking for contributions to this module? If so, I am eager to work on it.

from pocketpy.

blueloveTH avatar blueloveTH commented on May 10, 2024 1

What do you mean packing or unpacking? I'm not familiar with the functionality of struct.

We can invent a custom protocol if emulating cpython is complex or it requires a lot of internal change. And it may be the correct way.

The total LOC of pocketpy is ~8000 I think the pickle module should use a solution less than 1000 LOC. We need a clever/light way to achieve that.

I recommend to make a comprehensive plan before actually implementing the module. I invite you to join our Discord for fast communication.

https://discord.gg/5BjbBfDE

from pocketpy.

parthvnp avatar parthvnp commented on May 10, 2024 1

Perfect. Thank you. I do have a plan in place, I will refine and it share it on discord!

from pocketpy.

blueloveTH avatar blueloveTH commented on May 10, 2024

Yes, sure. I need help!
I was looking at cpython's pickle module, it seems cpython use a special virtual machine for it. However, it is a bit complex.

from pocketpy.

parthvnp avatar parthvnp commented on May 10, 2024

I can give it a try. I will use the implementations that already exist for the standard library in python and then try to emulate the CPython pickle module within the constraints that exist for pocketpy. First, I will try to come up with an external that is as close as possible to the one in standard library and then we can go from there.

from pocketpy.

parthvnp avatar parthvnp commented on May 10, 2024

I have started working on the initial implementation for the Pickle module. However, I am currently facing one major issue. Pickling and unpickling heavily rely on struct module for packing and unpacking Python objects. This functionally is implemented in C layer. Currently we don't have any similar functionality to support unpacking and packing of objects directly in the C layer. Should we implement this functionality in the C layer or provide minimal implementations of struct module functions directly in Python?

from pocketpy.

blueloveTH avatar blueloveTH commented on May 10, 2024

I'd like to develop this module myself.

from pocketpy.

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.