[EN] Compiling Ruby to idiomatic code in static languages / @alehander42, @zah

Опубликовано: 03 Март 2026
на канале: RubyKaigi
256
like

Alexander Ivanov @alehander42, Zahary Karadjov @zah

Generating code and compiling code are very useful, but usually the target is the machine: so the generated code is very unfriendly for programmers. We will show two approaches with which we are able to compile Ruby to code in statically typed languages and make it idiomatic and nice

pseudocode-like(where we support small programs in a subset of Ruby, but we can generate correct statically typed code in C++, C#, Go, Java) and

realcode-like, where we infer ruby types on runtime and autotranslate more complicated codebase to Nim(rb2nim): the result requires some manual work, but automates most of it.

RubyKaigi 2019 https://rubykaigi.org/2019/presentati...