Upgrade to Pro — share decks privately, control downloads, hide ads and more …

High Performance code sharing between Android, iOS and Web

High Performance code sharing between Android, iOS and Web

Processor-intensive features such as video editing, ML, and sensor inputs require low-level optimization to run effectively within mobile apps. What are the challenges and alternatives when building high-performance, multi-platform code? In this session, we’ll cover the advantages of C++, Rust, and Kotlin when building shared libraries for both iOS and Android.

Video available here https://www.youtube.com/watch?v=Jh9KaWir3gM

Giovanni Laquidara

February 06, 2023
Tweet

More Decks by Giovanni Laquidara

Other Decks in Programming

Transcript

  1. C++ CROSS-PLATFORM LANGUAGE FOR HİGH-PERFORMANCE APPLİCATİONS EXTENSİON OF C LARGE

    AND ACTİVE COMMUNİTY, LOT OF LİBRARİES AND FRAMEWORKS AVAİLABLE.
  2. // Header file #include <iostream> using namespace std; // Main()

    function: where the execution of program begins int main() { // prints hello world cout << "Hello World"; return 0; }
  3. // pointer to int: int *pi; // pointer to const

    int: const int *pci; . . . // constraint error pi = pci // dangerous but permitted pi = (int *)pci;
  4. C++ in Android app Android Studio helps Download and install

    many tools • Cmake • NDK • Gradle • LLDB
  5. Kotlin MODERN, CONCİSE AND İNTEROPERABLE BY JETBRAİNS TO İMPROVE EXPERİENCE

    ON JVM NULL SAFETY, COROUTİNES, AND TYPE İNFERENCE. ANDROİD APPS DEVELOPMENT.
  6. Kotlin in Android • De Facto Native Language today over

    70 of Google's apps are built using Kotlin
  7. Rust HİGH-PERFORMANCE SYSTEMS PROGRAMMİNG LANGUAGE BY MOZİLLA AS SAFER AND

    MORE EFFİCİENT ALTERNATİVE TO C AND C++ MEMORY AND THREAD SAFETY NO GARBAGE COLLECTOR 7TH YEAR İN A ROW 'MOST-LOVED LANGUAGE’ İN STACK OVERFLOW
  8. Rust delivers the energy efficiency of C without the risk

    of undefined behavior. We can cut energy use in half without losing the benefits of memory safety.
  9. Rust in Android app Android Studio helps Download and install

    many tools • Cmake • NDK • Gradle • LLDB
  10. Choosing…. FAST PERFOMANCE EASY TO FİND DEVELOPERS HARD TO FIND

    SKİLLED DEVELOPERS SAFETY CAN BE AN İSSUE COMPLEXİTY OF INTEGRATİON – USE DJNNI
  11. Choosing…. LESS PERFOMANT EASY TO FİND DEVELOPERS İN THE ANDROİD

    WORLD SİMİLARİTY WİTH SWIFT SAFE EASY TO IN USE MULTİPLATORM MODE
  12. Choosing…. SAFE! HIGH PERFOMANCE INTEGRATİON LIKE C++ (UNIFFI) READY FOR

    WEB ( WASM ) STEEP LEARNING CURVE MOST LOVED GOOD DEPENDENCY SYSTEM ( A BETTER NPM )