What are the ways to create ruby bindings to C++ libraries?

I know of course about swig. But there was a more modern approach now like pybind for python which I don't recall the name. And maybe there are others?

···

--
Gonzalo Garramuño
ggarra13@gmail.com

I gave this talk in Euruko 2021 about ruby and FFI using C maybe could be
useful for C++

···

El viernes, 26 de agosto de 2022, Gonzalo Garramuño <ggarra13@gmail.com> escribió:

I know of course about swig. But there was a more modern approach now
like pybind for python which I don't recall the name. And maybe there are
others?

--
Gonzalo Garramuño
ggarra13@gmail.com

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

give rice a look [https://github.com/jasonroelofs/rice\]

martin

···

On Fri, Aug 26, 2022 at 1:53 PM Gonzalo Garramuño <ggarra13@gmail.com> wrote:

I know of course about swig. But there was a more modern approach now
like pybind for python which I don't recall the name. And maybe there
are others?

--
Gonzalo Garramuño
ggarra13@gmail.com

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Here is a new article that got posted about how to build a Ruby C++
extension gem. The article author was not even a C++ expert, but he wanted
to build a binding for a useful C++ library, and he did it quickly,
creating a Ruby gem.

···

On Fri, Aug 26, 2022 at 7:14 PM Martin DeMello <martindemello@gmail.com> wrote:

give rice a look [https://github.com/jasonroelofs/rice\]

martin

On Fri, Aug 26, 2022 at 1:53 PM Gonzalo Garramuño <ggarra13@gmail.com> > wrote:

I know of course about swig. But there was a more modern approach now
like pybind for python which I don't recall the name. And maybe there
are others?

--
Gonzalo Garramuño
ggarra13@gmail.com

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh - Senior Developer - Lexop | LinkedIn
<https://www.linkedin.com/in/andymaleh&gt;
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub
Twitter: @AndyObtiva <https://twitter.com/AndyObtiva&gt;