# RJIT, Ruby를 위한 새로운 JIT

> Clean Markdown view of GeekNews topic #8671. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8671](https://news.hada.io/topic?id=8671)
- GeekNews Markdown: [https://news.hada.io/topic/8671.md](https://news.hada.io/topic/8671.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-03-12T10:03:01+09:00
- Updated: 2023-03-12T10:03:01+09:00
- Original source: [github.com/ruby](https://github.com/ruby/ruby/pull/7448)
- Points: 7
- Comments: 0

## Topic Body

- 현재의 MJIT을 대체하는 PR   
- Pure-Ruby 어셈블러를 사용하여 네이티브 코드를 생성   
  - MJIT는 런타임에 C컴파일러를, YJIT는 빌드시에 Rust 컴파일러가 필요   
- 생성된 코드는 YJIT가 만든 것과 비슷   
  - 실제로 많은 메소드들이 Rust코드를 Ruby로 그대로 번역   
  - MJIT용 구현들을 제거해서 Ruby VM을 간소화   
- 벤치마크에서 YJIT보다는 엄청 느리지만, MJIT보다는 빠름

## Comments



_No public comments on this page._
