Skip Navigation
Posts
3
Comments
4
Joined
3 yr. ago
  • That 80% is important. We need non-techies, because they remind us that there's more to life than just computers.

  • The real world is where things that matter happen. Life, love, nature. The Web is distracting and loud, but it's a big, flimsy illusion. So I don't think there is any chance that Metaverse ideas will take off.

    Regarding LLMs: good news! You can already run them at home. Check out KoboldAI. LLMs will become smaller as time goes on, too. There's lots of room for improvement in that field.

  • The C Programming Language @lemmy.ml
    pizza_is_yum @slrpnk.net

    Enforce same size for arrays at compile-time?

    Let's say I have two arrays that have related data:

     undefined
        
    const char *backend_short[] = { "oal", "pa", "sdl_m" };
    const char *backend_long[] = { "openal", "portaudio", "sdl_mixer" };
    
    
      

    Does C support a way to "assert" that these two arrays have the same size? And failing compilation if they are different? I want a safeguard in case I'm drunk one day and forget to keep these synchronized.

    Thanks in advance.

    EDIT: I found a solution. Here are some enlightening resources on the matter:

    DIY @slrpnk.net
    pizza_is_yum @slrpnk.net

    A webpage with a bunch of DIY solar and energy/water conservation projects

    zerowaste @slrpnk.net
    pizza_is_yum @slrpnk.net