#i will always swear by clang

1 messages · Page 1 of 1 (latest)

tiny ledge
empty pawn
#
#include <bits/stdc++.h>
using namespace std;

where

tiny ledge
#

clang comes w sqrt

#

clang prioritizes its version of sqrt

#

gcc also comes with sqrt

#

gcc does not prioritize its version of sqrt

#

I use clang im js hating

#

dragons are the best

#

i use clang bc its default on mac 👍

#

but I also have brew gcc just in case

hollow moon
#

Explain what

lapis charm
#

also cross compiling on clang

#

is soo easy

fair drift
#

Gcc better

#

It has less letters to type out

lapis charm
#

meanwhile w gcc i have to download half a gigabyte of files for each target

#

its ridiculous

fair drift
#

Not that it matters with make files but i dont use make files for small stuff

#

Less letters equals u get ur result faster

#

So i mean its not any different then a faster complier

#

By the time it takes for u to type out clang

hollow moon
#

Why is there a function called sqrt that just increments the number

fair drift
#

I also had this problem as well

#

And fixed it by having a new key next to my keyboard

#

That is just c

hollow moon
#

How often are you really typing clang and gcc

fair drift
#

Works for nvcc as well

hollow moon
#

Just use cmake and an ide

fair drift
#

No its not

#

Clang is not real

#

Gcc is

#

A real word

#

In another language prob

tiny ledge
hollow moon
#

It’s an ODR violation so UB

tiny ledge
#

why should it be when I'm not including cmath or anything or using namespace std

#

according to the c++ standard, this should not happen

#

i believe that clang is just violating the standard a little here which is kinda ok bc why would you do that anyway

hollow moon
#

It’s non standard but isn’t in violation of the standard

#

Maybe iostream includes some of those functions too idk

#

But either way if ur code could break by including another standard header file it’s probably not very good code

tiny ledge
#

ah ic I was thinking of python legb lol

hollow moon
#

Can’t catch a break 😔