Don’t be worse than Russia. Please fix.

  • 0 Posts
  • 158 Comments
Joined 1 year ago
cake
Cake day: August 26th, 2023

help-circle










  • uis@lemm.eetoProgrammer Humor@programming.devLanguages
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    2 months ago

    For me “The Critical Flaw” of rust is its compiler. And requirent of 12 GB of disk space to compile just the frontend of compiler. Even GCC will all frontends(C, C++, Ada, Fortran, Modula-2, JIT) requires less space.

    But joke is probably about “rewrite in rust” culture.





  • If n is smaller than the string length (as in: distance to first null byte) then you’re bound to have garbage in your return destination

    Wha? N is just maximum length of string to copy. Data after dst+n is unchanged.

    In retrospect null-terminated strings were a mistake, but so were many other things, at some point you just have to accept that there’s hysterical raisins everywhere.

    All hail length-prefixed strings!