Skip to content

Core C++ in Cyberspace! - Online Event

Photo of Adi Shavit
Hosted By
Adi S. and 3 others
Core C++ in Cyberspace! - Online Event

Details

Join us for our first ONLINE event!

The event will also include a Show and Tell section, In which YOU will be able to present a short slide.

:: :: ::

18:50 Gathering and socializing
19:00 Welcome notes, Adi Shavit
19:15 Package management for Android C++
19:30 Variations on Variant, Roi Barkan
20:15 Break
20:20 Show and Tell
21:00 End of event

:: :: ::

  • Package management for Android C++, Alex Cohn *

Android developers have been using native code (mostly C++ and C) since the very beginning, but bundling such libraries in apps has never been painless. Recently, Google has built a new package management system: https://google.github.io/prefab which is fully integrated with other tools that Android developers are familiar with and promises easier lives for both consumers and maintainers of native libraries. In this short talk, I will show an example of using Prefab, what it solves and what it doesn't solve yet.

:: :: ::

  • Variations on Variant, Roi Barkan *

std::variant was added to C++ in 2017 as a type-safe alternative to C's union. To start us off, I will shortly introduce the rationale of std::variant and the typical ways in which it can be used. I will also try to give insights into the way std::variant is typically implemented, highlighting the memory layout and its run-time performance implications.

The bulk of the talk will then focus on the key differences between std::variant and union, and discuss a common use-case where unions are typically used which std::variant does not support - serialization of streams of a trivially copyable object to files or to network. Then, I'll suggest 3 approaches to tackle this shortcoming: Intrusive-Variant, Variant-of-Base, and Variant-of-BasePtr. After presenting and describing the 3 approaches above, I will dive deeper into the counterintuitive uses of std::variant, such as a simple and safe mechanism for de-virtualization.

After attending this talk, participants should be better equipped to use this relatively new concept to modernize existing low-level C style code and will have a better understanding of how variants work under the hood.

:: :: ::

  • Show and Tell *

An audience participation section, in which YOU will be able to present 1 slide/picture/code snippet and talk about it for up to 5 minutes.

This is a great way to practice passing an idea in 5 min and share your thoughts. Feel free to get creative! :)

:: :: ::

The event will NOT BE RECORDED, so don't miss our special CoreCpp online meetup!

Please notice that since it's an ONLINE event, the talk will start as scheduled.

Photo of Core C++ group
Core C++
See more events
Core C++
Photo of Core C++ group
No ratings yet
Online event
This event has passed