We may find an image processing library for Android, and the other for iOS. In this example, I used an existing algorithm for face detection. To accomplish this, we can use image processing for detection of a raised and lowered position. I would like to create an app that will let you count the number of repetitions of push-ups for Android and iOS.įirst, we want to detect a single push-up. Wrappers can use a small bridging header for communication with Swift, then we can also use this C++ in Swift code. What if the client one day asks us for Swift or Kotlin implementations? Code written with C++ bindings can be used in Objective-C, this can also be done in Java. In this case, should we translate all the code that we have written in C++ to Java or Objective-C? If we do that, it would lead to a lot of code duplication, and it would not be the best approach.Ī solution to interoperability is to use language bindings. Now that we’re in a mobile age, our clients want us to run our code on Android and iOS devices. Because we have been around for long, much of the codebase is written in C or C++. The company has been around for over 25 years, and the oldest code I’ve seen is 25 years old. TomTom & C++Īt TomTom, we produce navigational maps. This talk will cover some of the reasons why you would. Why C++?Ĭ++ is full of dangerous features - it’s a dangerous language and powerful language that you should not use. I want to talk about combining Swift and Kotlin, with old languages like C and C++. My name is Michal Kowalczyk and I work for TomTom. During this talk from Mobilization 2017, Michał Kowalczyk provides you with ready-to-use tools that will let you utilize a huge codebase of C and C++ in your project, and discuss differences between them. Still, one thing didn’t change: as embedded programmers, in order to provide better performance, reduce battery use, etc., we sometimes need to operate on a lower level. The appearance of Swift and Kotlin is a great change in mobile world and there are a number of advantages to using them.
0 Comments
Leave a Reply. |