• uservoid1@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    ·
    3 months ago

    How are they going to tackle heavy use of the C preprocessor?

    What about pointer arithmetic without decorating everything with “unsafe”? As the whole point is making the code safer.

    • pelya@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      3 months ago

      I guess it will translate the majority of the code which does not contain unsafe parts, and leave the pointer manipulation for manual rewrite.

    • lad@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 months ago

      you can just wrap a whole C code into a macro

      yeah, preprocessor is going to blow everything, I forgot how good it is. Maybe there’s a way by preprocessing and then leaving it as the code, but that wouldn’t be as useful and configurable

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    8
    ·
    edit-2
    3 months ago

    Can’t spell CVE without C 😉

    No wonder security aware environments want to get rid of the language. It’s a mess and a half (can’t forget the buffer overflow).

    However the suggestion of using AI kinda voids the proposal and erodes credibility.

    Anti Commercial-AI license

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      Can’t spell CVE without C. It’s a mess and a half (can’t forget the buffer overflow).

      I’m saving these, folks are gonna love them lmao.