You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are pleased to announce the release of Ruby {{ release.version }}. Ruby 3.2 adds many features and performance improvements.
12
+
Ruby {{ release.version }} 릴리스를 알리게 되어 기쁩니다. Ruby 3.2는 많은 기능과 성능 향상을 포함하고 있습니다.
13
13
14
+
## WASI 기반 웹어셈블리 지원
14
15
15
-
## WASI based WebAssembly support
16
-
17
-
This is an initial port of WASI based WebAssembly support. This enables a CRuby binary to be available on Web browser, Serverless Edge environment, and other WebAssembly/WASI embedders. Currently this port passes basic and bootstrap test suites not using Thread API.
16
+
WASI에 기반해 웹어셈블리를 지원하는 첫 이식판입니다. 이를 통해 CRuby 바이너리는 웹 브라우저, 서버리스 엣지 환경, 그 이외의 웹어셈블리/WASI를 사용가능한 환경에서 동작할 수 있습니다. 현재 이 이식판은 스레드 API이외의 기본적인 테스트와 부트스트랩 테스트 스위트를 통과합니다.
18
17
19
18

20
19
21
-
### Background
20
+
### 배경
22
21
23
-
[WebAssembly (WASM)](https://webassembly.org/) is originally introduced to run programs safely and fast in web browsers. But its objective - running programs efficiently with security on various environment - is long wanted not only by web but also by general applications.
22
+
[웹어셈블리 (WASM)](https://webassembly.org/)는 본래 웹 브라우저에서 프로그램을 안전하고 빠르게 실행하기 위해서 만들어졌습니다. 하지만 그 목적 중 하나인 프로그램을 다양한 환경에서 안전하고 효율적으로 실행하는 것은 웹 뿐만이 아니라 일반적인 애플리케이션도 바라던 것입니다.
24
23
25
24
[WASI (The WebAssembly System Interface)](https://wasi.dev/) is designed for such use cases. Though such applications need to communicate with operating systems, WebAssembly runs on a virtual machine which didn't have a system interface. WASI standardizes it.
25
+
[WASI (The WebAssembly System Interface)](https://wasi.dev/)는 이러한 용도를 위해 설계되었습니다. 이러한 애플리케이션은 운영체제와 통신해야합니다만, 웹어셈블리는 시스템 인터페이스를 가지지 않는 가상 머신 위에서 동작합니다. WASI는 이 인터페이스를 표준화합니다.
26
26
27
-
WebAssembly/WASI Support in Ruby intends to leverage those projects. It enables Ruby developers to write applications which runs on such promised platform.
27
+
Ruby의 웹어셈블리/WASI 지원은 이러한 프로젝트들을 활용하기 위함입니다. 이를 통해 Ruby 개발자들이 기대받는 플랫폼에서 움직이는 애플리케이션을 작성할 수 있습니다.
28
28
29
-
### Use case
29
+
### 사용 예시
30
30
31
-
This support encourages developers can utilize CRuby in WebAssembly environment. An example use case of it is [TryRuby playground](https://try.ruby-lang.org/playground/)'s CRuby support. Now you can try original CRuby in your web browser.
31
+
이는 개발자가 웹어셈블리 환경에서 CRuby를 활용할 수 있도록 돕습니다. 하나의 예로, [TryRuby playground](https://try.ruby-lang.org/playground/)의 CRuby 지원이 있습니다. 이제 CRuby를 웹 브라우저 상에서 직접 사용해볼 수 있습니다.
32
32
33
-
### Technical points
33
+
### 기술적인 부분
34
34
35
-
Today’s WASI and WebAssembly itself has some missing features to implement Fiber, exception, and GC because it’s still evolving and also for security reasons. So CRuby fills the gap by using Asyncify, which is a binary transformation technique to control execution in userland.
35
+
현재 WASI와 웹어셈블리 자체에는 Fiber, 예외 처리, GC를 구현하기 위한 일부 기능이 부족합니다. 이는 여전히 개발중이라는 점도 있지만, 보안때문이기도 합니다. 그래서 CRuby는 유저랜드에서의 실행을 제어하기 위한 바이너리 변환 기술인 Asyncify를 사용해 그 차이를 매꿉니다.
36
36
37
-
In addition, we built [a VFS on top of WASI](https://github.com/kateinoigakukun/wasi-vfs/wiki/Getting-Started-with-CRuby) so that we can easily pack Ruby apps into a single .wasm file. This makes distribution of Ruby apps a bit easier.
37
+
나아가서 Ruby 애플리케이션을 간단하게 단일 .wasm 파일로 패키징할 수 있도록 [WASI 상에 VFS](https://github.com/kateinoigakukun/wasi-vfs/wiki/Getting-Started-with-CRuby)를 구현했습니다. 이는 Ruby 애플리케이션의 배포를 쉽게 해줄 것입니다.
38
38
39
39
40
-
### Related links
40
+
### 관련 링크
41
41
42
42
*[Add WASI based WebAssembly support #5407](https://github.com/ruby/ruby/pull/5407)
43
43
*[An Update on WebAssembly/WASI Support in Ruby](https://itnext.io/final-report-webassembly-wasi-support-in-ruby-4aface7d90c9)
44
44
45
-
## Regexp timeout
45
+
## 정규표현식 타임아웃
46
46
47
-
A timeout feature for Regexp matching is introduced.
47
+
정규표현식 일치 처리 중에 타임아웃이 가능해졌습니다.
48
48
49
49
```ruby
50
50
Regexp.timeout =1.0
51
51
52
52
/^a*b?a*$/=~"a"*50000+"x"
53
-
#=> Regexp::TimeoutError is raised in one second
53
+
#=> 1초 후에 Regexp::TimeoutError
54
54
```
55
55
56
-
It is known that Regexp matching may take unexpectedly long. If your code attempts to match an possibly inefficient Regexp against an untrusted input, an attacker may exploit it for efficient Denial of Service (so-called Regular expression DoS, or ReDoS).
56
+
정규표현식 일치는 기대와는 다르게 시간이 오래 걸리는 경우가 있습니다. 신뢰할 수 없는 입력에 대해서 비효율적일 가능성이 있는 정규표현식을 일치검사하고 있다면, 공격자는 이를 이용해 효율적으로 서비스 거부 공격(이를 정규표현식 DoS, 또는 ReDoS라고 불립니다)이 가능합니다.
57
57
58
-
The risk of DoS can be prevented or significantly mitigated by configuring `Regexp.timeout` according to the requirements of your Ruby application. Please try it out in your application and welcome your feedback.
58
+
Ruby 애플리케이션의 요구사항에 맞는 `Regexp.timeout`을 설정해 DoS에 대한 위험을 예방하거나 상당히 완화할 수 있습니다. 애플리케이션에 직접 설정해보세요. 피드백도 환영합니다.
59
59
60
-
Note that `Regexp.timeout` is a global configuration. If you want to use different timeout settings for some special Regexps, you may want to use `timeout`keyword for `Regexp.new`.
60
+
`Regexp.timeout`은 전역 설정임에 주의하세요. 일부의 툭수한 정규표현식에 대해서만 다른 타임아웃 설정을 사용하고 싶다면, `Regexp.new` 의 `timeout`키워드를 사용할 수 있습니다.
61
61
62
62
```ruby
63
63
Regexp.timeout =1.0
64
64
65
-
#This regexp has no timeout
65
+
#이 정규표현식은 타임아웃 설정이 없습니다.
66
66
long_time_re =Regexp.new("^a*b?a*$", timeout:nil)
67
67
68
-
long_time_re =~"a"*50000+"x"#never interrupted
68
+
long_time_re =~"a"*50000+"x"#타임아웃이 발생하지 않습니다.
69
69
```
70
70
71
-
The original proposal ishttps://bugs.ruby-lang.org/issues/17837
71
+
기능 제안 티켓:https://bugs.ruby-lang.org/issues/17837
72
72
73
73
74
-
## Other Notable New Features
74
+
## 그 이외의 주목할 만한 새 기능
75
75
76
-
### No longer bundle 3rd party sources
76
+
### 서드파티 소스코드를 더이상 내장하지 않음
77
77
78
-
*We no longer bundle 3rd party sources like `libyaml`,`libffi`.
78
+
*`libyaml`이나`libffi`와 같은 서드파티의 소스코드를 내장하지 않기로 결정했습니다.
79
79
80
-
*libyaml source has been removed from psych. You may need to install `libyaml-dev` with Ubuntu/Debian platform. The package name is different each platforms.
80
+
*psych 에 포함되어 있던 libyaml의 소스 코드는 삭제되었습니다. Ubuntu/Debian 환경이라면 직접 `libyaml-dev`를 설치해야합니다. 이 패키지의 이름은 각 환경마다 다를 수 있습니다.
81
81
82
-
*libffi will be removed from `fiddle` at preview2
82
+
*`fiddle`에 포함되어 있던 libffi는 preview2에서 삭제될 예정입니다.
83
83
84
-
### Language
84
+
### 언어
85
85
86
-
*Find pattern is no longer experimental.
86
+
*검색 패턴은 이제 정식 기능입니다.
87
87
88
88
89
-
## Performance improvements
89
+
## 성능 향상
90
90
91
91
92
92
93
-
## Other notable changes since 3.1
93
+
## 그 이외의 3.1 이후로 주목할 만한 변경
94
94
95
95
* Hash
96
-
* Hash#shift now always returns nil if the hash is
97
-
empty, instead of returning the default value or
98
-
calling the default proc. [[Bug #16908]]
96
+
* Hash#shift는 이제 해시가 비어있다면
97
+
기본 값이나 기본 프록을 호출한 결과값을 반환하는 대신
98
+
언제나 nil을 반환합니다. [[Bug #16908]]
99
99
100
100
* MatchData
101
-
* MatchData#byteoffset has been added. [[Feature #13110]]
0 commit comments