Coder Social home page Coder Social logo

Comments (11)

Eh2406 avatar Eh2406 commented on August 19, 2024 2

Want to submit a PR?

It seems fairly straight forward, so I think I'd prefer to leave it open for someone with less experience to pick up. I am open to mentoring or pair programming or answering questions for anyone that does want to give it a try.

from left-right.

ShaneEverittM avatar ShaneEverittM commented on August 19, 2024 1

Want to submit a PR?

It seems fairly straight forward, so I think I'd prefer to leave it open for someone with less experience to pick up. I am open to mentoring or pair programming or answering questions for anyone that does want to give it a try.

I'll give it a shot. I'm confident with Rust, not so much with open source development.

from left-right.

ShaneEverittM avatar ShaneEverittM commented on August 19, 2024 1

PR made.

from left-right.

Eh2406 avatar Eh2406 commented on August 19, 2024 1

I would think that you would change this line to left-right = { path = "../left-right", version = "0.11.0" }. That tells Cargo to use the path for development but depend on the next crates.io version on publish. But I don't know why that is set up to depend on the version from crates.io now, so we may want @jonhoo's explanation of the current set up.

from left-right.

jonhoo avatar jonhoo commented on August 19, 2024

Oh, interesting, I didn't even know that traits could have associated constants now. Absolutely! Want to submit a PR? I don't think it'll make much difference in practice, but it is maybe a little nicer. It is a breaking change to left-right, but I think that's fine since it's so new and still pre-1.0.

One thing I do worry about with DropBehavior is that the compiler gets smart enough that it recognizes that the Drop implementation for Aliased<_, NoDrop> is a no-op, and therefore decides to lay it out differently in memory. I don't think that's something it does, but it is something that making it a constant will make it more likely optimization. But that said, if that optimization is possible, it would make what we're doing unsound regardless of whether it's an associated const or an fn, so the change is likely a good one anyway.

from left-right.

Eh2406 avatar Eh2406 commented on August 19, 2024

Let us know how we can help!

from left-right.

ShaneEverittM avatar ShaneEverittM commented on August 19, 2024

Will do!

from left-right.

ShaneEverittM avatar ShaneEverittM commented on August 19, 2024

Since evmap depends on the crates.io version of left-right, how should I handle propagating this change into evmap? Or should I leave the changes just to left-right.

from left-right.

ShaneEverittM avatar ShaneEverittM commented on August 19, 2024

Yeah, that works fine. All tests pass under new implementation, holding off on any more commits though until we get some feedback on the structure.

from left-right.

jonhoo avatar jonhoo commented on August 19, 2024

@Eh2406 is exactly right that left-right needs to become a path dependency to use the new behavior of left-right until I do a release. I commented in the PR :)

from left-right.

jonhoo avatar jonhoo commented on August 19, 2024

This was fixed in #87.

from left-right.

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.