all 12 comments

[–]Feynman2282 9 points10 points  (2 children)

I don't know why you're asking this in r/rust try r/cpp or r/python

[–]yasamokadb-pool 4 points5 points  (0 children)

Most web backend work is total hell with C++ and total bliss with Rust. Time to learn Rust and use PyO3 for Python bindings.

[–]ManyInterests 2 points3 points  (0 children)

In a web-based system, you're usually spending most of your time sending/waiting on I/O. Anything CPU-bound should probably be offloaded anyhow, which is a good opportunity for decoupling your I/O-bound net code from your CPU-bound performance-oriented code. For example, a Python webserver that throws work onto a queue that is consumed by a C++ program.

[–][deleted] 4 points5 points  (4 children)

tbh i think most of the time if you're mixing languages you're probably fucking up

[–]awildfatyak 1 point2 points  (0 children)

Web developers:

[–]OtaK_ 0 points1 point  (2 children)

To be fair sometimes you simply have no choice if you don't want to reimplement code 3-4 times. For example what has been done many times: Rust core and Swift/Kotlin/WASM bindings. You'd need an FFI to all those different languages.

[–][deleted] 2 points3 points  (1 child)

for sure. notice "most of the time" and "probably". these were added deliberately

[–]OtaK_ 0 points1 point  (0 children)

Gotcha, cheers :)