C++
C++

3.5K
2.2K
+ 1
601
Swift
Swift

4.8K
3K
+ 1
1.1K
Add tool

C++ vs Swift: What are the differences?

What is C++? Has imperative, object-oriented and generic programming features, while also providing the facilities for low level memory manipulation. C++ compiles directly to a machine's native code, allowing it to be one of the fastest languages in the world, if optimized.

What is Swift? An innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.

C++ and Swift can be categorized as "Languages" tools.

"Performance", "Control over memory allocation" and "Cross-platform" are the key factors why developers consider C++; whereas "Ios", "Elegant" and "Not Objective-C" are the primary reasons why Swift is favored.

Swift is an open source tool with 48.4K GitHub stars and 7.76K GitHub forks. Here's a link to Swift's open source repository on GitHub.

According to the StackShare community, Swift has a broader approval, being mentioned in 993 company stacks & 541 developers stacks; compared to C++, which is listed in 199 company stacks and 371 developer stacks.

- No public GitHub repository available -

What is C++?

C++ compiles directly to a machine's native code, allowing it to be one of the fastest languages in the world, if optimized.

What is Swift?

Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose C++?
Why do developers choose Swift?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using C++?
What are the cons of using Swift?

Sign up to add, upvote and see more consMake informed product decisions

What companies use C++?
What companies use Swift?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with C++?
What tools integrate with Swift?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to C++ and Swift?
C
PHP
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
Java
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
See all alternatives
Decisions about C++ and Swift
No stack decisions found
Interest over time
Reviews of C++ and Swift
Avatar of Bessalitskykh
Software Development Consultan at MLSDev Inc.
Review ofSwiftSwift

The performance of Swift is almost the same as that of C++, which is considered the fastest in algorithm calculation arithmetics. Apple had this idea in mind and worked to improve the speed of Swift. For example, Swift 2.0 has beaten C++ in several computation algorithms, such as Mandelbrot algorithm. Objective-C is slower because it contains C API legacy.

Swift is faster than Objective-C, because it removed the limitations of C language and has been improved with the help of advanced technologies that were unavailable when C was developed. As mentioned by Apple, Swift was originally designed to operate faster.

Despite the fact that languages are different, they both integrate, and work with Cocoa and Cocoa Touch APIs, for all Apple platforms. Therefore, a regular app-user would not recognize the difference in operating speed between Objective-C vs Swift. Speed also depends on a programmer’s level and capabilities, since a slow app can be written in Swift as well.

Learn more here https://mlsdev.com/blog/51-7-advantages-of-using-swift-over-objective-c

Avatar of Bessalitskykh
Software Development Consultan at MLSDev Inc.
Review ofSwiftSwift

Its performance approaches the one of C++ which is considered the fastest algorithm calculation arithmetics. And Apple strives to improve the speed of Swift. Learn more here https://mlsdev.com/blog/51-7-advantages-of-using-swift-over-objective-c

How developers use C++ and Swift
Avatar of Lawrence Cheuk
Lawrence Cheuk uses SwiftSwift

iPhone app, a new born language, it may good but the IDE, xcode is bad compare with Visual Studio. It just like a baby. playground can only use without connect to other library...you can not do a simply refactor of renaming a variable. You can go to definition and find reference, but you can not go to implementation....I should write them on xcode not here basically it is not the fault of swift, but it tightly to it, unless you want to use a notepad to write it.

Avatar of Marc3842h
Marc3842h uses C++C++

C++ is used in Shiro (https://github.com/Marc3842h/shiro).

C++ is a high performance, low level programming language. Game servers need to run with fast performance to be able to reliably serve players across the globe.

Avatar of Refractal
Refractal uses SwiftSwift

Most of our newer apps are written completely in swift, with our older ones and some special cases using a mix of Swift and Objective-C, but with Swift 2, the language is pretty much a must-use. "guard" is <3.

Avatar of OnlineCity
OnlineCity uses C++C++

The most latency sensitive parts are written in C++. Due to our interconnected services architecture, we use either Python or C++ for each service, with the performance critical parts being C++14.

Avatar of Flutter Health Inc.
Flutter Health Inc. uses SwiftSwift

Flutter is coded with Swift v.2.3 and can be run with Xcode v.8.2.1. To launch in Xcode 9.3, the code needs to be migrated to Swift 4.1

Avatar of POROWNEO.PL
POROWNEO.PL uses C++C++

Used to write PHP extensions - AZTEC Decoder - License Driver scan - Axis2/C to PHP wrapper and Job-scheduler - Barbershop

Avatar of Luca Fulchir
Luca Fulchir uses C++C++

Performance, zero-overhead abstractions and memory safety of the modern C++ language make this the perfect language for the project.

Avatar of ApertusVR
ApertusVR uses C++C++

The main programming language of ApertusVR. C++11 & CMake provides multi-platform targeting. The architecture is modular.

Avatar of Maxim Ananov
Maxim Ananov uses SwiftSwift

Most of the app code was gradually rewritten in Swift for better performance and code maintenance.

Avatar of JINJA Ltd.
JINJA Ltd. uses SwiftSwift

Our native iOS app is built on Swift, and most of the basic function is still written in Swift

How much does C++ cost?
How much does Swift cost?
Pricing unavailable
Pricing unavailable
News about C++
More news