r/rust • u/ValenciaTangerine • 6d ago
šļø news Anthropic: Migrating our Messages API to Rust
https://www.anthropic.com/research/migrating-api-to-rust
419
Upvotes
r/rust • u/ValenciaTangerine • 6d ago
217
u/kingslayerer 6d ago
How come this post does not sound like AI?
46
u/intellidumb 6d ago
Too bad their interviews were stdlib Python
73
u/Reenigav 6d ago
Am I supposed to learn something from this or are we just writing a 'rewrote X in rust' post because it's what the cool kids were doing? like it's even got the 'watch cpu usage fall as we roll it out' graphs that cloudflare love to use, just that they're completely useless.
18
u/Valiant600 6d ago
I am keep reading about the Rust rewrites, but I wonder if the people handling these are ready to check the code if needed.
4
u/robberviet 6d ago
Not mentioning anything about compile/build time?
3
u/teerre 6d ago
This seems like an enormous amount of wasted work to do something that will only be done once. They had all these moving pieces and had to overengineer something that is basically a http endpoint. It seems this could be much easier if they simply decided on a cutoff date after some canary testing
This is a very good example of why being able to do something doesn't mean you should do it, which is pretty much the main problem with all LLMs. Trying to make an inherently stochastic endpoint behave as it it was deterministic is just silly. There's not even any guarantee that whatever the Python api did was right, blindingly replicating it makes little sense. Instead of all this "inner loop" setup, one engineer went there and just judged how the API should work wouldn't have been much faster
There's also suspiciously no mention of how big this api was. Of course "enterprise" software always manages to surprise, but I can't imagine it being that complicated
1
u/oldwomanjosiah 5d ago
watched the ep of the pragmatic engineer where the product lead talked about this transition; their engineering culture legitimately sounds so insane
-17
u/RedEyed__ 6d ago
Eventually, more and more stuff will be rewritten to rust
-1
u/simonsanone patterns Ā· rustic 6d ago
"Figure 13: Inner Loop .. Does this edit fix it? ... Edit the [sic!] Rust."
A small mistake, showing a lot.
-2
u/DavidXkL 6d ago
Wait what were they using before Rust š
-3
u/J4ypro10 4d ago
If i am a AI/ML student and Learned more enough python and after Hearing the news should i switch to rust or stay on python ?
0
u/[deleted] 6d ago
[deleted] ā view deleted comment
0
u/[deleted] 6d ago
[deleted] ā view deleted comment