prima
Tink
prima | Tink | |
---|---|---|
13 | 19 | |
275 | 13,457 | |
4.0% | - | |
9.9 | 9.9 | |
5 days ago | 22 days ago | |
Fortran | Java | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prima
-
Prima has got a Python interface
The developer of PRIMA here.
If you use method "cobyla" from scipy.optimize.minimize, then PRIMA already performs far better (in terms of the number of function evaluations). See the comparison at https://github.com/libprima/prima#improvements .
The bugs are indeed only a secondary reason: they can only be triggered under special situations. They may not affect your usage at all (when it does affect you, the consequence is catastrophophic).
-
Nagfor supports half-precision floating-point numbers
1. nagfor Release 7.1(Hanzomon) Build 7149 released on March 5, 2024, fixed all the bugs spotted, but introduced an ICE when compiling PRIMA ( http://www.libprima.net ). The ICE has nothing to do with half-precision real, because it occurs when PRIMA is configured to use single or double precision. It can be reproduced by
```
git clone https://github.com/libprima/prima.git && cd prima && git checkout ec42cb0 && cd fortran/examples/lincoa && make ntest
```
2. nagfor 7.2 released on 6 March, 2024 included neither the ICE nor the fixes for the bugs.
- PRIMA: Solving general nonlinear optimization problems without derivatives
-
What are you rewriting in rust?
My goal is to rewrite this library for derivative-free optimization: https://github.com/libprima/prima
-
SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
A native port is indeed planned. However, since we are talking about a project of about 10K lines of code, such a port will not be delivered very soon.
In fact, native implementations of PRIMA in Python, MATLAB, C++, Julia, and R will all be done in the future. See https://github.com/libprima/prima#other-languages . But it takes time. PRIMA has been a one-man project since it started three yearss ago. Community help is greatly needed.
Thanks.
-
Optimization Without Using Derivatives: the PRIMA Package, its Fortran Implementation, and Its Inclusion in SciPy - Announcements
GitHub repo of the project: https://github.com/libprima/prima
-
Optimization Without Derivatives: Prima Fortran Version and Inclusion in SciPy
It sounds like this was a difficult task. The motivation to fulfill Prof. Powell's request and help the community of derivative-free optimization users must have been strong. Congratulations on your achievement!
From the GitHub README:
> In the past years, while working on PRIMA, I have spotted a dozen of bugs in reputable Fortran compilers and two bugs in MATLAB. Each of them represents days of bitter debugging, which finally led to the conclusion that it was not a problem in my code but a flaw in the Fortran compilers or in MATLAB. From a very unusual angle, this reflects how intensive the coding has been.
> The bitterness behind this "fun" fact is exactly why I work on PRIMA: I hope that all the frustrations that I have experienced will not happen to any user of Powell's methods anymore. I hope I am the last one in the world to decode a maze of 244 GOTOs in 7939 lines of Fortran 77 code — I have been doing this for three years and I do not want anyone else to do it again.
https://github.com/libprima/prima#a-fun-fact
- Optimization Without Using Derivatives
Tink
-
“Please do not make it public” (Tencent’s Sogou Input Method)
> I wonder what people say when they find a bug despite you using standard crypto?
Not using TLS doesn't automatically mean you need to "roll your own crypto". They could have used a well documentend library such as Google Tink[1] instead of doing their own crypto.
[1] https://github.com/google/tink
-
What are you rewriting in rust?
I sort of rewrote google's tink project in rust. There is already a rust version by project oak but it didn't exactly jive.
-
PassManager
PassManager uses the Tink library for encryption, which provides state-of-the-art** security for your passwords. Tink uses industry-standard encryption algorithms like AES to ensure that your passwords are kept safe from prying eyes.
- Cryptographic Best Practices
-
Using Google Tink to sign JWTs with ECDSA
Note that in the example jwt refers to the Tink jwt package.
- What do you guys use for password hashing?
-
What's new in Jetpack Security Crypto Version 1.1.0-alpha04
What I can't tell is if the new version had any fixes related to the bug being discussed here
-
How do you handle encryption?
Even the slightest hiccup could leave me vulnerable. I don't want to roll my own encryption. I want to use something like tink (a secure crypto library by Google) but unfortunately they don't support node or Javascript (there's a library that was published 2 years ago).
-
Some help with cryptography?
I dont have an answer for you, but 2 resources that are worth checking out: https://developer.android.com/guide/topics/security/cryptography and https://developers.google.com/tink
-
Ask HN: Is there a portable encryption file format?
> Do C (or something where the mapping to C is known), and lots of languages have FFI libs where wrapping that is fairly trivial
That is an interesting idea, yet still a lot of work, sadly. I was hoping somebody had done the legwork already. I looked at Tink [1] and age [2] based on my co-worker's recommendation, but they all seem to have limited implementations in other languages.
[1] https://github.com/google/tink
[2] https://github.com/FiloSottile/age
What are some alternatives?
solid-docs - Cumulative documentation for SolidJS and related packages.
Jwks RSA
stdlib - Fortran Standard Library
Kalium - Java binding to the Networking and Cryptography (NaCl) library with the awesomeness of libsodium
pybobyqa - Python-based Derivative-Free Optimization with Bound Constraints
SSLContext-Kickstart - 🔐 A lightweight high level library for configuring a http client or server based on SSLContext or other properties such as TrustManager, KeyManager or Trusted Certificates to communicate over SSL TLS for one way authentication or two way authentication provided by the SSLFactory. Support for Java, Scala and Kotlin based clients with examples. Available client examples are: Apache HttpClient, OkHttp, Spring RestTemplate, Spring WebFlux WebClient Jetty and Netty, the old and the new JDK HttpClient, the old and the new Jersey Client, Google HttpClient, Unirest, Retrofit, Feign, Methanol, Vertx, Scala client Finagle, Featherbed, Dispatch Reboot, AsyncHttpClient, Sttp, Akka, Requests Scala, Http4s Blaze, Kotlin client Fuel, http4k Kohttp and Ktor. Also gRPC, WebSocket and ElasticSearch examples are included
Optimization-Codes-by-ChatGPT - numerical optimization subroutines in Fortran generated by ChatGPT-4
password4j - Java cryptographic library that supports Argon2, bcrypt, scrypt and PBKDF2 aimed to protect passwords in databases. Easy to use by design, highly customizable, secure and portable. All the implementations follow the standards and have been reviewed to perform better in the JVM.
inox2d - Native Rust reimplementation of Inochi2D
libsodium - A modern, portable, easy to use crypto library.
OfficerBreaker - OOXML password remover
SecurityBuilder - Fluent builders with typesafe API for the JCA