Talula
C++ natively doesn't support Threading and doesn't work well with Internet servers that do support Threading, it'll be fast but not optimized, use NodeJS, which is specifically made for working on backend uses JavaScript and is completly non-blocking.
Asad
No. Anyway, I have to learn C++. I am about to start my freshman year at university and it teaches C++ during the first year.
BinaryByter
Uhuh... BTW Which one is better: VSCode or VS itslef?
vscode, because its more general purpose
Asad
And Python as well
Talula
Java for the second year
I think you're trolling so I choose not to answer it...
BinaryByter
ofc you can do threading natively in C++
Asad
ofc you can do threading natively in C++
I heard that C++ can do anything...
BinaryByter
I heard that C++ can do anything...
on a "fit for everyday use" basis, yea
Talula
have you fallen on your head?
I would suggest you learn how to be respectable to people and no C++ doesn't support Threading by detault unless you write your application in a way where it has to use it, not like Go, Kotlin or Even NodeJS.
BinaryByter
I would suggest you learn how to be respectable to people and no C++ doesn't support Threading by detault unless you write your application in a way where it has to use it, not like Go, Kotlin or Even NodeJS.
no C++ doesn't support Threading by detault unless 1) ever heard of libpthread? 2) <thread> 3) even if you had to do it with inline asm, wouldn't that count as native?
olli
I would suggest you learn how to be respectable to people and no C++ doesn't support Threading by detault unless you write your application in a way where it has to use it, not like Go, Kotlin or Even NodeJS.
NodeJS runs only a single thread by default. C++ supports threading (see <thread>). There are plenty of libraries such as libuv (which is internally used by node) to support "task"-based parallelism
Talula
no C++ doesn't support Threading by detault unless 1) ever heard of libpthread? 2) <thread> 3) even if you had to do it with inline asm, wouldn't that count as native?
You know, you think the guy who think HTML is web development would do Threading using "libpthread" "Thread"? Either you don't understand the context or you don't understand what is the meaning of native where you are forced to use threading without having a choice.
BinaryByter
google uses c++ only for side projects
BinaryByter
i'm talking about C++, not html
BinaryByter
😅
BinaryByter
but I get that you are confused about the words, there are many buzzwords when programming
Talula
umm wat?
Umm he should use C++ to develop backend for web development.
BinaryByter
github.com/wittmaxi/webcpp
Talula
:)
Well that is what he wants to do with C++, to which I said C++ doesn't support native threading if you are going to write an application that is going to work as a webserver.
Talula
You have to write a threading application.
Talula
OFC IT SUPPORTS NATIVE THREADING
Oh you mean like Assembly?
BinaryByter
No I mean <thread> and libpthread
Talula
Assembly supports native multi threading... doesn't it?
BinaryByter
if you argue that the standard isn't native, I would love to tell you that C++ isnt the most efficient language out there
BinaryByter
If you run bare metal yes.
even out of bare metal, you can use syscalls and depending on the security of the Kernel you can even do the threading yourself
Asad
I don't cosnider it native though since you need to rely on the OS
Hey guys! Is it okay to do back-end development with C++?
Talula
By backend he means web development FFS.
BinaryByter
but since most x86 CPUs are basically the same
BinaryByter
but since most x86 CPUs are basically the same
and most POSIX systems are the same
BinaryByter
and most systems are POSIX
BinaryByter
They are saying it is horrible choise
assembly? horrible choice?
Talula
I KNOW
And you think it's a good idea to write CGI C++ scripting?
Asad
Talula
C++ for back-end.
What do you mean by back end?
Talula
why not?
No just checking your level of insanity.
BinaryByter
No just checking your level of insanity.
again: why would it not be a good idea?
Asad
What do you mean by back end?
Back-end means back-end, you know?
Talula
again: why would it not be a good idea?
Oh because you'll spend 6 months doing something that you can do in 1 week in something else like C#.
BinaryByter
there is no other way unless you serve the stuff through your own webserver - which will not make it easier (but more efficient )
Talula
?
?
BinaryByter
I dont follow your market research 😂😂
Talula
I dont follow your market research 😂😂
That okay, you're a nerd who would write programs in Assembly... lol I prefer to use the right tools that make my life simpler.
BinaryByter
again: why is webdev in cpp bad?
BinaryByter
why would it be slower?
BinaryByter
You can even do webdev in foxpro quite well
Talula
again: why is webdev in cpp bad?
Depends, if you know what is requirement of web development or you know any you're asking me to explain it to you again.
Talula
You can even do webdev in foxpro quite well
You can... even do webdev in assembly.
Talula
Point is we don't because it's harder.
olli
again: why is webdev in cpp bad?
Because it takes the agility out of it. Writing a website with your library requires to recompile at every change. Can you support client site rendering? AJAX? Dyamic Content?
Talula
No shit sherlock
I would really appricate if you do not insult me... thanks.
BinaryByter
Point is we don't because it's harder.
doing webcpp isnt much harder than using php?
Talula
No faeces, detective
Please... trust me I do not enjoy it when I'm insulted for no reason.
BinaryByter
This isnt even an insult, wtf
olli
doing webcpp isnt much harder than using php?
But it requires a recompile for every change.. that's horrible
Asad
Nice Conversation! I am getting answers without asking
BinaryByter
But it requires a recompile for every change.. that's horrible
I'm working for an idea how I could solve that. I think that i'll go for an apache plugin that compiles whenever it sees that the source was changed
olli
I'm working for an idea how I could solve that. I think that i'll go for an apache plugin that compiles whenever it sees that the source was changed
Do you have a fully functional, kinda dynamic site running webcpp? Furthermore, more and more web development is moving towards client side rendering, how do you achieve this or isn't this planned?