~/talk

Exposing Go code to Android and Python

Talkat dotGo 2017 · on Monday, 2017-11-06· [go, android, python]
links:none on file
slides:none on file

Creates a Go library that actually builds an AAR via gomobile bind for Android and a Python extension by compiling with -buildmode=c-shared and using cgo wrappers, not just handwavy examples. Uses protobuf and a protoc plugin to generate type serializers and API stubs so serialization keeps interfaces to strings and C glue stays tiny. Provides a code generator that emits Go plus C wrapper files and produces both artifacts automatically.

AI-written summary · about

  1. 0:00Intro
  2. 0:24From Go to Android
  3. 0:44From Go to Python
  4. 1:56Making Go generate the glue code
  5. 2:06Serialization of your inputs and outputs
  6. 2:53The Protobuf language and tools
  7. 3:26Making Protobuf generate your API
  8. 4:34To sum up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.