Comments (7)
Yeah, by default it compiles with native optimizations, but when packaging that may not be appropriate because target systems may lack instruction sets that the build system does have (e.g. AVX2/AVX512). Debian patches this logic out, it sounds like you want to do the same.
from crypt-argon2.
@Leont I've been also struggling when creating a docker image based on the official perl 5.38 debian bookworm image, where I've simply added cpanm Crypt::Argon2
to the Dockerfile. Then I've tested everything thoroughly on several development and staging servers, just to find out that it doesn't work on our production servers.
Would It be possible to have some env variable which could be set to disable the -march-native
flag?
from crypt-argon2.
Just found commit 356eaa4 where this is already implemented via environment variable CRYPT_ARGON2_ARCH
.
I think it would be helpful for others if this is documented and found via e.g. metacpan.org
from crypt-argon2.
I think it would be helpful for others if this is documented and found via e.g. metacpan.org
That is a very reasonable point.
from crypt-argon2.
I have just release a trial version that implements runtime implementation switching. Testing (e.g. cpanm LEONT/Crypt-Argon2-0.024-TRIAL.tar.gz
) in a wide variety of environments would be much appreciated.
from crypt-argon2.
@Leont does this mean that when now installing via cpanm LEONT/Crypt-Argon2-0.023-TRIAL.tar.gz
the default is not to set the -arch
compiler flag?
from crypt-argon2.
@Leont does this mean that when now installing via cpanm LEONT/Crypt-Argon2-0.023-TRIAL.tar.gz the default is not to set the -arch compiler flag?
It compiles versions with and without arch, and at runtime checks which ones are supported on that CPU :-)
from crypt-argon2.
Related Issues (9)
- CPAN release? HOT 17
- Documentation uses a colon not a semicolon HOT 1
- Does not compile with perls <5.16 HOT 1
- add short description on pod documentation of script argon2-calibrate HOT 1
- Please add dual-license statement for Apache Public License 2.0 to perl files, LICENSE, README HOT 2
- Fedora packaging issue HOT 23
- argon2_needs_rehash documentation $salt_length and $output_length parameters are backwards HOT 1
- Can't locate ExtUtils/Builder/Conf.pm in @INC 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 crypt-argon2.