SlideShare a Scribd company logo
How to use Ruby code inside Elixir
Weverton Timoteo - @wevtimoteo
ErlPort
Uses Erlang port protocol to simplify connection between languages
ErlPort
! Released 1.0.0alpha at Jun, 2013
! 488 stars (Github)
! Supports Module-Function-Arguments (MFA) API (chain code)
Erlang Ports and Port Drivers
! byte-oriented interface to an external program
! Erlang can communicate with it by sending and receiving lists of bytes,
including binaries
Erlang External Term Format
! The external term format is mainly used in the distribution mechanism of
Erlang
! As Erlang has a fixed number of types, there is no need for a programmer
to define a specification for the external format used within some
application
Export
Erlport wrapper for Elixir
• Last commit Apr, 2017
Live demo
Erlectricity
! Needs to install `erlectricity` gem
! Uses Erlectricity DSL
! Last commit Oct, 2009
Live demo
Erlix
! Requires mod in mix file
! Requires `erlix` gem
! Last commit Mar, 2014
Live demo
Usage ideas?
Thank you!
@wevtimoteo
References
! ErlPort
! ErlPort Repository
! Erlang Port Protocol
! Erlang External Term Format
! Export (ErlPort Wrapper)
! Erlectricity
! Erlix
Live Demo
• Elixir, Ruby, don’t fight. Talk
• Elixir, Ruby, don’t fight. Talk… with Electricity
• Elixir, Ruby, don’t fight. Talk… with Erlix
• Elixir, Ruby, don’t fight. Benchmark!

More Related Content

PPTX
Computer Language Translator
PPTX
Python Programming
PPT
Os Worthington
PDF
Raspberry using Python Session 3
PPTX
Compiler lecture 02
PDF
Erlang, LFE, Joxa and Elixir: Established and Emerging Languages in the Erlan...
PDF
Language translators
Computer Language Translator
Python Programming
Os Worthington
Raspberry using Python Session 3
Compiler lecture 02
Erlang, LFE, Joxa and Elixir: Established and Emerging Languages in the Erlan...
Language translators

What's hot (20)

PPTX
Future of PERL in IT
PDF
1 introduction to compiler
PDF
Python for Swift
PDF
Introduction to Scala Implicits, Pimp my library and Typeclasses
PDF
unit1pdf__2021_12_14_12_37_34.pdf
PDF
Chapter1pdf__2021_11_23_10_53_20.pdf
PPT
High Performance Erlang
PDF
Compiler type
PPTX
Language Translator ( Compiler)
PPTX
PART 1 - Python Tutorial | Variables and Data Types in Python
KEY
Programming with Python: Week 1
PPSX
PDF
Atks (Arabic Toolkit services)
PPTX
compiler and their types
DOC
PPTX
Learning programming by: Ysa & Faye
PPTX
Learning programming
PPTX
Compiler vs interpreter
PPTX
Types of Compilers
PPTX
COMPILER DESIGN OPTIONS
Future of PERL in IT
1 introduction to compiler
Python for Swift
Introduction to Scala Implicits, Pimp my library and Typeclasses
unit1pdf__2021_12_14_12_37_34.pdf
Chapter1pdf__2021_11_23_10_53_20.pdf
High Performance Erlang
Compiler type
Language Translator ( Compiler)
PART 1 - Python Tutorial | Variables and Data Types in Python
Programming with Python: Week 1
Atks (Arabic Toolkit services)
compiler and their types
Learning programming by: Ysa & Faye
Learning programming
Compiler vs interpreter
Types of Compilers
COMPILER DESIGN OPTIONS
Ad

Similar to How to use Ruby code inside Elixir (20)

PDF
Elixir for aspiring Erlang developers
PDF
Introduction to Erlang/(Elixir) at a Webilea Hands-On Session
PPTX
Adopting Elixir in a 10 year old codebase
PPT
Building An Elixir Package
PDF
Elixir
PPTX
Introduction to functional programming, with Elixir
PDF
ElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
PDF
Introduction to Elixir
PDF
Erlang and Elixir
PDF
Learning Elixir as a Rubyist
PPTX
Children of Ruby
PDF
Elixir and elm
PDF
Introdução à Elixir
PDF
Elixir intro
PPTX
Repeating History...On Purpose...with Elixir
PDF
外傷的Elixir
PDF
Introducing Elixir and OTP at the Erlang BASH
PDF
Pilgrim's Progress to the Promised Land by Robert Virding
PDF
Anton Mishchuk - Multi-language FBP with Flowex
PPTX
Elixir for aspiring Erlang developers
Introduction to Erlang/(Elixir) at a Webilea Hands-On Session
Adopting Elixir in a 10 year old codebase
Building An Elixir Package
Elixir
Introduction to functional programming, with Elixir
ElixirConf 2017 - Writing an Editor in Elixir - Ian Duggan
Introduction to Elixir
Erlang and Elixir
Learning Elixir as a Rubyist
Children of Ruby
Elixir and elm
Introdução à Elixir
Elixir intro
Repeating History...On Purpose...with Elixir
外傷的Elixir
Introducing Elixir and OTP at the Erlang BASH
Pilgrim's Progress to the Promised Land by Robert Virding
Anton Mishchuk - Multi-language FBP with Flowex
Ad

More from Weverton Timoteo (18)

PDF
[Ruby Summit Brasil 2020] Ruby 3 e Análise estática - O que esperar e o que s...
PDF
[Devs Cansados Evento 2020] Queria saber a qualidade do meu código: o que olho?
PDF
[CodeBEAM BR 2020] Construindo e Distribuindo CLIs com Elixir
PDF
Ruby 3 e Análise estática - O que esperar e o que significa para o nosso código
PDF
[Gophercon 2019] Analysing code quality with linters and static analysis
PDF
Elixir Brasil 2019 - Quality: A Panacéia para seu código Elixir
PDF
Floripa Gophers - Analysing Code Quality (Linters and Static Analysis)
PPTX
21o. RubyFloripa - Maintaining legacy Rails app and introducing Elixir
PPTX
17º RubyFloripa - Coding Dojo
PDF
How to draw a map - What is projections?
PDF
Gerenciando dependências front-end no Rails
PDF
Definindo a quantidade de workers para sua app
PDF
Introdução ao Chef Ops
PDF
Brincando com FFI no Ruby
PDF
Como definir a quantidade de workers para sua aplicação
PDF
Swift language - A fast overview of some features
PDF
Vim Registers
PDF
Developing an Universal iOS app
[Ruby Summit Brasil 2020] Ruby 3 e Análise estática - O que esperar e o que s...
[Devs Cansados Evento 2020] Queria saber a qualidade do meu código: o que olho?
[CodeBEAM BR 2020] Construindo e Distribuindo CLIs com Elixir
Ruby 3 e Análise estática - O que esperar e o que significa para o nosso código
[Gophercon 2019] Analysing code quality with linters and static analysis
Elixir Brasil 2019 - Quality: A Panacéia para seu código Elixir
Floripa Gophers - Analysing Code Quality (Linters and Static Analysis)
21o. RubyFloripa - Maintaining legacy Rails app and introducing Elixir
17º RubyFloripa - Coding Dojo
How to draw a map - What is projections?
Gerenciando dependências front-end no Rails
Definindo a quantidade de workers para sua app
Introdução ao Chef Ops
Brincando com FFI no Ruby
Como definir a quantidade de workers para sua aplicação
Swift language - A fast overview of some features
Vim Registers
Developing an Universal iOS app

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
cuic standard and advanced reporting.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Big Data Technologies - Introduction.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
KodekX | Application Modernization Development
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Cloud computing and distributed systems.
Reach Out and Touch Someone: Haptics and Empathic Computing
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
cuic standard and advanced reporting.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
Per capita expenditure prediction using model stacking based on satellite ima...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
Programs and apps: productivity, graphics, security and other tools
Big Data Technologies - Introduction.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KodekX | Application Modernization Development
The Rise and Fall of 3GPP – Time for a Sabbatical?

How to use Ruby code inside Elixir