neb
What's wrong with vim or emacs?
Sourabh
?
Telegram not allowing to send rapid messages.
Anonymous
Sourabh
Yeah, that's true.
neb
None of them are IDEs
Right. So recommend VSCodium rather than VSCode - why not?
Anonymous
Define an IDE I think it's more subjective to the feature one needs. You can automate the compilation, debug through gdb, and a lot more. Vim is a lot extensible with Linters, autocompletions. I don't see why it "lacks" according to you.
Anonymous
I'm talking about custom keybindings. And things such as compile on save I haven't had a need of a profiler yet.
Anonymous
And yeah, you have to install and configure it manually IDE works right out of the box in most cases with most needed features
Does that not means you're free to finetune it as per your needs. Why keep bloated features which you're likely never gonna use. If you know what you need, you can add it right there in vim.
Anonymous
I don't lack any space in my SSD or RAM, I have enough CPU power Why would I sacrifice a gigabyte of SSD to get a console text editor which is useless if I do not configure it instead of having full-featured IDE which works right out of the box?
Anonymous
As I said, it's subjective. If you don't like it, doesn't means it's not worthy for the others. Morden IDE have all, even vim shortcuts but the vimscript ;)
Anonymous
As I said, it's subjective. If you don't like it, doesn't means it's not worthy for the others. Morden IDE have all, even vim shortcuts but the vimscript ;)
Does Vim have feature called "Go to Definition/Declaration" and if yes, can it work properly with chromium-large like code bases? I do not think so
Anonymous
I can't call any large company that uses code editor like Vim instead of IDE with C/C++
Anonymous
Does Vim have feature called "Go to Definition/Declaration" and if yes, can it work properly with chromium-large like code bases? I do not think so
Yes, there are plugins for that And yes you can. Vim has a minimal runtime and it has buffer support as well.
Anonymous
I can't call any large company that uses code editor like Vim instead of IDE with C/C++
Cause they don't want people to mess up with the architecture. Most of the companies have a set of build tools and said idioms which the engineers are "supposed" to follow.
Indolent
Need help debug a 20 line code for a test case.
Anonymous
The hard thing about vim is, it's a pain to teach someone who isn't familiar with it. Why teach them when you can give em an easy to use editor? Saves money, yeah.
Anonymous
Well, it is offtopic rn
Anonymous
The topic is closed
Sourabh
#свободуНавальному
Because type void* can't be explicitly cast by compiler
It's exceptional situation? I worry about that i will can not use some features of c if will use it with c++. Due to c++ compiler forces. Do you could tell is it so or not?
#свободуНавальному
#свободуНавальному
No you can compile C with a C++ compiler...
I can use c keywords like auto?
Dima
why
Dima
repositories are boring
Mar!o
I can use c keywords like auto?
auto has a other meaning in C++: it is no storage class it is used for automatic types like var in C# or Java. Also register is not available
Mar!o
auto in C++ is more useful than C's auto lol
#свободуНавальному
Understod. Hence, i can't extern pure c. Only subset "c" for c++
Mar!o
Kinda. Why would you like to use C in C++?
Mar!o
But you can use .c files with extern "C" linkage from C++
#свободуНавальному
And i can use pure c? For example keyword "auto" of c
#свободуНавальному
Kinda. Why would you like to use C in C++?
I wanna use c, but i need OO sometime. Wanna use c++ like helper lang. But seems that i can't use pure c with c++. Not sure. Maybe it is possible?
#свободуНавальному
Only in .c files
Of course. I mean, u sure that i can use pure c in c++ if will do extern "C"?
Parra
removes the name mangling and follows the c abi specification
Parra
even using extern "C" you can mix c/c++ inside of the function
Parra
if you want pure c compile with std=c99 or c11
#свободуНавальному
if you want pure c compile with std=c99 or c11
And i can use pure c99 inside modern c++ (for example c++20)? I hope you understand what i mean under "pure c". If yes - how? With help "extern", right?
Mar!o
😡
Parra
you can also do the opposite meanwhile you expose a wrapper around c++ files with extern "C"
#свободуНавальному
you could have a .h and .c, compile it with std=c11 and use it in a cpp file
How i can use it in cpp file? After compile .c files
Mar!o
#свободуНавальному
😡
Don't be angry. I just find info
Parra
How i can use it in cpp file? After compile .c files
you could use the .o files directly
Parra
or build it as a library, i.e .so or .a, and link against it
Parra
for example, nodejs is mostly written in c++ and it uses libuv which is coded in c
#свободуНавальному
you could use the .o files directly
How? I was try compile c file in .o file and include it in .cpp file. But i got infinite loop of include (i don't know how it work)
#свободуНавальному
man gcc
I mean, how i can include .o file in .cpp file
Parra
you don't include it
#свободуНавальному
Just #include is not work
Mar!o
#свободуНавальному
you don't include it
What do with it? With object files of c
Parra
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/images/GCC_CompilationProcess.png
Parra
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
Parra
you see, .o and .a depend on linker, not compilation step
#свободуНавальному
How link it? With help gcc, as you told?
Parra
gcc -c file1.c g++ -c file2.cpp g++ -o myprog.exe file1.o file2.o
#свободуНавальному
read this
Ok. Now i have 100 tabs and vscode. After 20 min will read it. Forwarded it in faves
#свободуНавальному
gcc -c file1.c g++ -c file2.cpp g++ -o myprog.exe file1.o file2.o
I already tryed it. g++ speak about that can't find function by name and it not exist
#свободуНавальному
Mb i should specify .h files?
#свободуНавальному
Oh. If it's true - i'm bad
Parra
and include it in both (c,cpp) files
Parra
Oh. If it's true - i'm bad
it's ok, it is not shown in the command line example
Hermann
are there tools that allow you to draw protocols?