Recently, I did some research into building a Ruby gem with native extensions built with Crystal. I stopped because the project for doing this (Crystallized Ruby) hasn’t been maintained for a while. But, I might have heard that it still works completely or partially anyways.
So, if you explore building a Ruby gem with a Crystal-lang native extension, I’d be very interested in reading such a blog post.
Best,
Andy
LinkedIn: Andy Maleh | LinkedIn
Blog: https://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub
Twitter: https://www.twitter.com/AndyObtiva
···
On Aug 31, 2022, at 8:07 AM, Mohit Sindhwani <mo_mail@onghu.com> wrote:
Hi Everyone,I have been thinking about writing a blog post for creating a native gem but rather than going forward (i.e., creating a gem), I am thinking of starting with an open source gem and looking at what it does and how.
I intend to use a simple single-file C gem [https://github.com/klaxit/fast-polylines\] as the base and I'm thinking of this as the rough outline. Open to get some inputs on whether you'd be interested in anything more on this?
About the Gem itself
# Background to the Gem
# Installing the Gem from Rubygems
# Unpacking the Gem so that we can study it
# Alternatively, grabbing the source from GitHub
# Building the Gem and Installing it Locally
# Running the Tests
# Running the Performance Comparison
# Making ChangesLooking at Everything
# How the interface works from Ruby <-> C
# What the C code looks like
# What the Ruby code looks like
# Looking at the Makefile
# Having a Makefile that also works on Windows
# How the specs are run and what they test
# Adding Performance ComparisonsFinally (possibly)
# How can we improve the gem/ make it more intuitive to useI expect it to take a few weeks to put together, so don't expect it any time soon
Best regards,
Mohit.Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>