# Ruby 3.1.0 릴리즈

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

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=5620](https://news.hada.io/topic?id=5620)
- GeekNews Markdown: [https://news.hada.io/topic/5620.md](https://news.hada.io/topic/5620.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-12-26T09:54:02+09:00
- Updated: 2021-12-26T09:54:02+09:00
- Original source: [ruby-lang.org](https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/)
- Points: 5
- Comments: 1

## Topic Body

- YJIT 머지 : Shopify가 만든 새로운 인프로세스 JIT 컴파일러

ㅤ→ Lazy Basic Block Versioning(LBBV) 아키텍처

ㅤ→ 웜업 속도 및 성능 개선. 약 22%~39%

ㅤ→ 기본은 비활성화. --yjit 로 사용 가능

- 새로 작성된 debug.gem  포함

ㅤ→ 디버깅 성능 개선

ㅤ→ 원격 디버깅 지원

ㅤ→ VSCode/크롬 같은 디버깅 프론트엔드 지원

ㅤ→ 멀티프로세스/멀티쓰레드 디버깅

ㅤ→ 컬러풀 REPL 제공

ㅤ→ Record & Replay

- error_highlight 젬 추가

ㅤ→ 백트레이스에서 상세한 에러 위치를 보여줌

- IRB에 자동완성 기능 추가

ㅤ→ 문서가 설치되어 있다면, 자동 완성시 문서를 옆에 보여줌

- 언어

ㅤ→ Hash 리터럴 및 키워드 인자에서 값 생략 가능

ㅤㅤ⇨ {x: x, y: y} 는 {x:, y:}

ㅤㅤ⇨ foo(x: x, y: y) 는 foo(x:, y:)

ㅤ→ 패턴 매칭시 Pin 연산자(^) 에 표현식 사용 가능

ㅤㅤ⇨ Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a

ㅤ→ 원라인 패턴 매칭시 괄호 생략 가능

ㅤㅤ⇨ [0, 1] => _, x

ㅤㅤ⇨ {y: 2} => y:

## Comments



### Comment 8133

- Author: xguru
- Created: 2021-12-26T09:54:11+09:00
- Points: 2

매년 크리스마스에 릴리즈 하는 전통에 따라 올해도

- Ruby 3.0.0 릴리즈 https://news.hada.io/topic?id=3471

- Ruby 2.7.0 릴리즈 https://news.hada.io/topic?id=1149
