Cross Platform Dev TLV
Details
The very first meetup of Cross Platform Dev TLV!
Agenda
18:00 - 18:30 - Drinks and Pizza :D
18:30 - 18:40 - Intro
18:40 - 19:30 - [English] The Salami Method (Adi Shavit)
19:30 - 20:00 - Porting AutoCAD To Cross Platform (Max Raskin)
20:00 - 20:30 - Sharing Java code between Android and iOS with J2ObjC (Nathan Satanovsky)
[This talk is in English] The Salami Method (Adi Shavit)
Be it creating DLLs, Android NDK/JNI, C++ on iOS or even GUI-based desktop apps, many samples, articles, tutorials and examples frequently mix platform specific code with core functionality. While this might serve to demonstrate specific API usage and techniques, it often leads to spaghetti code. The result is a refactoring and maintenance nightmare that is non-portable, untestable with ample nooks and crannies for bugs to hide in. To make things worse, module boundaries (e.g. DLL APIs), are dangerous places where error handling must be considered and addressed carefully as things like exceptions might not be able to percolate further causing program termination or undefined-behavior.
The Salami Method finely distinguishes between the different aspects and layers required for exposing platform-independent C++ on different “specific” platforms. At its extreme it strives to create a single, thin, transparent layer for each such aspect so that each layer is more easily built, tested, debugged, managed and maintained.
I will introduce the Salami Method and show a practical example of using it build a single C++ OpenCV app targeting both the desktop and the web with the same codebase.
Adi Shavit is an experienced software architect and a computer vision, image processing, and machine learning expert with an emphasis on real-time applications. He specializes in building cross-platform, high-performance software combined with high production quality and maintainable codebases. He has built many products, apps, and services that leverage OpenCV. Adi has been an OpenCV user and contributor since it was in early beta back in 2000. Since then, he has been using it pretty much continuously to build systems and products ranging from embedded, vehicle, and mobile apps, through to desktops and large, distributed, cloud-based servers and services. Adi is also the designer of the OpenCV logo.
Porting AutoCAD To Cross Platform (Max Raskin)
AutoCAD is Autodesk’s flagship product, we’ll talk about how we took a 30+ year old C++ desktop product and made it portable for mobile and web while still releasing desktop versions. We’ll talk about the techniques & approaches we used to make it possible.
• Cross thread communications - our approach to undertaking this involves minimal locking and getting fast responses to user input.
• Generation of cross platform API - how would you share an API among platforms? would you write it manually or would you generate - we took the latter approach.
• Sharing tests across platforms - write once, test everywhere, how we achieved this.
• Tools of the trade - we'll overview our environment, CI, IDEs, utilities and setup.
Max Raskin is an experienced software engineer and manager. His resume includes full stack web development, game and app development for mobile devices.
At present he leads the AutoCAD Mobile Core team at Autodesk.
Sharing Java code between Android and iOS with J2ObjC (Nathan Satanovsky)
Many startups and larger companies face the need to develop almost identical apps for the two major mobile platforms - Android and iOS. Sharing code between these two platforms can greatly reduce costs for developing the apps and shorten their time to market. However, every method of sharing code has its drawbacks and complexities, such as using C/C++ for shared code or using non-native UI components. These drawbacks lead some developers to abandon this route, and instead develop two separate code bases.
I'll present one less known way to solve this problem - J2ObjC from Google. This tool allows having a common Java code base for the two platforms, leaving only a thin UI layer unique to each OS. I'll illustrate a simple pair of Android and iOS apps built using this tool, and discuss its pros and cons in comparison to its alternatives.
J2ObjC may be the right tool for your next app!
Nathan Satanovsky is a full-stack developer, experienced with designing and building all sorts of apps - mobile, web, server side, games and security related.
