GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    anna (navi@social.vlhl.dev)'s status on Saturday, 05-Jul-2025 04:02:06 JST anna anna

    A string type for C in 2024. That proposed:

    struct { size_t size; char8_t data[/* size */]; };

    … with the char8_t array being required to be zero terminated for backwards compatibility. WG14 discussion for that paper felt that pending a size_t overhead per ‘modern string’ was too much, and it was wondered if a more compact length prefix could be designed.

    you… gotta be kidding me…

    In conversation about 2 days ago from social.vlhl.dev permalink
    • Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 05-Jul-2025 04:15:14 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to

      @navi Meanwhile what I typically have is either functions with (…, const char *data, size_t len) or a full blown string buffer struct like so:

      struct strbuf { size_t len; size_t cap; char *buf; };

      Also really weird to go "size_t too big" when that's exactly what strlen returns.

      In conversation about 2 days ago permalink
    • Embed this notice
      anna (navi@social.vlhl.dev)'s status on Saturday, 05-Jul-2025 08:19:57 JST anna anna
      in reply to
      • byte :ms_robot_headpats:
      @byte who needs more than 256 characters anyway!
      In conversation about 2 days ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      byte :ms_robot_headpats: (byte@awawa.club)'s status on Saturday, 05-Jul-2025 08:19:59 JST byte :ms_robot_headpats: byte :ms_robot_headpats:
      in reply to
      @navi uint8_t size
      In conversation about 2 days ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 05-Jul-2025 08:21:50 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      @navi @byte Well… PATH_MAX is at least 1024 on unixes.
      In conversation about 2 days ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 05-Jul-2025 08:23:43 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • byte :ms_robot_headpats:
      @navi @byte Finally no more Unix vs. Windows (vs. classic MacOS? :D)
      In conversation about 2 days ago permalink
    • Embed this notice
      anna (navi@social.vlhl.dev)'s status on Saturday, 05-Jul-2025 08:23:44 JST anna anna
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • byte :ms_robot_headpats:
      @lanodan @byte NAME_MAX is 255

      uhh...

      make paths linked lists of filenames now!
      In conversation about 2 days ago permalink
      Haelwenn /элвэн/ :triskell: likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.