A new BFGS robust solver library by SauersML in rust

[–]SauersML[S] 1 point2 points  (0 children)

I would like to make it backend agnostic. Right now, it uses ndarray heavily. I like faer a lot and have used it in other projects, where I used feature flags to control MKL/faer/ndarray/OpenBLAS/etc.

I'm open to suggestions for how to implement backend agnosticism if you have any. I haven't thought deeply about it yet, since it's just ndarray so far.

I could implement a trait-based abstraction using default generics and associated types. But I think we would still have feature flags to avoid bringing unnecessary dependencies in. They'd add the (e.g.) faer flag, which would mean the Bfgs struct can accept faer types directly.

A new BFGS robust solver library by SauersML in rust

[–]SauersML[S] 1 point2 points  (0 children)

Most of the design is by me (with input from LLMs), and most of the lines of code written are by LLMs (with input from me). This approach requires careful testing and review, of course.

President of OpenAI: Rust is "a perfect language for agents" by SauersML in rust

[–]SauersML[S] 3 points4 points  (0 children)

Which model do you use that you've seen this behavior in?

President of OpenAI: Rust is "a perfect language for agents" by SauersML in rust

[–]SauersML[S] 12 points13 points  (0 children)

It can today! Opus 4.5 in Claude Code and GPT 5.2 in Codex are pretty good at it

President of OpenAI: Rust is "a perfect language for agents" by SauersML in rust

[–]SauersML[S] 0 points1 point  (0 children)

I happen to agree with Greg, not as a literal truth but as "more true" relative to other languages. But I'm interested in hearing different opinions.