Comments (7)
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.
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.
##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.
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.
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.
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.
@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)
- Asynchronous REST API using GUI mode HOT 2
- Epoll event loop on Qt 6.4+
- Macos build error in EventDispatcherEPoll
- Question about Response::redirect HOT 1
- CRASH: Cutelyst is not responsive after wrong request
- Question about default change server/plugins default config HOT 3
- How prevent from session expire time change on some request? HOT 1
- RoleACL problem HOT 3
- How to access Request inside custom tag processing? HOT 2
- Copy-paste issue in CredentialPasswordPrivate::checkPassword HOT 2
- Cutelyst "Authentication plugin not registered" error message when running multithreaded in Kubernetes HOT 6
- Qt 6.5 compatibility and broken QMetaMethod::invoke() HOT 3
- Cutelyst not working with Qt 6.5 HOT 3
- how use qt with mimalloc HOT 1
- SONUM for Cutelyst4
- Problem with call Root::Auto HOT 11
- Qt 6.5.3 problem [was 'Problem with call Root::Auto'] HOT 6
- Multiple configuration files HOT 7
- server config section naming HOT 5
- Tutorial - Authentication - Auto appears to be never called - Qt 6.2.4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cutelyst.