Coder Social home page Coder Social logo

Comments (4)

bhelx avatar bhelx commented on May 23, 2024

Thanks! I feel like we could use a little more somewhere about what this memory channel is for exactly and that would help a little. Maybe a more formal explanation. I think you need to know how extism works to understand when you'd want to free it. But I'll let @zshipko weigh in on what he thinks.

from c-pdk.

zshipko avatar zshipko commented on May 23, 2024

Maybe we could have something on the concepts page about how memory works and link to it from the README?

We should specifically mention that Extism allocated memory will be reset before each call so free is only needed to recycle memory within a single call. This means values you know you're done with should be freed just to avoid wasting resources but there won't be any memory leaks if you forget.

from c-pdk.

G4Vi avatar G4Vi commented on May 23, 2024

Maybe we could have something on the concepts page about how memory works and link to it from the README?

A short snippet with a more in-depth explanation linked sounds best to me.

from c-pdk.

G4Vi avatar G4Vi commented on May 23, 2024

Added https://extism.org/docs/concepts/memory to the concepts. Now I just have to link it here.

from c-pdk.

Related Issues (4)

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.