TL;DR: The YJIT team wants to explore using Rust to help develop YJIT. The rest of CRuby will continue to build without Rust tools and building YJIT will remain optional. We’re currently exploring the possibility of porting YJIT to Rust and working on a small proof of concept that should be ready next month. The motivation behind this is that we are facing challenges in terms of code maintainabili
I know Sam opened #9113 4 years ago to suggest this but I'm revisiting the topic to see if there's any movement here for Ruby 2.6 or 2.7. I supply a major piece of Ruby infrastructure (Sidekiq) and I keep hearing over and over how Ruby is terrible with memory, a huge memory hog with their Rails apps. My users switch to jemalloc and a miracle occurs: their memory usage drops massively. Some data po
Status changed from Open to RejectedRuby often has two conversion methods for an object, e.g. #to_s and #to_str, #to_i and #to_int, #to_h and #to_hash. The former is used for explicit conversion, the latter is used for implicit conversion (from an object with identical method signature e.g. proxy). Matz.
New to_b method converts strings, symbols, numbers and nil values in a boolean value. to_b method is available on String, Symbol, Numeric, TrueClass, FalseClass and NilClass classes. String¶ Returns true if string is one of t, true, on, y, yes or 1 values. Returns false otherwise. Ignores trailing spaces and letter cases. 't'.to_b # => true 'true'.to_b # => true 'on'.to_b # => true 'y'.to_b # => t
まつもと ゆきひろです In message "Re: [ruby-dev:44708] [ruby-trunk - Feature #5513][Open] Numeric へ述語語の追加" on Sun, 30 Oct 2011 17:23:56 +0900, tadayoshi funaba redmine@ruby-lang.org writes: |具体的には以下の述語を追加する事を提案します。 順序を変えてコメントします。 |Numeric#exact?、Numeric#inexact? これは数全般が持つ性質を示しているので、導入に賛成します。 むらけんさんも提案しておられましたね。 |Numeric#rational?、Numeric#complex?、Numeric#float? まあ、すでにinteger?などがあるのではすが、integerでない (real)のものを
We just added Interger#positive? and Interger#negative? to Active Support. I was wondering if we could get that implemented in Ruby itself and searched if it was already requested before to Ruby code. I found that it was requested in #5513, but rejected. Since they were requested with more methods, and I don't know Japanese enough to see if there are technical reasons, I thought to request just th
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く