Book Image

DART Essentials

Book Image

DART Essentials

Overview of this book

Table of Contents (16 chapters)
Dart Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Writing Native Extensions for the Standalone Dart VM

This is the last chapter. We'll look at a slightly more advanced topic, which is writing native extensions in C/C++ for the standalone Dart VM. Don't worry if you've never seen C or C++; we'll use a very intuitive approach while trying to stay practical. In this chapter, we'll work on two examples:

  • Writing a fuzzy search algorithm as a C++ class and comparing its performance with the implementation shown in Chapter 2, Practical Dart

  • Writing bindings for the exiv2 library to read EXIF image metadata

The main purpose of this chapter is to give you the whole picture of Dart as a language. Most of the time, you probably won't write native extensions even when using Dart as a server-side language. In this chapter, we want to show you the enormous and nearly unlimited potential of Dart.