Giter VIP home page Giter VIP logo

Comments (3)

burjui avatar burjui commented on June 16, 2024

Besides #25, I am also willing to implement IntoIter and insert_at, if you're not working on it already.

from stable-vec.

LukasKalbertodt avatar LukasKalbertodt commented on June 16, 2024

@burjui Thanks for the offer. No I'm not working on either right now. You can certainly implement insert_at (in a new PR though), but I am not sure about IntoIter yet.

This stuff is pretty tricky, I think. At least for Vec<T> the iterator is tricky because it has to make sure nothing is dropped twice, even in the case of a panic somewhere. However, I could be wrong and it's easy for StableVec.

Another concern I have with IntoIter is that I am very unhappy with the current implementation. In the beginning I thought using a Vec<T> would be a good idea until I introduced two memory unsafety bugs 🙈 (#24). That's why I very much want to rewrite the internals, presumably even in a generic way so that the user can decide which representation to use (see #2). So if IntoIter would need any knowledge about the internals, I think it's not worth implementing it now.

However, if you can implement IntoIter easily completely on top of the public StableVec API (without being less efficient than it could be), I'd be very happy to merge that!

from stable-vec.

LukasKalbertodt avatar LukasKalbertodt commented on June 16, 2024

Almost everything was implemented by now. I will close this large-scope issue now. Separate issues can be created for separate features. (Example #29)

from stable-vec.

Related Issues (14)

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.