zlacker

[parent] [thread] 4 comments
1. nine_k+(OP)[view] [source] 2026-02-05 05:24:54
Is Ruby easy to embed in a C program?
replies(3): >>dismal+f3 >>bandra+K3 >>debugn+Fc
2. dismal+f3[view] [source] 2026-02-05 05:56:36
>>nine_k+(OP)
Yes -> https://mruby.org

It's also incredibly easy to extend the main Ruby implementation with C, C++, Odin, Zig, Rust, Fortran, etc... Literally a few lines.

replies(1): >>vidarh+PA
3. bandra+K3[view] [source] 2026-02-05 06:01:25
>>nine_k+(OP)
That was originally the point of Ruby
4. debugn+Fc[view] [source] 2026-02-05 07:29:59
>>nine_k+(OP)
RPG Maker used to embed Ruby before it was cool (and before they switched to JS for web support).
◧◩
5. vidarh+PA[view] [source] [discussion] 2026-02-05 10:52:55
>>dismal+f3
The main Ruby implementation is also fairly easy to embed. It's just not easy to embed multiple MRI ruby instances in a single application, and it's also a lot bigger than mruby.
[go to top]