Giter Club home page Giter Club logo

Comments (3)

HarryR avatar HarryR commented on July 19, 2024

I agree, without returning the new value the atomic functions are useless in a lot of situations.

When they don't return the new value you have to do a get, cond_put combination in a loop :(

from hyperdex.

hwinkel avatar hwinkel commented on July 19, 2024

any update on this issue?

from hyperdex.

HarryR avatar HarryR commented on July 19, 2024

iirc it was waiting for protocol changes or something like that isn't as simple as it looks.

It was possibly discussed in detail by rescrv on the lists at some point, but I understand the gist of it and why it's a pain to implement.

Being atomic meant that the instructions could be applied in any order, or even bulk-applied, while the consensus is in a state of flux.

To have instructions return the value would require an additional level of synchronisation and overhead, not to mention protocol changes.

I hope that makes sense, and given the get/cond_put combination works in a loop there is a solution to what I wanted to do, albeit not in the ideal way.

I am happy with the trade-off, as the advantages of the way atomic instructions work in HyperDex outweighs the performance and synchronisation overheads of changing it to return a value.

I don't know if any of this is correct, would be handy to get feedback on it at some point.

from hyperdex.

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.