Yet implemented in Rust. Why? If you want adoption, the best way to design something "for embedding" is to write it in C.
Yet implemented in Rust. Why? If you want adoption, the best way to design something "for embedding" is to write it in C.
Widespread adoption a la SQLite is not one of our goals.
Rust meets our goals just fine… and it also produces demonstrably more correct software than C, which is important to us. (Not to mention leveraging the borrow checker and data race avoidance to provide safe near-automatic parallelization, which is a neat trick that's not in C's quiver.)
I would rather build Mentat in Swift or JavaScript than in C.
> that _ends up calling into C_ anyway.
What specifically do you mean here?
Most non-trivial applications will at some point call out into code written in C, or compiled from some other language. So what?
(I still don't think that's enough to justify using C over Rust here, just that I understand you now.)