Comments by "George Albany" (@Spartan322) on "ThePrimeTime" channel.

  1. 1
  2. 1
  3. 1
  4. 1
  5. 1
  6.  @skeetskeet9403  "well, why did the Android's Binder IPC being rewritten in Rust not lead to a change in performance if Rust is fundamentally slower?" And how was this benchmarked? By what metric have you actually tested this? Further still what techniques were used to attain that speed? Because using the Rust library and Rust infrastructure directly will cost you performance because it is more disconnected from the memory architecture then C++ inherently requiring techniques to recapture these systems which requires way more additional thought. Rust is more abstracted from the memory infrastructure and it absolutely does not believe in no cost abstractions (its memory architecture makes that quite clear) nor does it believe in not paying for what you don't use, it believes in declarations of safety over performance, all safety costs performance of some kind, I'm not even considering the compile-time performance cost, there is inherently a developer disconnect from memory in Rust compared to C++ as a result. Rust is inherently not capable to build as lean by default as C/C++ because of its emphasis on safety over everything else, that doesn't mean it can't be lean at all, that's not the issue. As demonstrated in this example, its requirement that many operations be "safe" absolutely will cost you in the marginal cases that require immense performance. And it doesn't make it remotely easy to escape this, and when you leave that pretty much every capacity to be safe is also lost resulting in those paths being even more bug ridden because Rust is not designed to be easy to intuitively understand once you remove the safety systems it has.
    1
  7. 1
  8. 1
  9. 1
  10. 1
  11. 1
  12. 1
  13. 1
  14. 1
  15. 1
  16. 1
  17. 1
  18. 1
  19. 1
  20. 1
  21. 1
  22. 1
  23. 1
  24. 1
  25. 1
  26. 1
  27. 1
  28. 1
  29. 1
  30. 1
  31. 1
  32. 1