Conversation

"multiple compilers for a single language is bad because they aren't fully compatible" yea and making the code works on multiple of them, the ones that might be used, is your job as a developer

1
0
0

anyone scream at web devs if they go "sorry we don't care about firefox, only chromium, they don't have perfect compatibility" but when it comes to literally any other codebase suddenly it's not expected anymore

like, webdevs write some utterly fucked up architecture, sure, and i'm not defending them for everything, but double standard much ?

1
0
0

@SRAZKVT people only care about portability when it affects their own usage, more at 11

it's not like it's not exactly like this with *anything*

1
0
0

@q66 yea but idk i was kinda hoping people were better, maybe that's hoping for too much though

2
0
0

@SRAZKVT

the number of times i've seen cases like someone whining that someone support their thing only to immediately deride someone else's case with "who cares noone even uses your shit"

0
0
0

@SRAZKVT @q66 i wonder if there is code only working on tcc and failing with gcc

2
0
0

@hypha @SRAZKVT stuff containing UB that doesn't get wrecked by having a too advanced optimizer? :p

1
0
0

@q66 @hypha i wouldn't consider that to be working code, but code that fails succesfully with tcc

1
0
0

@SRAZKVT @hypha you can probably make even those work with gcc/clang using -O0 and/or other shenanigans anyway ig

1
0
0

@q66 @SRAZKVT @hypha
This reminds me that gcc/clang will force enable --fast-math without warning f you enable -O3 which has issues for floating point maths.

1
0
0

@kirtai @SRAZKVT @hypha uh, no it won't? -ffast-math is never enabled unless explicitly, since it's not ieee754 compliant

under clang -O3 is identical to -O2 plus some optimizations with high compile time costs and low runtime benefits, under gcc -O3 is closer to clang -O2 but definitely no ffast-math either

1
0
0

@kirtai @SRAZKVT @hypha there is -Ofast which is basically -O3 plus non-compliant fp

1
0
0

@q66 @SRAZKVT @hypha
I had an article about this but now I can't find it.
Dammit. neocat_angry

1
0
0

@kirtai @SRAZKVT @hypha well if you read an article about it that was definitely misinfo

neither of the major compilers enable it for any normal opt levels

0
0
0
@hypha @SRAZKVT @q66 anything with a shebang line, which tcc ignores (to allow for scripting using tcc) but gcc does not
0
0
1