@rahulrvideo, @robnox - Whether or not Python is slower than C++ depends a lot on the application. I can promise you that if you're implementing 'cp' you will not notice any difference in speed between the two. You will only notice a difference when your program is CPU bound.
That said, the factor of '1000' is believable in some instances, and as an average for a bunch of benchmarks I'm fully willing to believe it. But don't think that kind of measurement tells the whole story.
@bogoid well technically people still use assembly and thats been around nearly as long as electronic computers and languages like C++ are very old too and are still very popular .. and i dont see the need for new languages atm and i dont see how old languages would die without anything new so..
@non91 Assembly will always be around as it is merely a human readable mnemonic representation of machine language, which is the raw bits the processor uses. C++ is very likely to be around forever as well. 'New' languages like C# and Java are really more solution in search of a problem. C++ does everything C# and Java do. Some languages are special purpose like SQL and PHP, where the language is neither intended nor suited to application or OS programming.
@johnyfartpants you can write the graphics thread in C/C++ and then load that module in Python and the graphics will be liquid smooth because the Python runtime isn't managing all the gfx logic, your library is. or better yet, write it in assembly! ;)
I do mostly 3D graphics, stuff you cant do with Python because it's too slow. The number "1000" isnt just something I made up, it was 1000 times slower than C++ in benchmarks
@robnox i would really like to know if u could provide some cogent evidence to substantiate your claim.. about c++ being 1000 times faster than python....
@rahulrvideo Google "python vs c++ speed" it will be the 3rd result. I tested this in house with an assembly based timing mechanism (for more accuracy) and I got approximately 1000 times faster execution vs python
I don't agree with your python performance bashing. I measured a zip algorithm and python was only 270 times slower then C++. But yes i had to apply tricks to get it this fast :-)
But it's okay for moving strings around and concatenating them to make webpages.
@llothar68 only 270 times slower than C++.. I rest my case lol. that reminds me of a benchmark I once did Intel Core2 vs i7 with tar -xjf ran approximately 10 times faster on the Core2. This was when the i7 just came out and GCC had no compiler optimizations for the i7 yet, so I think this is the main contributing factor. my point being, optimizations go a long way ;-)
I dont find C++ much more difficult to write than python, and the code you compile with C++ will execute over 1000 times faster than python. Is saving a few minutes of programming really worth code that runs 1000 times slower?
@robnox You don't find it that much more difficult? have you ever written any code for applications that are more complex than "hello world"? I doubt the speed difference is that big. feel free to prove me wrong though.
@robnox well , i dont agree when it comes to python . python is way better than "C" . Its built on C , but makes the code very very laconic and substantially lesser than u write in C .
@rahulrvideo i dare you to code me a kernel in Python (^_^)
there is no "better" language (this goes for the other guy too) just different applications. now the validity of some languages is questionable (like BASIC). C is a great language. and Python has its uses too, its a lot easier to manage then Perl on server side i'll tell you that.
and as far as the last real programming languages goes...that would be 80x86 Assembly (>_>) (<_<)
Haha, very nice video. 5 stars :) anyway this isnt spam. This is a personal message. Sign up here for free stuff like gift cards, games, iphones, ipods, cds etc. all ya gotta do is change your search engine to use theres which is still based on google. Heres a link please use me as a refer. Its totally real. Any questions feel free to ask me in a pm. Also you can check out my video in my profile for more info. Thanks
Here's your opportunity to introduce your IP directly to your audience. Create a new game or modify an existing one to accommodate 24 simultaneous players on one screen. You and your team will be first to develop for this new, socially dynamic video game platform!
For some reason, game consoles are the only PCs to have multiple controllers and split-screen. If only people thought to make split-screen games for desktops and to just buy USB controllers, we wouldn't even need game consoles.
Great talk. I appreciate all the hard work and research you put into this.
I have a question. I seem to recall hearing somewhere that in VC if your switch cases are in incrementing order starting with 0 then it will make a branch table. I've never actually checked this.
Your video shows the switch nested inside an if to make sure the variable being switched over is within a range. Is this required? Can't the compiler see I only have 3 cases?
Have been using threads for many years. Like the guy said, I did not get it right the first time, so it seem dawnting, but I am now very comfortable with C++ threads in Windows and have a simple application that probably has about 5 - 15 threads (depending on what you turn on in the application) runnig 24x7.
agreed MAC computers are more user friendly MAC Os systems hide most of the functions that the PC leaves open for Admins Ex. .dll fills and system files mac computers are low matanace comps unlike PC to use a PC right you must know a farely good bit about computers the Vista XP and other OS's on Pc's are still user friendly but not as much as a Mac a Windows based computer has nothing on a Linix or unix based computers but all in all Mac and PC are = computers in hardware and software
but each is better for diff ppl in ther own way a newer computer user may find it better to work with a mac as a officer manager may find it better to use a PC with a windows OS when you look at it Mac VS. PC is nothing more than Nike Vs. Vans just 2 diff brands made for two diffrent things one may favor the other but hwen you look at it from a consumer veiw mac has a more appeling veiw
Good lecture for compiler writers, not so good for users of compilers. If you are scared of threads now, watch this and get REALLY scared.
As his slides show, you have to write really bad code to maybe get these bugs to show up --like multiple writes to unprotected shared bitfields. Well duh--that might cause you a problem.
Im glad C++ is fixing this stuff, but this lecture isnt going to help you write better MT apps.
Interesting, but this talk only holds up in a purely engineering sandbox. Jump into userland with user interface and useability problems and you can't get away from locks and events. He should focus his obvious intelligence on convincing people to seperate an interface from an implementation and then present a design pattern to deal with the multithreaded issues of those portions of the implementation that require multithreaded techniques.
GAH GET YOUR DAMN QUALITY RIGHT GOOGLE, this is so annoying.
Great video = Bad quality... so common these days, I hope this doesn't happen in 2020 (In the future)
ShadowSky24 4 months ago 2
This would be great if youtube would actually stream it without pausing every 20 seconds (I'm on a 18MBit connection)
LuckyLuke364 5 months ago
this could have been interesting if youtube didn't exit fullscreen on pause
Oscillor 6 months ago
/watch?v=ps0QOaqcrII
krisiii1234 8 months ago
@rahulrvideo, @robnox - Whether or not Python is slower than C++ depends a lot on the application. I can promise you that if you're implementing 'cp' you will not notice any difference in speed between the two. You will only notice a difference when your program is CPU bound.
That said, the factor of '1000' is believable in some instances, and as an average for a bunch of benchmarks I'm fully willing to believe it. But don't think that kind of measurement tells the whole story.
Omnifarious0 1 year ago
He is a bit nervous about public speaking, its pretty common, most people are uncomfortable talking to groups.
VideoFilterGuy 1 year ago
Jesus Christ, he's talking way too hectically. His irregular breathing is catching...
daspil0t 1 year ago
I'm using Boehms garbage collector a lot in my private in-house compiler. Nice to finally see his face - i expected him to be older.
llothar68 1 year ago
I love how software developers (wannabes included) tie themselves to programming languages.
Languages die people, get over it, sooner or later every language will die.
bogoid 1 year ago
@bogoid not entirely true..
non91 1 year ago
@non91
so which is the language that will never die, and why?
bogoid 1 year ago
@bogoid well technically people still use assembly and thats been around nearly as long as electronic computers and languages like C++ are very old too and are still very popular .. and i dont see the need for new languages atm and i dont see how old languages would die without anything new so..
non91 1 year ago
@non91 Assembly will always be around as it is merely a human readable mnemonic representation of machine language, which is the raw bits the processor uses. C++ is very likely to be around forever as well. 'New' languages like C# and Java are really more solution in search of a problem. C++ does everything C# and Java do. Some languages are special purpose like SQL and PHP, where the language is neither intended nor suited to application or OS programming.
VideoFilterGuy 1 year ago
@VideoFilterGuy i think i was trying to say that.. but nevertheless nicely put :)
non91 1 year ago
@bogoid each one is gonna die
acrvn 9 months ago
@johnyfartpants you can write the graphics thread in C/C++ and then load that module in Python and the graphics will be liquid smooth because the Python runtime isn't managing all the gfx logic, your library is. or better yet, write it in assembly! ;)
robnox 1 year ago
dang this guy has a lot of other hands haha
dudeinasuit321 1 year ago
GIVE DEES PEOPLE EEYA!
z0ltanz0ltan 1 year ago
I do mostly 3D graphics, stuff you cant do with Python because it's too slow. The number "1000" isnt just something I made up, it was 1000 times slower than C++ in benchmarks
robnox 1 year ago
@robnox Internet thug. Heh.
z0ltanz0ltan 1 year ago
@robnox i would really like to know if u could provide some cogent evidence to substantiate your claim.. about c++ being 1000 times faster than python....
rahulrvideo 1 year ago
@rahulrvideo Google "python vs c++ speed" it will be the 3rd result. I tested this in house with an assembly based timing mechanism (for more accuracy) and I got approximately 1000 times faster execution vs python
robnox 1 year ago
@robnox
I don't agree with your python performance bashing. I measured a zip algorithm and python was only 270 times slower then C++. But yes i had to apply tricks to get it this fast :-)
But it's okay for moving strings around and concatenating them to make webpages.
llothar68 1 year ago
@llothar68 only 270 times slower than C++.. I rest my case lol. that reminds me of a benchmark I once did Intel Core2 vs i7 with tar -xjf ran approximately 10 times faster on the Core2. This was when the i7 just came out and GCC had no compiler optimizations for the i7 yet, so I think this is the main contributing factor. my point being, optimizations go a long way ;-)
robnox 1 year ago
@robnox if you can't do 3d graphics, how does eve-online run then as this is programmed in python iirc?
johnyfartpants 1 year ago
I dont find C++ much more difficult to write than python, and the code you compile with C++ will execute over 1000 times faster than python. Is saving a few minutes of programming really worth code that runs 1000 times slower?
robnox 1 year ago
@robnox You don't find it that much more difficult? have you ever written any code for applications that are more complex than "hello world"? I doubt the speed difference is that big. feel free to prove me wrong though.
EXetoC 1 year ago 2
Ahh, C++, the last "real" programming language. Java, C#/.NET, Python, all are a joke when you compare them to C/C++
robnox 1 year ago
@robnox well , i dont agree when it comes to python . python is way better than "C" . Its built on C , but makes the code very very laconic and substantially lesser than u write in C .
rahulrvideo 1 year ago
@rahulrvideo i dare you to code me a kernel in Python (^_^)
there is no "better" language (this goes for the other guy too) just different applications. now the validity of some languages is questionable (like BASIC). C is a great language. and Python has its uses too, its a lot easier to manage then Perl on server side i'll tell you that.
and as far as the last real programming languages goes...that would be 80x86 Assembly (>_>) (<_<)
itachisxeyes 1 year ago
COME WITH ME IF YOU WANT TO LIVE ARRGUH
enotdetcelfer 1 year ago
lol this guy sounds texasly german lol
WrestlingFanUploader 2 years ago 5
@WrestlingFanUploader his motherlanguage is hebrew..
killah51staemme 2 years ago
half american half german accent
amino0o 2 years ago
This has been flagged as spam show
Haha, very nice video. 5 stars :) anyway this isnt spam. This is a personal message. Sign up here for free stuff like gift cards, games, iphones, ipods, cds etc. all ya gotta do is change your search engine to use theres which is still based on google. Heres a link please use me as a refer. Its totally real. Any questions feel free to ask me in a pm. Also you can check out my video in my profile for more info. Thanks
swagbucks . com/refer/BossKing06
Bossking2 2 years ago
wow you dont realize how stupid you are, maybe you should do more research on your buddy Alex Jones. FFS
ANGELxINxDESARKNS 2 years ago
Wow - the example at 37:00 is something I've dealt with. I'm glad to have seen this!
joelwhitehouse 2 years ago
Comment removed
aliloko 2 years ago
LOTS OF THINGS ARE DONE IN C/C++
MasterMind300 2 years ago 2
And what does that mean ? You make a statement like that with no bases what so ever.
LongSausageMAN 2 years ago
This has been flagged as spam show
Here's your opportunity to introduce your IP directly to your audience. Create a new game or modify an existing one to accommodate 24 simultaneous players on one screen. You and your team will be first to develop for this new, socially dynamic video game platform!
visit
bigscreengamingDOTcom for more info
AmplitudeBSG 2 years ago
Screw your spamming, but I like the idea.
For some reason, game consoles are the only PCs to have multiple controllers and split-screen. If only people thought to make split-screen games for desktops and to just buy USB controllers, we wouldn't even need game consoles.
cyborgtroy 2 years ago
One of the main reasons why consoles are so popular is price.
RyanPridgeon 2 years ago
Great talk. I appreciate all the hard work and research you put into this.
I have a question. I seem to recall hearing somewhere that in VC if your switch cases are in incrementing order starting with 0 then it will make a branch table. I've never actually checked this.
Your video shows the switch nested inside an if to make sure the variable being switched over is within a range. Is this required? Can't the compiler see I only have 3 cases?
Thank you! :D
ProgramMax 2 years ago
the compiler only checks the cases and the variable if you use a default case.
JustMaximumPower 2 years ago
Have been using threads for many years. Like the guy said, I did not get it right the first time, so it seem dawnting, but I am now very comfortable with C++ threads in Windows and have a simple application that probably has about 5 - 15 threads (depending on what you turn on in the application) runnig 24x7.
colinmaharaj 2 years ago
Once you try D you won't go back to C++
FlameHue 2 years ago
Comment removed
Drewskad00d 3 years ago
This comment has received too many negative votes show
Afen, wai are we intersted in the THREADS...
chaco1776 3 years ago
This comment has received too many negative votes show
sounds like Schwartzenegger, especially when he says "er..." after almost every sentence.
imitabilis 3 years ago
This comment has received too many negative votes show
no time for an hour plus
Dlucas1357 3 years ago
MACs are for people who dont have the knowledge to use PCs.
Lordcorm 3 years ago
agreed MAC computers are more user friendly MAC Os systems hide most of the functions that the PC leaves open for Admins Ex. .dll fills and system files mac computers are low matanace comps unlike PC to use a PC right you must know a farely good bit about computers the Vista XP and other OS's on Pc's are still user friendly but not as much as a Mac a Windows based computer has nothing on a Linix or unix based computers but all in all Mac and PC are = computers in hardware and software
creeparraid 3 years ago
but each is better for diff ppl in ther own way a newer computer user may find it better to work with a mac as a officer manager may find it better to use a PC with a windows OS when you look at it Mac VS. PC is nothing more than Nike Vs. Vans just 2 diff brands made for two diffrent things one may favor the other but hwen you look at it from a consumer veiw mac has a more appeling veiw
this coment was suposed to be placed below
Kin632s coment under Sirus20x6 :P
creeparraid 3 years ago
This has been flagged as spam show
my friggin god, you are probably the dumbest human being ive ever heard
davidc538 2 years ago
THEN YOU REALLY DIDNT SEE YOU AROUND
computerfis 2 years ago
This has been flagged as spam show
Sup? you gotta check this out it will blow your mind. (meetyourfling) c o m
63501018135
max
joshuaonfiya 3 years ago
This has been flagged as spam show
WTF!?
orhanhunter 3 years ago
What do you mean
noel21613 3 years ago 3
This has been flagged as spam show
good
bcbtalk . com
Criteria12 3 years ago
This comment has received too many negative votes show
how do you compile files on a mac???
Kin632 3 years ago
you buy a real computer and get a compiler.
Sirus20x6 3 years ago 6
get a compiler.
pepemark 3 years ago
"i'll be back"
blahandbleh 3 years ago 3
"Get to the chopper..NOW!!!"
VoiceOfThePlanet 3 years ago 2
"Get down!!!"
gammooo 3 years ago
"I need your clothes, your boots, and your motorcycle."
MrNotchJohnson 2 years ago 57
Good lecture for compiler writers, not so good for users of compilers. If you are scared of threads now, watch this and get REALLY scared.
As his slides show, you have to write really bad code to maybe get these bugs to show up --like multiple writes to unprotected shared bitfields. Well duh--that might cause you a problem.
Im glad C++ is fixing this stuff, but this lecture isnt going to help you write better MT apps.
999emanresU 3 years ago 9
This has been flagged as spam show
decent vid. dont like the accent
6satan6ist6 3 years ago
This has been flagged as spam show
i didnt know the governator wrote c++
COME WITH ME IF YOU WANT TO LIIIVE ERRRRRR
Psychoboi001 3 years ago
This has been flagged as spam show
Penis...
JARTX 3 years ago
Interesting, but this talk only holds up in a purely engineering sandbox. Jump into userland with user interface and useability problems and you can't get away from locks and events. He should focus his obvious intelligence on convincing people to seperate an interface from an implementation and then present a design pattern to deal with the multithreaded issues of those portions of the implementation that require multithreaded techniques.
gravyjones 4 years ago 5
This has been flagged as spam show
Is this guys Arnold...aka Terminator...
h3ll3n1c 4 years ago
This has been flagged as spam show
lol. shutup dood.
6satan6ist6 3 years ago
This comment has received too many negative votes show
Great lecture. Luckily, I use Java :-)
gmvsea 4 years ago
This comment has received too many negative votes show
hehehe me too :)
mayorc 4 years ago
yeah but just like he mentionned, many JVM are broken ;)
frham20 4 years ago 21
This has been flagged as spam show
your another fucking idiot. java.... C++.. your a fuckin moron.
6satan6ist6 3 years ago
Lots of C++ people have their heads in the sand.
a1mint 3 years ago
Mmmmmmmmmm sand.
Baraclese 3 years ago
This has been flagged as spam show
your an idiot.
6satan6ist6 3 years ago