From: "Eregon (Benoit Daloze) via ruby-core" Date: 2025-11-18T17:31:47+00:00 Subject: [ruby-core:123850] [Ruby Feature#21695] Optimizing Ruby performance with Ruby itself instead of Rust Issue #21695 has been updated by Eregon (Benoit Daloze). What are you proposing exactly? A "tool" is very vague. Do you mean a JIT compiler for Ruby written in Ruby? Something else? Are you interested in speeding up ERB specifically, or Ruby in general? Why do you think it would achieve better results than a JIT compiler for Ruby written in Rust? (I think the language in which a JIT is written has little impact on the performance of emitted code, but it matters a lot more for startup/warmup) Regarding manual memory management, can't you use Fiddle or FFI which already provides that? ---------------------------------------- Feature #21695: Optimizing Ruby performance with Ruby itself instead of Rust https://bugs.ruby-lang.org/issues/21695#change-115248 * Author: fredlinhares (Frederico Linhares) * Status: Open ---------------------------------------- I am using ERB on top of C for a game I am making now. We can use the tool to improve the productivity, memory safety, and runtime speed for Ruby. It can also replace a Rust JIT compiler for better results. The only problem is that it requires some level of manual memory management, while Rust does it all for you. If I demonstrate that it is better than Rust in practice, would you be willing to incorporate it into the Ruby language? I want to know because making it more generic will require more effort from me; if you are not interested, I won���t make the tool public. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/