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
    Pleroma-tan (kirby@lab.nyanide.com)'s status on Sunday, 31-Dec-2023 19:26:12 JST Pleroma-tan Pleroma-tan
    int
    main(void)
    {
    int *n = malloc(sizeof(int));
    *n = 4;
    *n *= 2;
    *n -= 3;
    *n += 4;
    return 0;
    } // this shit leaks memory
    In conversation Sunday, 31-Dec-2023 19:26:12 JST from lab.nyanide.com permalink
    • Embed this notice
      Pleroma-tan (kirby@lab.nyanide.com)'s status on Sunday, 31-Dec-2023 19:31:42 JST Pleroma-tan Pleroma-tan
      in reply to
      • meso
      cc @meso this one will compile
      In conversation Sunday, 31-Dec-2023 19:31:42 JST permalink
    • Embed this notice
      valium (diazepam@clubcyberia.co)'s status on Sunday, 31-Dec-2023 19:54:25 JST valium valium
      in reply to

      @kirby you know you can just do

      #include <stdlib.h> static void free_(void** p) { free(*p); } int main(void) { __attribute__((cleanup(free_))) int* n = malloc(sizeof *n); // do rest of your shit }

      and get it autofreed

      In conversation Sunday, 31-Dec-2023 19:54:25 JST permalink
      Pleroma-tan likes this.
    • Embed this notice
      Pleroma-tan (kirby@lab.nyanide.com)'s status on Sunday, 31-Dec-2023 19:56:28 JST Pleroma-tan Pleroma-tan
      in reply to
      • valium
      @diazepam :0171:
      In conversation Sunday, 31-Dec-2023 19:56:28 JST permalink
    • Embed this notice
      Pleroma-tan (kirby@lab.nyanide.com)'s status on Sunday, 31-Dec-2023 20:17:37 JST Pleroma-tan Pleroma-tan
      in reply to
      • :ihavenomouth:
      @Inginsub do modern unixes have their kernels go out of their way to do that wtf
      In conversation Sunday, 31-Dec-2023 20:17:37 JST permalink
    • Embed this notice
      :ihavenomouth: (inginsub@clubcyberia.co)'s status on Sunday, 31-Dec-2023 20:17:38 JST :ihavenomouth: :ihavenomouth:
      in reply to
      @kirby not really, the memory is freed automatically when the program exits
      In conversation Sunday, 31-Dec-2023 20:17:38 JST permalink
      Pleroma-tan likes this.
    • Embed this notice
      Pleroma-tan (kirby@lab.nyanide.com)'s status on Sunday, 31-Dec-2023 20:19:34 JST Pleroma-tan Pleroma-tan
      in reply to
      • :ihavenomouth:
      @Inginsub I mean it makes sense but at the same time I was taught to put away my food like a good boy
      In conversation Sunday, 31-Dec-2023 20:19:34 JST permalink
    • Embed this notice
      Pleroma-tan (kirby@lab.nyanide.com)'s status on Sunday, 31-Dec-2023 20:20:26 JST Pleroma-tan Pleroma-tan
      in reply to
      • :ihavenomouth:
      @Inginsub free my memory cough
      In conversation Sunday, 31-Dec-2023 20:20:26 JST permalink
    • Embed this notice
      :ihavenomouth: (inginsub@clubcyberia.co)'s status on Sunday, 31-Dec-2023 20:22:59 JST :ihavenomouth: :ihavenomouth:
      in reply to
      @kirby most general purpose operating systems with memory management do. if you find yourself in real time land, you may not have such luxuries, but you would want to avoid memory allocation whenever possible too
      In conversation Sunday, 31-Dec-2023 20:22:59 JST permalink
      Pleroma-tan likes this.
    • Embed this notice
      :ihavenomouth: (inginsub@clubcyberia.co)'s status on Sunday, 31-Dec-2023 20:23:34 JST :ihavenomouth: :ihavenomouth:
      in reply to
      @kirby it is a good habit to have
      In conversation Sunday, 31-Dec-2023 20:23:34 JST permalink
      Pleroma-tan 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.