Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    When I was a lot younger I wrote C string handling libraries that I used for my own projects or for work projects.

    Pianificato Fissato Bloccato Spostato Uncategorized
    3 Post 2 Autori 0 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • liw@toot.liw.fiL Questo utente è esterno a questo forum
      liw@toot.liw.fi
      ultima modifica di

      When I was a lot younger I wrote C string handling libraries that I used for my own projects or for work projects. I have Opinions™ about this. But it's no longer a battle I care to engage in. There is no way to win, without leaving C behind.

      liw@toot.liw.fiL 1 Risposta Ultima Risposta Rispondi Cita 0
      • liw@toot.liw.fiL Questo utente è esterno a questo forum
        liw@toot.liw.fi @liw@toot.liw.fi
        ultima modifica di

        C strings are a sequence of bytes ending in a zero byte. It's awkward, cumbersome, error prone & stupid in many ways, but in the early 1970s, having strings with a length field was expensive. When your biggest computer has about 9 KiB of RAM, spending two or four bytes to express the length of a string was hideously expensive. A one byte terminator was the cheapest option in terms of memory use.

        There's more resources available today, but entrenched fundamentals are quite difficult to change.

        gustavinobevilacqua@mastodon.cisti.orgG 1 Risposta Ultima Risposta Rispondi Cita 0
        • gustavinobevilacqua@mastodon.cisti.orgG Questo utente è esterno a questo forum
          gustavinobevilacqua@mastodon.cisti.org @liw@toot.liw.fi
          ultima modifica di

          @liw

          This remembers me of Bob Bemer, who in 1958 (!!!) warned about the Y2K problem.

          Link Preview Image
          Year 2000 problem - Wikipedia

          favicon

          (en.wikipedia.org)

          1 Risposta Ultima Risposta Rispondi Cita 0
          • Primo post
            Ultimo post