Everything you need to know about FFI in Gleam

Published: 30 June 2024
on channel: Isaac Harris-Holt
6,336
273

Gleam is a great language, but sometimes you just need to access the underlying platform, be it JavaScript, Erlang or Elixir. This video will teach you just how to do that using the power of foreign function interfaces, or FFIs!

Resources:
Externals in Gleam: https://tour.gleam.run/externals
gleam_javascript: https://hexdocs.pm/gleam_javascript/
gleam_erlang: https://hexdocs.pm/gleam_erlang/

__________________________________________

Check out my other socials!
🎮 Discord ▶ https://discordapp.com/invite/bWrctJ7
🐦 Twitter ▶   / isaacharrisholt  
🖥️ Portfolio ▶ https://ihh.dev
📝 Blog ▶ https://isaacharrisholt.com
__________________________________________

Timestamps:
00:00 - Introduction and explanation
00:58 - Writing foreign functions
03:13 - Default implementations
04:17 - Erlang-specific FFI
05:59 - JavaScript-specific FFI
08:23 - When to use FFI

#gleam #softwareengineer #erlang #javascript #elixir