Skip to Content
Erlang and OTP in Action
book

Erlang and OTP in Action

by Eric Merritt, Richard Carlsson, Martin Logan
November 2010
Intermediate to advanced
432 pages
15h 8m
English
Manning Publications
Content preview from Erlang and OTP in Action

Chapter 12. Integrating with foreign code using ports and NIFs

This chapter covers

  • Ports, linked-in drivers, and natively implemented functions (NIFs)
  • Integrating a third-party C library
  • Integrating the C library using NIFs

At this point, the cache does a number of interesting things, such as log its actions, distribute across multiple nodes, and automatically connect to the cluster. It also has a RESTful HTTP interface for storing binary data, as well as a simpler text-based TCP interface for storing Erlang terms in general. Overall, the Erlware people are happy. But it would be nice if the clients who use the HTTP interface were able to store structured data in a standard way, and without doing their own marshalling and unmarshalling. The ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Property-Based Testing with PropEr, Erlang, and Elixir

Property-Based Testing with PropEr, Erlang, and Elixir

Fred Hebert
Erlang Programming

Erlang Programming

Francesco Cesarini, Simon Thompson

Publisher Resources

ISBN: 9781933988788Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link