~/talk

Dart Beyond Flutter: Journeys in Embedding Dart

Talkat Fluttercon USA 2024 · 2024-09-19..09-20· [embedded-and-hardware]
name:Jeff Ward
links:none on file
slides:none on file

Explains how to build an embeddable Dart VM by patching the SDK into a libdart static library and using the GitHub project Dart shared library to run scripts, initialize isolates, and call Dart_DL_initialize/Dart_DL_load_script. Shows a working game engine using cute framework with Dart logic, FFI for create_entity/get_drawable, hot reload on save, async via drain_microtasks, and finalizers/message callbacks to ensure garbage collection. Also demos a prototype GDO Dart integration with codegen and isolate-moving for multi-threaded editor use.

AI-written summary · about

  1. 0:00Introduction
  2. 5:18Dart embedding overview
  3. 10:56Initializing Dart VM
  4. 14:24C++ integration demos
  5. 15:09Game loop execution
  6. 18:19Hot reload in embed
  7. 19:22Async in embedded Dart
  8. 21:06Memory management
  9. 25:39Ensuring finalizers are called properly
  10. 26:43GC hints with notify idle
  11. 28:27Dart in Godot engine
  12. 33:27Disadvantages of Dart embedding
  13. 35:13Q&A
~/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.