Francisco
In fact, gcc is the one currently supporting more C++20 features
The trunk version supports almost every core feature
Mar!o
At least gcc and clang can vectorize code better than MSVC. I still have to use manual SSE/AVX that's annoying
Anonymous
Not really MSVC has some bugs and lack of some optimizations, afaik
Why do you need msvc when you have vscode + wsl2
Francisco
Why do you need msvc when you have vscode + wsl2
MSVC is the best for Windows by far. Don't even know what wsl2 is
Anonymous
Why do you need msvc when you have vscode + wsl2
I don't use VSCode as an IDE Visual Studio + Reshaper is my choice
Anonymous
Windows subsystem for Linux v2
I can just use GCC and clang
Anonymous
With vscode
Mar!o
Yeah even the big companies like Rockstar or EA Dice are using MSVC to compile their engines and games for Windows.
Francisco
Windows subsystem for Linux v2
Okay, now is clearer hahaha
Francisco
Yeah even the big companies like Rockstar or EA Dice are using MSVC to compile their engines and games for Windows.
MSVC as a whole is a great IDE (it even includes clang-tidy), if not the best
Mar!o
I don't use VSCode as an IDE Visual Studio + Reshaper is my choice
Me too ReSharper C++/C# edition is excellt who is using VS Code for C++? I'm only using it for Python 🤔
Mar!o
I do 😂 But with wsl .. Or on linux
Haha, that's an interesting idea 😂
Anonymous
Frankly I wont use windows but laptop works way better on it, coz proper drivers, better battery and sound output which matters a lot to me
Anonymous
With wsl2, I don't miss Linux much
Mar!o
I always use Linux, and I use Atom + gcc/clang + cmake
I feel like I'm the only one using Windows 😬
Anonymous
Except for bspwm
Mar!o
Does anybody know TempleOS?
Francisco
I feel like I'm the only one using Windows 😬
Not really. In fact, most developers use MSVC
Mar!o
Not really. In fact, most developers use MSVC
But there are so many haters on Windows or Microsoft I think compared to for example Apple they did well the last years. At least they do some open source like the C# roslyn compiler or dot net
Francisco
But there are so many haters on Windows or Microsoft I think compared to for example Apple they did well the last years. At least they do some open source like the C# roslyn compiler or dot net
Most computing engineers hate Windows because it doesn't give you as much freedom as Linux does. The terminal (shell) is such a powerful tool that every developer prefers to use it
Anonymous
They already use tests from clang afaik
Dima
Does anybody know TempleOS?
feels like I know it
Mar!o
Right👍👍
Yeah that's true
Anonymous
/notes
Shrey
/notes
Sathiya
#goodcodingmentality
Dima
why would you click that
Dima
silly
Esha
/notes
Deep
/learn
Deep
/learn
/learn
Anonymous
/learn
#learn
Dima
lol
MᏫᎻᎯᎷᎷᎬᎠ
This one is outdated
Esha
/learn
Anonymous
https://pastebin.com/JJ2bXGhz How to get the 3 terms after I put a number. For example, Intervals: 2 and 20 Prime numbers: 3, 5, 7
Anonymous
You meant 2 and 10, don't you?
No. If I put any intervals it would just output the next 3 terms of the lowest interval
Anonymous
Even if I put 2 and 50, it would just print "3, 5, 7"
Francisco
Then why do you need the upper bound?
Anonymous
Then why do you need the upper bound?
Just to make the user enter any numbers they want as an interval, but only pritns 3 terms
Karl
Hi, can anyone help me? I’m having a hard time running my code.
Karl
Karl
Anonymous
It doesn't make any sense
I dont know with my professor. He wants us to do it that way.
Francisco
I dont know with my professor. He wants us to do it that way.
Then your professor doesn't know what he's asking
Dima
lol just no words about ‘nowadays’ professors
Dima
they won’t teach you anything new
Francisco
they won’t teach you anything new
They do. It's just that some of them are so accomodate that they make no effort at all, as long as they get their paycheck
Anonymous
Tbh, Im not learning from him.. google and youtube are better
Anonymous
Whats your problem?
Francisco
Remember that 0! = 1 by definition
Francisco
I would initialize the first term of the partial sum and then calculate the rest
Anonymous
Anonymous
Im getting 0 as the output.
LastPahlawan
because it is bottom up approach
if only 1 function called a function once is ok.but what is i have 2 different function but calling same function.it is hard to manage it
Francisco
I've just found out that your code has undefined behaviour. Initialize output to 1;
Francisco
I'll give you a solution. It's the fully generalized version for C++20 (I did it for fun), so it may not fit your purpose: https://godbolt.org/z/5m263Z
Naveen Raj
Hello
olli
and does the right to left precedence holds true even for function call? fun(x++, ++x); Or is it still UB in C++17?
Left and right does apply in regards to the assignment operator [expr.ass]. For function calls in c++ C++17 it's no longer undefined behavior but it's unspecified instead. From [expr.call] "The initialization of a parameter, including every associated value computation and side effect, is indeterminately sequenced with respect to that of any other parameter."
Anonymous
Explanation pls
Oluwarotimi
Hello house, please I need a strong and comprehensive ebook on c++
ばか
何ですが?
olli
Explanation pls
Undefined or unspecific behavior
olli
何ですが?
English only
Anonymous
Just observe the output man
ばか
All right