Chrome Browser Beta Now Supports C, C++ Apps

Page 2 - Seeking answers? Join the Tom's Guide community: where nearly two million members share solutions and discuss the latest tech.
Status
Not open for further replies.
My guess is that Half-Life2/Counter-strike source would run on chrome with little modifications, and viruses and trojans too! ^-^ Oh and in theory we could run windows in chrome with that in mind isn't fantastic? :-D
 
Doorspawn: C++ definitely has it's place as a programming language, but when designing plugins for a non-high-performance application like a web browser, idiot-proofing is a good thing. Most add ons shouldn't be doing anything 99% of the time anyways, so any ***potential*** performance hit isn't important.

Besides, there are very few C++ applications that are completely bug free, and if there is a sand box is doing some memory management and blocking access to certain standard library functions, then you might as well have started with a managed language with it's own libraries, because you're incurring just as much of a performance hit, with potentially less safe and stable code.
 
The C++ is the performance king is way overhyped. A comparison of C, C++, C#, Java, Perl and Python using GBs of data from various genomes showed that, contrary to what the authors concluded (compare their data figures to their conclusions), there appears to be no statistically significant difference on performance between C/C++ and C#. Perl and Python all take a hit and are noticeably slower but the notion that all JIT compiled languages have a performance penalty is demonstrably false on the Windows platform. The interesting thing to me is the performance difference between Windows and Linux running the same C++ code.
 
but the notion that all JIT compiled languages have a performance penalty is demonstrably false on the Windows platform

This is entirely up to the purpose of the program and how the coder did it. JIT by it's very definition will be slower then native code, how much slower depends on how it's implemented and what your trying to do with it. Running a "hello world" program or a bunch of math won't be much of a difference, performing numerous systems calls and IPC's on the other hand will cripple JIT code, especially if those calls and communications are to programs outside of the environment your executing in.

I manage a BEAWLS suite running Solaris 10 with dozens of managed server instances with over a hundred deployed webapps. We experienced a 50~100% performance increase when we recoded the webapps from java to c++.
 
[citation]…JIT by it's[sic] very definition will be slower then[sic] native code… [/citation]
I would agree that a C# app would be slower to start but once running I have seen no objective data indicating that that statement is true.

[citation]… I manage a BEAWLS suite running Solaris 10 with dozens of managed server instances with over a hundred deployed webapps. We experienced a 50~100% performance increase when we recoded the webapps from java to c++.[/citation]
No doubt. But my comment was regarding the Windows desktop environment (my field is custom desktop software development) and there C# provides many benefits over C++ and in my experience performance has not been a concern on the desktop.
 
…JIT by it's[sic] very definition will be slower then[sic] native code…
I would agree that a C# app would be slower to start but once running I have seen no objective data indicating that that statement is true.

… I manage a BEAWLS suite running Solaris 10 with dozens of managed server instances with over a hundred deployed webapps. We experienced a 50~100% performance increase when we recoded the webapps from java to c++.
No doubt. But my comment was regarding the Windows desktop environment (my field is custom desktop software development) and there C# provides many benefits over C++ and in my experience performance has not been a concern on the desktop.
 
[citation][nom]martel80[/nom]Garbage collection is necessary only for garbage programmers.Additionally, C++ has auto pointers.[/citation]

C++ having auto pointers? Wow, thats new to me /s
 
Status
Not open for further replies.