Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "clang"
Hey guys. I have a question.
What Linux tools do you use daily?
Here is my list:
Ssh, scp, netcat, neovim, Gradle, frcmake, gcc, clang-format, python3, pip, wget, git, hub, code, gitkracken, wine, gqrx, gnuradio, rtl_tcp, aircrack_ng, ftp, chromium, crostini, crouton, chromebrew.
I'm probably missing a few. I am curious to see what you guys use.13
Here is another rather big example of how C++ is WAY slower than assembler (picture)
Sure - std::copy is convenient
but asm is just way faster.
This code should be compatible with EVERY x86_64 CPU.
I even do duffs device without having the loop:
the loop happens in the rep opcode which allows for prefetching (meaning that it doesnt destroy the prefetch queue and can even allow for preprocessing).
BTW: for those who commented on my comment porn last time: I made sure to satisfy your cravings ;-)
To those who can't make sense of my command line:
To those who tell me to call clang with -o<something>:
1) clang removes the call to copy on o3 or o2
2) the result isnt better in o1 (well... one second but that might be due to so many other things, and even if... one second isn't that much)25
Added to all of this you get the optimization of the llvm optimizer.18
Like wtf ?? What wrong with you clang ?
Android-base/unique_fd.h not found oh ok.
Well its there.
Just changed it for another file and it worked.
I used full path to the file and it worked.
So how the fuck cant you find the file when its surely there ????????7
compile with gcc, ./a.out: "Segmentation fault (core dumped)"
compile with clang, ./a.out: runs and fails.
compile with cc, ./a.out: Alternated between "Error: Too many arguments" and "Segmentation fault"...
ffs I'm done for the week I guess.
The problem is not that it fails, the problem is that it alternates because of time of compilation, power consumption, random blody oracles or the phase of the moon in a leap year on a Friday the 13th. God.Please.Send.~Nudes~. Help.12
Everyone here who complains about slow Android studio obviously never tried to compile LLVM/Clang from source.3
Slipping a cheeky '#define true (rand() > 5)' at the top of your code because you're edgy and like to mix things up2
what the fuck I can't edit the rant after 5 minutes I am fucking posting a new rant which have that last rant ...Why they update the fucking x code in every fucking 15 days . Well some libraries are deprecated oh cool I can use my shit as an object. And why third party libraries don't provide some good documentation of their sdk's . What the fuck is that and I will personally kill auto layout by entering in the mac myself. What is the use of that fucking debugging tool if I know don't the crap of my code that in which class I have done something terribly wrong what the fuck . Oh cool I am having that clang error and I don't know how to wipe my ass. And please fucking don't tell me to use xib code in xcode for my project if there will be 600 screens I will still fucking use storyboard for that. I don't fuck with xib files do you hear me. And fucking stackoverflow ..what the fuck is wrong if I forget an single comma during posting a question ..what the fuck..and you know what the real feeling is when I post a issue on stackoverflow and I got nothing from them expect some minus points...and then the holy fucking coder inside me tells me to solve that fucking problem and I feel like having dope bitch. FUCCKKKK..5
Unreal engine on Linux is pain to fucking build.
I have issue building it because i have clang 10 and last supported one is 8. Well even arch cant fucking build it. I think i might just create a VM and share the source to it and build it in there and grab the executable10
Clang? I don't fucking understand... what are you trying to tell me?
Couldn't you just compile like GCC? Fuck you T_T6
Don't try to compile Swift from scratch expecting to use your computer for anything else at the same time. CPU 999%6
Just spent 3 hours trying to understand why my compiler isn`t even trying to compile my code until i found out it was a known clang bug.
>compiling Linux 3DS' zImage overnight
>start compiler at 4PM
>11:54PM -- compiling clang: <file>: conpiler: *internal compiler error*: segmentation fault
okay, well, maybe if we continue make from there it'll fix itself? Might've run out of RAM...
>5 seconds later, segfault again
I'm going to make a template project for Cpp. And one of my questions is how to use Travis ci to test things with clang 6, on every platform. I was thinking about using a custom docker, but I didn't find a project using this. Is there a problem with it?5
When you jokingly suggest overriding MAX_INT32 to be something 10x larger to accommodate larger trades, then come back to numerous messages about how "the number wouldn't fit into a signed int anymore" and "you can't just do that wtf", you really start to question who you're talking to 😂😂
Well fuck you too clang
PS: If you know whats wrong, please help me... I'm going insane over this.4
well... I really dont know how to explain this error
in the directory where I have my testing.cpp file, I type "clang testing.cpp -o testing"
my result is just supposed to be hello world and I am getting this.
note: clang is my c++ compiler since for some divine reason I can't install GCC on termux.
I checked the github and no one gives this complaint. I honestly can't read that error code, I just want it to go away
I hate coding on android, it's always a sorry case
I could have been a farmer or a teacher or a bus driver or an alien but I chose coding. I am really tired
I took a very long screenshot6
So I did some testing with WebAssembly to see how it works in the most recent version and without Emscripten. I installed CMake and Visual Studio Community 2015 and compiled Binaryen, LLVM and Clang for a few hours (had to do it multiple times because I used the wrong version and forgot a compile flag), ended up with over 10 GB less free space on my laptop.
All that to compile a < 1kb C file to < 1kb WASM code.
At least it works for now and can natively run in (some) browsers.2
Guess who found a Clang bug old of at least one year? :D
I just need to recode the most complex class of my code, thanks Clang, I love you <3.
Any recommendations for a C/C++ IDE for Linux.
I really like PyCharm and IntelliJ for python and java but can't afford to splash out on CLion for C++.
Eclipse is completely out, I have too much of that at work and it is a total pain.
My current solution would be vim and clang but I'd like something more IDE like.10
my old 2011 MacBook with all my childhood memories (i had it when i was 8, im 14 now) just died, can't access the hard drive and it has like 80 bad sectors, running Kali off a USB stick to see if i can salvage any data but i have to install apfs-linux to read apple's file system. currently stuck on installing clang for like 15 minutes3
Fuck VS! C# sucks! F# sucks!
I found no way to debug C # and F # without VS(At least the official did not give a plan)! And I can only use macOS now.
After downloading VS for mac, I found that it installed mono automatically! And there is not even a button to open the folder!
Why do you have to wrap a class outside the main function? And their pointers are not flexible at all! Also, unlike C, Go, and Rust, the compiled files are binary files. WTF does DotNet give me? debug directories and .dll files!
I originally planned to learn DotNet core for the convenience of using Azure.
What the hell is wrong with the CLang standard libraries? Whose crazy idea was it to put memset and memcpy in the string library?
my colleague claims that clang format isn't working in xcode and therefore he can't properly format
i suspect that he is just too lazy to set it up ..
anyone using clangformat in xcode?6
Do only developers have to do such tasks like Cinderella sorting out the lentils from the ashes?
* who had to program against the undocumented closed, ever changing API from Exchange Server, supporting over a decade old versions
* who had to compile a c++11 compatible clang or gcc on some sick old OS and almost got it working with compiling a fresher gcc with one that got stuck in one of the build stages.
Spend like 3 weeks in mem-checking with valgrind and ASAN, because there seemed to be some leaks. So painful and scary. You loose all confidence in your software, the checking tool, your own sanity.
Some spurious result prevailed, could only move it around. Boss could not reproduce the problem on his machine; Ubuntu 18 with GCC 7, mine was Debian 9 with GCC 6, so I tried older Ubuntu with GCC 5. Also no problem.
Fuck it, I'm switching to clang.