ZJIT: Extract perf-map module (GH-18725)
Move perf-map registration and symbol-range helpers into `perf`. Update the LIR backend and compiler callers to use the narrow module path.
Move perf-map registration and symbol-range helpers into `perf`. Update the LIR backend and compiler callers to use the narrow module path.
Previously we had a check that objects which were shareable, but not frozen on a non-main Ractor would raise an exception if instance variab
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
`on_main` tries to make the block shareable before dispatching to the main Ractor (this only happens when calling from a non-main Ractor), w
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
Returning through blocks costs an allocation (at least on Ruby 4.0)
This was always downstream of LookupContext, and is where the iteration happens. Doing this allows us to avoid allocating two arrays.
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
ZJIT: preserve only the last CheckInterrupts in a block CheckInterrupts holds on to the frame state which could reference things in the sta
コーディングAIエージェントを提供するDevinが、Devinがホストする仮想環境内でのmacOSの提供を開始しました。 Devinはこれまで仮想環境内でUbuntu LinuxおよびWindowsを提供しており、ここにmacOSが加わりま...
Googleは、Android上で利用可能なパスワードマネージャの間で、パスキーの転送を可能にしたと発表しました。 これにより、例えばGoogleパスワードマネージャに登録したパスキーを1PasswordやBitwardenなどの他のパスワ...
https://github.com/ruby/erb/commit/2e53562958
はじめに 最近、「バイブコーディング」という言葉を耳にする機会が増えました。 バイブコーディングとは、細かい設計や実装方法を人間がすべて決めるのではなく、開発者が「意図・雰囲気・方向性」を自然言語で伝え、AI がそれを解釈して設計やコードを提案し、対話しながら共創してアプ...
https://github.com/ruby/json/commit/522b015063
はじめに この記事の結論を先に書くと、UUIDのバージョンは特に理由がなければv4、DBの主キーに使うなら順序性のあるv7を検討するのがおすすめです。以下ではなぜこの結論に至ったのかをまとめていきます! こんにちは!ソーイ株式会社の木寺です。 システム開発をしていると「U...
[Bug #22321] In the following script, the klass of the Method object is an iclass, which will raise an error "NoMethodError: undefined
Fix use-after-free of dangling pointers.
…NS types and SvcParamKeys" This reverts commit https://github.com/ruby/resolv/commit/9e331b5960a8, which contains only the same test
こんにちは、花王株式会社の @TsuchiyaK です。 昨今、生成AIによる業務改善を検討している方も少なくないと思いますが、以下のような仕組みを考えたことはないでしょうか。 SaaSなどのAPIからデータを取得 そのデータをもとに生成AIによってドキュメントを生成 こ...
AI開発チームを作り、運用しながら育てるための設計書です。業務と完了条件、役割、受け渡し、並列化、検収、自律度、学びの蓄積を一続きで扱います。各章の図解と、TypeScript製タスク管理アプリへの機能追加の実走を通して、仕様・差分・テスト・AIレビューをつなぐ方法を学べます。実
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
https://github.com/ruby/io-console/commit/fbac53dbe8
Syncing starts by `rm_rf`-ing every destination, so the `lib` and `test` directory mappings wiped ruby/ruby own files under `tool/lib` and `
Upstream bumps the version right after a release, so a synced tree usually holds a version nobody can install, and `bundle install` against
株式会社パレットリンクの@BaspisKawaEです! 今回は、ChatGPTやMicrosoft 365 CopilotのようなチャットAIを、Claude CodeやCodexのように、雑な依頼からでも必要なファイルを確認しながら調査を進められる状態に近づける方法に...
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
はじめに コスト削減のためにNAT GatewayではなくNAT Instanceを使っている方、それなりにいるのではないでしょうか。 私もその一人で、CDKのec2.NatProvider.instanceV2を使ってt4g.nanoでNAT Instanceを立ててい...
Only `lib` and `test` are synced from ruby/test-unit-ruby-core, so no gemspec exists in this tree and `Gem::Specification.load(nil)` returne
It held the base pointer for `ruby_xfree(ptr)` while the loop advanced `argv`. The free became `RB_ALLOCV_END(ptr_obj)` in da4bd3b3df9f, and
Warnings for chilled strings can be intercepted by `Warning` module.
Add JSON schema cache serializer
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
Add the option to dump and load the schema cache from JSON Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
[Bug #22319] Array#zip triggers an use-after-free it does not account for when the call to rb_check_array_type modifies the source array. T
Skip leaky ractor tests
These tests cause `require` to be called inside a Ractor, which in turn breaks all gems that use alias method chain on `Kernel#require` whic
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
Speed up TimeWithZone#xmlschema, #to_s and TimeZone.seconds_to_utc_offset
`File.basename` never returns a name with a leading slash, so the comparison against `"/mkmf.rb"` was always false and the source
`RGV` is relative to the source root of the layout it was set in: `.` on master, `..` on the 4.0 branch, where the spec support files still
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
`assert.h` always defines `RUBY_DEBUG`, as either 0 or 1, so `#ifdef` was always true here too. The store exists only for the `RUBY_ASSERT`
[Bug #22318] Array#flatten triggers an use-after-free it does not account for when the call to rb_check_array_type modifies the source arra
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
この記事は Next.js を好む人間が書きました。 Proxy で redirect する方法 Next.js の Proxy(旧 Middleware) でリクエストに対してリダイレクトレスポンスを返すには、次のように書きます。 import { NextResponse
These specs need a length that no String or Array can hold, and a C long stops being one on LLP64 once the length itself is pointer-sized. T
On LLP64 a pointer-sized length does not fit a C long, so `NUM2LONG` raises `RangeError` before the size check is reached. Which of the two
Inside `module Gem`, `defined?(SecureRandom)` resolved to the vendored `Gem::SecureRandom` that vendored `net/http` happened to load through
Vendored net/http loaded the whole 3500-line DNS resolver only to match Resolv::IPv4::Regex and Resolv::IPv6::Regex when deciding whether an
Under that setting git refuses to discover a bare repository through -C, so every command run against the bare cache clone failed. Bare repo
…e local platform Gem::Specification#initialize skips the local platform when it takes the platform from Gem.platforms, so the option produ
[Bug #22315] The following script crashes because there is a use-after-free on the source string during String#unpack: s = "C&quo
…oups Transitive dependencies have an empty group set, which sorted before every named set and put them at the top of the table. https://g
Skipping the name sort for --group left the rows in the order of their group sets, so a group spread over several sets was listed out of ord
print_indented unconditionally sorted table rows by gem name, discarding the group clustering that --groups had already computed, so --group
The ar_entry hint may be initialized when it is used. It is caught by Valgrind: ==91514== Conditional jump or move depends on uninitial