@Dolkarr agree python is awesome cause the language is more closer to the solution space of algorithms and data structures than the machine. But u still need c++ for all the low level stuff....u cant write a serious OS using python...
@thefetishkingfarts You don't make a new OS every day though :) Of course, it's a high level language. It's purpose is to build on a low level background... I never said that Python is the ultimate language for everything.
@Dolkarr I like Python but I see one HUGE problem with it. The GIL or Global Interpreter Lock (google it), which prevents a Python process from benefiting from today's multi-core machines.
multiprocessing is a package that supports spawning processes using an API similar to the threading module. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Global Interpreter Lock by using subprocesses instead of threads. Due to this, the multiprocessing module allows the programmer to fully leverage multiple processors on a given machine. It runs on both Unix and Windows.
@Dolkarr Hmm, that sounds interesting. I haven't been doing any Python programming in a while, so I guess my information may be out of date. I'll definitely read up on that multiprocessing package.
c++ is very easy to learn and java is much more compatible with internet stuff and besides java is nuch more open source but without c++ there would be no java u know?...
@fastboy84 C++ is many things, but one thing it's not (by any stretch of imagination) is "easy to learn". I've been programming in C++ since 2000, and even after 11 years I still occasionally get bitten by some obscure quirk of the language.
@fremiamagus at your third point true that you can make your code more efficient but I thoink in general unless you are running somethoing like a alienware C++ is generally faster thoat Java. That is why a lot of game developers choose C++.
At your 4th point: Not if you don't use clr :-) (witho thoe exception of different file extensions) (I may be wrong on thois point).
It is true that c++ is faster than java, but all interpreted languages are slower due to limited virtual space compared to the non-interpreted ones that actually make use of the hardware to increase speed.(unless you are running complex polygonal work then a graphics card won't show the difference).
You are also correct that game developers mainly choose c and c++ due to this difference.
Still, you can ignore cross-platform issues entirely by using methods within the language itse
nah, as long as your file extension does not have anything special going for it(like encoding) then a language should be able to make use of that code assuming you include that functionality for the language.
@fremiamagus With Java the source first gets compiled into bytecode in class files. Then at runtime the bytecode is interpreted, and may optionally be compiled to native machine code. When I say "optionally", what that means is that almost always it will get compiled.
With C++ the source gets compiled directly into native machine code.
YOU ARE NOT A JEDI!!! THE LIGHTSABER BENEATH YOUR VIDEO IS CLEARLY RED!!!
CRUHL49 2 months ago
your a fcking prick
highten58 2 months ago
forget C++ and Java.. use Python! :) There will never be a more beautiful and pure language than Python! Everything seems so easy with it.
Dolkarr 2 months ago
@Dolkarr agree python is awesome cause the language is more closer to the solution space of algorithms and data structures than the machine. But u still need c++ for all the low level stuff....u cant write a serious OS using python...
thefetishkingfarts 2 months ago
@thefetishkingfarts You don't make a new OS every day though :) Of course, it's a high level language. It's purpose is to build on a low level background... I never said that Python is the ultimate language for everything.
Dolkarr 2 months ago
@Dolkarr I like Python but I see one HUGE problem with it. The GIL or Global Interpreter Lock (google it), which prevents a Python process from benefiting from today's multi-core machines.
antred11 2 months ago
@antred11 From Python docs:
multiprocessing is a package that supports spawning processes using an API similar to the threading module. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Global Interpreter Lock by using subprocesses instead of threads. Due to this, the multiprocessing module allows the programmer to fully leverage multiple processors on a given machine. It runs on both Unix and Windows.
Dolkarr 2 months ago
@Dolkarr Hmm, that sounds interesting. I haven't been doing any Python programming in a while, so I guess my information may be out of date. I'll definitely read up on that multiprocessing package.
antred11 2 months ago
too long, didnt hear
decapattack 5 months ago
hello, and plz come again
FuckingComments 6 months ago
c++ is very easy to learn and java is much more compatible with internet stuff and besides java is nuch more open source but without c++ there would be no java u know?...
fastboy84 6 months ago
@fastboy84 why c++? Why not any other programming language that is compiled into assembler?
gurkinator100 4 months ago
@fastboy84 C++ is many things, but one thing it's not (by any stretch of imagination) is "easy to learn". I've been programming in C++ since 2000, and even after 11 years I still occasionally get bitten by some obscure quirk of the language.
antred11 2 months ago
C++ ftw!
gruntlover2 7 months ago
brr
AngelP137 8 months ago
This has been flagged as spam show
@fremiamagus at your third point true that you can make your code more efficient but I thoink in general unless you are running somethoing like a alienware C++ is generally faster thoat Java. That is why a lot of game developers choose C++.
At your 4th point: Not if you don't use clr :-) (witho thoe exception of different file extensions) (I may be wrong on thois point).
GCGGAMES 11 months ago
@GCGGAMES
It is true that c++ is faster than java, but all interpreted languages are slower due to limited virtual space compared to the non-interpreted ones that actually make use of the hardware to increase speed.(unless you are running complex polygonal work then a graphics card won't show the difference).
You are also correct that game developers mainly choose c and c++ due to this difference.
Still, you can ignore cross-platform issues entirely by using methods within the language itse
fremiamagus 11 months ago
@fremiamagus
got cut off...
nah, as long as your file extension does not have anything special going for it(like encoding) then a language should be able to make use of that code assuming you include that functionality for the language.
fremiamagus 11 months ago
@fremiamagus Agreed :-)
GCGGAMES 11 months ago
@fremiamagus With Java the source first gets compiled into bytecode in class files. Then at runtime the bytecode is interpreted, and may optionally be compiled to native machine code. When I say "optionally", what that means is that almost always it will get compiled.
With C++ the source gets compiled directly into native machine code.
gurkinator100 4 months ago
Microsoft only made c# because java wouldn't sign with them...
eliteveteran 1 year ago 2
Weebl and Bob much?
Dar1066 1 year ago
Horrible video.
1. Video description says it is a debate, but it only goes into the basics of what each language can do.
2. Java, as well as c++, is extendable by third parties(That is what classes are for you know...to create new functionality).
3. The speed difference between the two languages is based entirely on the hardware of your computer, as well as how efficient the code is.
4. c++ may be more cross-platform, but it is only so if the programmer knows the other systems they are codin
fremiamagus 1 year ago
Comment removed
GCGGAMES 11 months ago