GithubHelp home page GithubHelp logo

Comments (7)

dantti avatar dantti commented on May 28, 2024

I thought of doing this before v2, but gave up on the idea that the user should know what he is doing, but I think you might be right about misuse.
The problem with this now is that I believe such change might break ABI, but not sure.

from cutelyst.

buschmann23 avatar buschmann23 commented on May 28, 2024

As I had the same “issue“ to find the most appropriate values for PBKDF2 - especially the iterations count, I wrote a small test application to try to find the best fitting value for the iterations that would take up to 500ms for the pure algorithm.

See https://github.com/Huessenbergnetz/pbkdf2test

from cutelyst.

louwers avatar louwers commented on May 28, 2024

##C++ said that adding default arguments won't break ABI on any of the platforms they are aware of since it simply is not part of the ABI. The check for default argument is made at the call site. Furthermore, default arguments are added to the header, so by just swapping out headers without recompiling you could add default arguments.

from cutelyst.

dantti avatar dantti commented on May 28, 2024

Hmm when I searched for this I found:
https://stackoverflow.com/questions/41763930/does-adding-an-arguments-with-default-values-to-functions-break-abi/41764100

from cutelyst.

dantti avatar dantti commented on May 28, 2024

An alternative would be a method that hides all arguments but the password, iirc there's a library that does this.
If the default argument is stored by the compilation of the client an update of the values would not reflect on an application unless it's rebuilt, so this option might be a good idea I think.

from cutelyst.

dantti avatar dantti commented on May 28, 2024

I've talked to some people and they told me it does breaks the ABI, so to avoid problems I added a simple method.

from cutelyst.

louwers avatar louwers commented on May 28, 2024

@dantti Adding arguments with default values changes the ABI, this is what the StackOverflow thread is about. But what I proposed is that we add default values for already existing arguments. I don't see any logical way how this can change the ABI. Where you clear on this difference when you asked those people?

Sorry for replying late.

from cutelyst.

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.