home.social

#pragma — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pragma, aggregated by home.social.

fetched live
  1. #pragma STDC FENV_ACCESS ON

    should not necessarily be an obstacle to vectorization.

  2. #pragma STDC FENV_ACCESS ON

    should not necessarily be an obstacle to vectorization.

  3. #pragma STDC FENV_ACCESS ON

    should not necessarily be an obstacle to vectorization.

  4. #pragma STDC FENV_ACCESS ON

    should not necessarily be an obstacle to vectorization.

  5. @petrillic
    I'm fine with using non-standard language extensions where there is a strong reason for it, though I flag it as NONSTANDARD in the code.
    IMO, #pragma once is not in that category.

  6. @petrillic
    I'm fine with using non-standard language extensions where there is a strong reason for it, though I flag it as NONSTANDARD in the code.
    IMO, #pragma once is not in that category.

  7. @petrillic
    I'm fine with using non-standard language extensions where there is a strong reason for it, though I flag it as NONSTANDARD in the code.
    IMO, #pragma once is not in that category.

  8. @petrillic
    I'm fine with using non-standard language extensions where there is a strong reason for it, though I flag it as NONSTANDARD in the code.
    IMO, #pragma once is not in that category.

  9. @petrillic
    I'm fine with using non-standard language extensions where there is a strong reason for it, though I flag it as NONSTANDARD in the code.
    IMO, #pragma once is not in that category.

  10. @petrillic
    A C or C++ #pragma is not supposed to alter the semantics of the file it's contained in, yet #pragma once very much does.
    The usual preprocessor header guards are definitely a disgusting hack, but they work UNIVERSALLY. The people who aren't happy about that (including me) need to beat harder on the C and C++ committees for a REAL fix.

  11. @petrillic
    A C or C++ #pragma is not supposed to alter the semantics of the file it's contained in, yet #pragma once very much does.
    The usual preprocessor header guards are definitely a disgusting hack, but they work UNIVERSALLY. The people who aren't happy about that (including me) need to beat harder on the C and C++ committees for a REAL fix.

  12. @petrillic
    A C or C++ #pragma is not supposed to alter the semantics of the file it's contained in, yet #pragma once very much does.
    The usual preprocessor header guards are definitely a disgusting hack, but they work UNIVERSALLY. The people who aren't happy about that (including me) need to beat harder on the C and C++ committees for a REAL fix.

  13. @petrillic
    A C or C++ #pragma is not supposed to alter the semantics of the file it's contained in, yet #pragma once very much does.
    The usual preprocessor header guards are definitely a disgusting hack, but they work UNIVERSALLY. The people who aren't happy about that (including me) need to beat harder on the C and C++ committees for a REAL fix.

  14. @petrillic
    A C or C++ #pragma is not supposed to alter the semantics of the file it's contained in, yet #pragma once very much does.
    The usual preprocessor header guards are definitely a disgusting hack, but they work UNIVERSALLY. The people who aren't happy about that (including me) need to beat harder on the C and C++ committees for a REAL fix.

  15. ```c
    #pragma region Maps.
    static inline void mapTextures() {
    #define M(p_texture, p_path) g_texturePaths[p_texture] = p_path; g_texturePathLengths[p_texture] = sizeof(p_path)

    M(TEXTURE_MISSING, "missing.png");
    M(TEXTURE_BLACK, "black.png");
    M(TEXTURE_WHITE, "white.png");
    M(TEXTURE_GRID, "grid.png");

    #undef M
    }
    ```

  16. ```c
    #pragma region Maps.
    static inline void mapTextures() {
    #define M(p_texture, p_path) g_texturePaths[p_texture] = p_path; g_texturePathLengths[p_texture] = sizeof(p_path)

    M(TEXTURE_MISSING, "missing.png");
    M(TEXTURE_BLACK, "black.png");
    M(TEXTURE_WHITE, "white.png");
    M(TEXTURE_GRID, "grid.png");

    #undef M
    }
    ```

  17. ```c
    #pragma region Maps.
    static inline void mapTextures() {
    #define M(p_texture, p_path) g_texturePaths[p_texture] = p_path; g_texturePathLengths[p_texture] = sizeof(p_path)

    M(TEXTURE_MISSING, "missing.png");
    M(TEXTURE_BLACK, "black.png");
    M(TEXTURE_WHITE, "white.png");
    M(TEXTURE_GRID, "grid.png");

    #undef M
    }
    ```

  18. ```c
    #pragma region Maps.
    static inline void mapTextures() {
    #define M(p_texture, p_path) g_texturePaths[p_texture] = p_path; g_texturePathLengths[p_texture] = sizeof(p_path)

    M(TEXTURE_MISSING, "missing.png");
    M(TEXTURE_BLACK, "black.png");
    M(TEXTURE_WHITE, "white.png");
    M(TEXTURE_GRID, "grid.png");

    #undef M
    }
    ```

  19. Also:

    #pragma once

    Is so much cleaner than guard macros.
    #c #cpp

  20. Also:

    #pragma once

    Is so much cleaner than guard macros.
    #c #cpp

  21. Also:

    once

    Is so much cleaner than guard macros.

  22. Also:

    #pragma once

    Is so much cleaner than guard macros.
    #c #cpp

  23. Also:

    #pragma once

    Is so much cleaner than guard macros.
    #c #cpp

  24. Всем привет, очень крутая новость! Я поставил себе Visual Studio 2026! Ура! Теперь есть MSVC и #pragma !!! ☺️

  25. Всем привет, очень крутая новость! Я поставил себе Visual Studio 2026! Ура! Теперь есть MSVC и #pragma !!! ☺️

  26. clang's: #pragma float_control(precise,on) seems to be more broken than I remember.

    Filed a bug. Low hopes.

    godbolt.org/z/4z3PMEePc

  27. clang's: #pragma float_control(precise,on) seems to be more broken than I remember.

    Filed a bug. Low hopes.

    godbolt.org/z/4z3PMEePc

  28. clang's: #pragma float_control(precise,on) seems to be more broken than I remember.

    Filed a bug. Low hopes.

    godbolt.org/z/4z3PMEePc

  29. clang's: #pragma float_control(precise,on) seems to be more broken than I remember.

    Filed a bug. Low hopes.

    godbolt.org/z/4z3PMEePc

  30. clang's: #pragma float_control(precise,on) seems to be more broken than I remember.

    Filed a bug. Low hopes.

    godbolt.org/z/4z3PMEePc

  31. ```h
    #pragma once

    // Format: [Tag] Pi.c:0001, calc(): Log-Text!
    #define LOG_PREFIX "[%3s] %12s:%04d, %16s(): "

    #define newline() \
    printf(LOG_PREFIX "\n", "...", __FILE_NAME__, __LINE__, __func__) // ; putchar('\n')

    #define puti(p_line) \
    printf(LOG_PREFIX "%s\n", "inf", __FILE_NAME__, __LINE__, __func__, p_line)

    #define pute(p_line) \
    fprintf(stderr, LOG_PREFIX "%s\n", "ERR", __FILE_NAME__, __LINE__, __func__, p_line)
    ```

  32. ```h
    #pragma once

    // Format: [Tag] Pi.c:0001, calc(): Log-Text!
    #define LOG_PREFIX "[%3s] %12s:%04d, %16s(): "

    #define newline() \
    printf(LOG_PREFIX "\n", "...", __FILE_NAME__, __LINE__, __func__) // ; putchar('\n')

    #define puti(p_line) \
    printf(LOG_PREFIX "%s\n", "inf", __FILE_NAME__, __LINE__, __func__, p_line)

    #define pute(p_line) \
    fprintf(stderr, LOG_PREFIX "%s\n", "ERR", __FILE_NAME__, __LINE__, __func__, p_line)
    ```

  33. ```h
    #pragma once

    // Format: [Tag] Pi.c:0001, calc(): Log-Text!
    #define LOG_PREFIX "[%3s] %12s:%04d, %16s(): "

    #define newline() \
    printf(LOG_PREFIX "\n", "...", __FILE_NAME__, __LINE__, __func__) // ; putchar('\n')

    #define puti(p_line) \
    printf(LOG_PREFIX "%s\n", "inf", __FILE_NAME__, __LINE__, __func__, p_line)

    #define pute(p_line) \
    fprintf(stderr, LOG_PREFIX "%s\n", "ERR", __FILE_NAME__, __LINE__, __func__, p_line)
    ```

  34. @pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:

    godbolt.org/z/jeMcc63rr

    -O2 and -funroll-loops is sufficient to trigger the issue. Additionally, un-commenting the #pragma disabling the optimisation for the specific loop also resolves the issue.

  35. @pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:

    godbolt.org/z/jeMcc63rr

    -O2 and -funroll-loops is sufficient to trigger the issue. Additionally, un-commenting the #pragma disabling the optimisation for the specific loop also resolves the issue.

  36. @pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:

    godbolt.org/z/jeMcc63rr

    -O2 and -funroll-loops is sufficient to trigger the issue. Additionally, un-commenting the #pragma disabling the optimisation for the specific loop also resolves the issue.

  37. @pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:

    godbolt.org/z/jeMcc63rr

    -O2 and -funroll-loops is sufficient to trigger the issue. Additionally, un-commenting the #pragma disabling the optimisation for the specific loop also resolves the issue.

  38. "It's like a doctor hearing a patient who says, 'My knee hurts,' who then delivers a lecture on the elegance of the musculoskeletal system. The patient doesn't need you to appreciate the beauty of human biology. They need you to look at their damn knee."

    #ai #humanity #pragma

    personfamiliar.com/p/ai-humani

  39. "It's like a doctor hearing a patient who says, 'My knee hurts,' who then delivers a lecture on the elegance of the musculoskeletal system. The patient doesn't need you to appreciate the beauty of human biology. They need you to look at their damn knee."

    #ai #humanity #pragma

    personfamiliar.com/p/ai-humani

  40. "It's like a doctor hearing a patient who says, 'My knee hurts,' who then delivers a lecture on the elegance of the musculoskeletal system. The patient doesn't need you to appreciate the beauty of human biology. They need you to look at their damn knee."

    personfamiliar.com/p/ai-humani

  41. "It's like a doctor hearing a patient who says, 'My knee hurts,' who then delivers a lecture on the elegance of the musculoskeletal system. The patient doesn't need you to appreciate the beauty of human biology. They need you to look at their damn knee."

    #ai #humanity #pragma

    personfamiliar.com/p/ai-humani

  42. "It's like a doctor hearing a patient who says, 'My knee hurts,' who then delivers a lecture on the elegance of the musculoskeletal system. The patient doesn't need you to appreciate the beauty of human biology. They need you to look at their damn knee."

    #ai #humanity #pragma

    personfamiliar.com/p/ai-humani