|
ctps: yesterday I fixed a race condition by reordering members in a c++ class. initializing the first member started a thread that touched the other members. that thread raced with with the initialization of the other members. solution: make the thread member the last member of the class. C++ is a really dumb language sometimes.
|
# ? Jan 16, 2020 10:52 |
|
|
# ? Apr 28, 2024 13:56 |
|
turns out the worst race condition was the human race!
|
# ? Jan 16, 2020 13:51 |
|
Pile Of Garbage posted:turns out the worst race condition was the human race!
|
# ? Jan 16, 2020 14:17 |
|
heres a bad idea: https://ctan.org/pkg/texplate
|
# ? Jan 16, 2020 16:31 |
|
my tip for avoiding latex boilerplate: put all your preamble poo poo in a bunch of .sty files in the local tex tree like mytables.sty, myfonts.sty, etc and then you can include only the ones you need for a given document! and it will be all clean and neat! wow!
|
# ? Jan 16, 2020 16:34 |
|
so if i were to write a c++ linux software how hosed would i be if i used visual studio? definitely not going to bang none of that in a terminal
|
# ? Jan 16, 2020 17:03 |
|
Use vim op
|
# ? Jan 16, 2020 17:05 |
|
do you mean visual studio or visual studio code? because i dont know how visual studio could possibly work. if you really want a decent c++ ide on linux just pay the $89 or whatever it is for CLion https://www.jetbrains.com/clion/
|
# ? Jan 16, 2020 17:05 |
|
CRIP EATIN BREAD posted:do you mean visual studio or visual studio code? because i dont know how visual studio could possibly work. https://devblogs.microsoft.com/cppblog/linux-development-with-c-in-visual-studio/ its a thing
|
# ? Jan 16, 2020 17:08 |
|
matti posted:https://devblogs.microsoft.com/cppblog/linux-development-with-c-in-visual-studio/ dont
|
# ? Jan 16, 2020 17:09 |
|
CRIP EATIN BREAD posted:do you mean visual studio or visual studio code? because i dont know how visual studio could possibly work. If you are like me and use 2 Jetbrains IDE's (Pycharm and CLion) then the everything pack is the best deal.
|
# ? Jan 16, 2020 17:12 |
|
yeah clion in actual non WSL linux is the alternative, i've heard its quite good
|
# ? Jan 16, 2020 17:19 |
|
WSL2 (currently insider ring only) seems p good
|
# ? Jan 16, 2020 17:21 |
|
Is clion pronounced like Cleon from The Warriors?
|
# ? Jan 16, 2020 17:26 |
|
more like clioff
|
# ? Jan 16, 2020 17:33 |
|
CPColin posted:Is clion pronounced like Cleon from The Warriors? like the fat whiskered animal
|
# ? Jan 16, 2020 17:45 |
|
|
# ? Jan 16, 2020 17:49 |
|
gonadic io posted:WSL2 (currently insider ring only) seems p good It's extremely good. Doesn't have the file system fuckery that comes with wsl 1, and having everything running on top of an actual kernel is very cool. Oh, and also much better vscode integration.
|
# ? Jan 16, 2020 18:34 |
|
Finster Dexter posted:It's extremely good. Doesn't have the file system fuckery that comes with wsl 1, and having everything running on top of an actual kernel is very cool. Oh, and also much better vscode integration. So WSL is just a VM.
|
# ? Jan 16, 2020 18:35 |
|
CPColin posted:
speaking of, andy reid at 13:
|
# ? Jan 16, 2020 18:36 |
|
matti posted:yeah clion in actual non WSL linux is the alternative, i've heard its quite good clion is good. better than msvc now imo (particularly when it comes to refactoring tools, there is absolutely no comparison) and getting better with every release, as opposed to visual studio which seems to be getting worse every year don't write software in msvc if you want someone to be able to build it with clang/gcc or you will spend hours fixing warnings and errors because microsoft's compiler still lets you get away with things that clang and gcc don't The_Franz fucked around with this message at 18:42 on Jan 16, 2020 |
# ? Jan 16, 2020 18:39 |
|
ratbert90 posted:So WSL is just a VM.
|
# ? Jan 16, 2020 18:50 |
|
The_Franz posted:clion is good. better than msvc now imo (particularly when it comes to refactoring tools, there is absolutely no comparison) and getting better with every release, as opposed to visual studio which seems to be getting worse every year i assume this is c++ specific advise since in c _GNUC_ is far more permissive and flexible
|
# ? Jan 16, 2020 18:59 |
|
microsoft's compiler doesn't even support all of c99 yet. gcc/clang have flags that will prevent you from doing dumb things even in C
|
# ? Jan 16, 2020 19:08 |
|
cl.exe c99 has been fine for good couple years now at least
|
# ? Jan 16, 2020 19:11 |
|
matti posted:cl.exe c99 has been fine for good couple years now at least Only 19 years late!
|
# ? Jan 16, 2020 19:12 |
|
just use clion if you want an ide for c++ on linux. dont loving bother with ms poo poo at all.
|
# ? Jan 16, 2020 19:14 |
|
no don't worry i asked i'm taking the advise
|
# ? Jan 16, 2020 19:16 |
|
matti posted:cl.exe c99 has been fine for good couple years now at least they supported just enough to build projects like ffmpeg, it's still not 100% compliant and it only took them until 2015 or so to give them credit, they are much better about keeping up with new c++ language standards now. previously msvc being many years behind the spec was the norm. clang supports windows natively now though, so why bother with anything else? CRIP EATIN BREAD posted:just use clion if you want an ide for c++
|
# ? Jan 16, 2020 19:21 |
|
well yeah, but i figured people would be more apt to believe me if i didnt just hand wave all the ms stuff. i just recently bought a personal clion license for projects and it's so much nicer than dealing with anything else, really. plus it makes cmake much easier to use.
|
# ? Jan 16, 2020 20:13 |
|
CPColin posted:Is clion pronounced like Cleon from The Warriors? it's pronounced cly-on
|
# ? Jan 16, 2020 21:31 |
|
Since the "C" stands for "C", it should be "sly-on"
|
# ? Jan 16, 2020 22:09 |
|
CRIP EATIN BREAD posted:speaking of, andy reid at 13: i feel this so hard. I skipped from 7th grade straight to high school but I was already 6 feet and 200 pounds at age 12 so nobody knew I was younger and a lot of people picked fights with me to prove how tough they were.
|
# ? Jan 16, 2020 22:27 |
|
was it a gland/hormone thing? i can't imagine having that much physical strength at that age. were you into sports? i feel like you would feel like superman/woman up until probably college in athletics. i'm guessing andy reid did, at least.
|
# ? Jan 16, 2020 22:35 |
|
debugging distributed systems is hard but have you ever tried counting irony parity and inferring the original content of some alluded-to weak take from just a lovely self-satisfied vague twitter thread
|
# ? Jan 16, 2020 23:32 |
|
Sapozhnik posted:debugging distributed systems is hard but have you ever tried counting irony parity and inferring the original content of some alluded-to weak take from just a lovely self-satisfied vague twitter thread what are you implying
|
# ? Jan 17, 2020 00:48 |
|
CRIP EATIN BREAD posted:was it a gland/hormone thing? i can't imagine having that much physical strength at that age. Nah just genetically really big I guess.
|
# ? Jan 17, 2020 00:49 |
|
vscode on linux is a pretty good experience
|
# ? Jan 17, 2020 01:19 |
|
I guess if youre writing p langs
|
# ? Jan 17, 2020 01:30 |
|
|
# ? Apr 28, 2024 13:56 |
|
cee plus plus, motherfucker. slap my cmake/ninja calls straight into tasks.json. 420 export compile commands every day.
|
# ? Jan 17, 2020 01:40 |