#pragma — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pragma, aggregated by home.social.
-
#pragma STDC FENV_ACCESS ON
should not necessarily be an obstacle to vectorization.
-
#pragma STDC FENV_ACCESS ON
should not necessarily be an obstacle to vectorization.
-
#pragma STDC FENV_ACCESS ON
should not necessarily be an obstacle to vectorization.
-
#pragma STDC FENV_ACCESS ON
should not necessarily be an obstacle to vectorization.
-
@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. -
@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. -
@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. -
@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. -
@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. -
@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. -
@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. -
@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. -
@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. -
@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. -
-
-
-
```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
}
``` -
```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
}
``` -
```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
}
``` -
```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
}
``` -
-
-
-
-
Всем привет, очень крутая новость! Я поставил себе Visual Studio 2026! Ура! Теперь есть MSVC и #pragma !!! ☺️
-
Всем привет, очень крутая новость! Я поставил себе Visual Studio 2026! Ура! Теперь есть MSVC и #pragma !!! ☺️
-
clang's: #pragma float_control(precise,on) seems to be more broken than I remember.
Filed a bug. Low hopes.
-
clang's: #pragma float_control(precise,on) seems to be more broken than I remember.
Filed a bug. Low hopes.
-
clang's: #pragma float_control(precise,on) seems to be more broken than I remember.
Filed a bug. Low hopes.
-
clang's: #pragma float_control(precise,on) seems to be more broken than I remember.
Filed a bug. Low hopes.
-
clang's: #pragma float_control(precise,on) seems to be more broken than I remember.
Filed a bug. Low hopes.
-
```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)
``` -
```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)
``` -
```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)
``` -
-
-
-
-
-
@pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:
https://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.
-
@pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:
https://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.
-
@pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:
https://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.
-
@pinskia @amonakov Here's a godbolt link just for interest now. Looks like the issue started between 13.4.0 and 14.1.0:
https://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.
-
"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."
https://www.personfamiliar.com/p/ai-humanity-and-dr-manhattan-syndrome
-
"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."
https://www.personfamiliar.com/p/ai-humanity-and-dr-manhattan-syndrome
-
"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."
https://www.personfamiliar.com/p/ai-humanity-and-dr-manhattan-syndrome
-
"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."
https://www.personfamiliar.com/p/ai-humanity-and-dr-manhattan-syndrome
-
"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."
https://www.personfamiliar.com/p/ai-humanity-and-dr-manhattan-syndrome
-
-
-
-