Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RubyConf 2016 - C Ruby? C Ruby Go! Go Ruby Go! by Loren Segal Ever wanted to rewrite performance sensitive code as a native Ruby extension, but got stuck trying to navigate the depths of Ruby’s C API before you could get anything done? Or maybe you’re just not comfortable with C and want an easier path. Do you know any Go? Well, if you do, you’re in luck! Join us for this talk about a tool named gorb that will quickly and easily let you generate native Ruby extension wrappers for your Go programs. And if you don’t know Go, come anyway, it’s really easy to learn! We’ll have you writing blazing fast code that you can use right from Ruby, in no time at all.
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the talk titled "C Ruby? C Ruby Go! Go Ruby Go!" at RubyConf 2016, Loren Segal discusses the integration of Ruby and Go through a tool called Gorb, which generates native Ruby extension wrappers for Go programs. Segal, a developer with experience in various languages, introduces the strengths and weaknesses of both Ruby and Go. - **Introduction of Go and Ruby**: Ruby is often viewed as a slower and less efficient programming language, yet it remains beloved for its beauty and simplicity. In contrast, Go is noted for its speed and ease of use, along with features like structural typing and fast garbage collection. - **Overview of Gorb**: Gorb is designed to simplify the process of writing performance-sensitive code in Go while integrating it within the Ruby environment. This tool helps Ruby developers who are not comfortable with C, as it generates the necessary wrappers without requiring them to write C code directly. - **How Gorb Works**: Segal explains how Gorb analyzes data structures and creates corresponding Ruby classes, allowing Ruby code to leverage the performance benefits of Go. He provides a demonstration with a Fibonacci implementation, showing how easy it is to generate native extensions using Gorb commands like 'gorp gen.' This allows Ruby developers to seamlessly call Go functionality right from their Ruby code without deep dives into boilerplate code or extensive setup. - **Limitations of Gorb**: Despite its advantages, Gorb has limitations, such as restricted concurrency support due to Ruby's Global Interpreter Lock (GIL), and it does not support some advanced features found in Go. - **Concluding thoughts**: Segal emphasizes the value of experimenting with Go from a Ruby perspective as a way to expand one's programming skills. He encourages the audience to explore new languages together to uncover their capabilities. The session concludes with Segal inviting questions from the audience, reinforcing the collaborative spirit of learning about the integration between these two programming languages.
Suggest modifications
Cancel