Live data from Hacker News

Ruby 2.6.0-preview2 released with JIT

ruby-lang.org

1–10 of 136 posts

Re: Ruby 2.6.0-preview2 released with JIT

#7

> Unlike ordinary JIT compilers for other languages, Ruby’s JIT compiler does JIT compilation in a unique way, which prints C code to a disk and spawns common C compiler process to generate native cod e. Oh dear god.

Same as the last stage of the SQL Server query optimizer then. (hey MS)

Re: Ruby 2.6.0-preview2 released with JIT

#8
post #6

> Unlike ordinary JIT compilers for other languages, Ruby’s JIT compiler does JIT compilation in a unique way, which prints C code to a disk and spawns common C compiler process to generate native cod e. Oh dear god.

Why aren't they using LLVM :-/

They answer this on the github:

> Unstable interfaces. An LLVM JIT is already used by Rubicon. A lot of efforts in preparation of code used by RTL insns (an environment)

https://github.com/vnmakarov/ruby/tree/rtl_mjit_branch#a-few...

Re: Ruby 2.6.0-preview2 released with JIT

#10
post #6

> Unlike ordinary JIT compilers for other languages, Ruby’s JIT compiler does JIT compilation in a unique way, which prints C code to a disk and spawns common C compiler process to generate native cod e. Oh dear god.

Why aren't they using LLVM :-/

The new Ruby method JIT can use either GCC or clang as the backend. It uses C as an intermediate representation.
Post reply on HN