Skip to content
/ Shu Public

This repository aims to store simple libs (gems) written in rust as an object of study.

Notifications You must be signed in to change notification settings

hsolrac/Shu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Summary

Introduction

This repository aims to store simple libs (gems) written in rust as an object of study.

Why is this interesting?

Ruby has a bad reputation for being considered slow (often said by people who don't understand what they're talking about, they're just haters), but it ends up having a bit of truth to it compared to other languages, I believe the big problem is garbage collection or poor memory management.

The fact is that if performance is something critical on your system, there are some ways to improve this without leaving ruby, you can use external libs. Which is our case here, there are several gems written in C, but we will use Rust o/.

Why Rust?

Quite directly, because i want to. :P.
Rust is on my roadmap, I think the language is very interesting, and it has a proposal to be very performative and safe, so it makes a lot of sense to use it for our objective.

How do we do it?

Using the FFI concept and the FFI Gem.

A foreign function interface (FFI) is a mechanism by which a program written in one programming language can call routines or make use of services written or compiled in another one. An FFI is often used in contexts where calls are made into binary dynamic-link library.

About

This repository aims to store simple libs (gems) written in rust as an object of study.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages