summaryrefslogtreecommitdiff
path: root/NEWS.md
Commit message (Collapse)AuthorAgeFilesLines
* Added entries about default gems and bundled gemsHiroshi SHIBATA2021-10-201-1/+71
|
* NEWS.md: Add error_highlight sectionYusuke Endoh2021-10-201-0/+21
|
* add NEWS entries about debug.gemKoichi Sasada2021-10-201-0/+12
|
* add NEWS entry for https://github.com/ruby/ruby/pull/4815卜部昌平2021-09-221-0/+3
|
* NEWS for [Feature #18172] [ci skip]Nobuyoshi Nakada2021-09-161-0/+7
|
* Add a newline [ci skip]Shugo Maeda2021-09-161-0/+1
|
* Add details of Hash value ommission [ci skip]Shugo Maeda2021-09-161-3/+10
|
* Add documentation and tests for keyword argument value omissionShugo Maeda2021-09-111-2/+2
| | | | [Feature #14579]
* [DOC] NEWS for [Feature #14579] [ci skip]Nobuyoshi Nakada2021-09-111-0/+6
|
* [DOC] Fixed indents in NEWS.md [ci skip]Nobuyoshi Nakada2021-09-111-27/+27
|
* Fix links [ci skip]Kazuhiro NISHIYAMA2021-08-221-0/+2
|
* Mention update to Unicode Version 13.0.0 and Emoji Version 13.1Martin Dürst2021-08-171-0/+5
| | | | | Mention the update to Unicode Version 13.0.0 and Unicode Emoji Version 13.1 in NEWS.md. This completes issue #17750. [ci skip]
* Revert "Pause an MJIT worker when JIT is cancelled"Takashi Kokubun2021-08-131-2/+0
| | | | | | This reverts commit b64f81c81729bbc248d19af01cafde88eb60fdc7. It seems to cause a problem in --jit / --jit-wait CIs. Reverting for now.
* Don't cancel JIT-ed code on TracePoint :classTakashi Kokubun2021-08-121-0/+3
| | | | events get enabled
* Pause an MJIT worker when JIT is cancelledTakashi Kokubun2021-08-121-0/+2
|
* Print JIT cancel when all JIT-ed code is cancelledTakashi Kokubun2021-08-121-0/+3
|
* Fix a link [ci skip]Kazuhiro NISHIYAMA2021-08-051-0/+1
|
* [NEWS] added [Feature #17798] [ci skip]Nobuyoshi Nakada2021-07-231-0/+4
|
* [NEWS] adjusted formats [ci skip]Nobuyoshi Nakada2021-07-231-5/+5
|
* One-line pattern matching is no longer experimentalKazuki Tsujimoto2021-07-171-0/+2
| | | | https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20210715Japan.md#feature-17724-make-the-pin-operator-support-instanceclassglobal-variables-jeremyevans0
* Add Integer.try_convert [Feature #15211]Nobuyoshi Nakada2021-07-161-0/+5
|
* Added code fence to the example in [Feature #17724] [ci skip]Nobuyoshi Nakada2021-07-161-1/+3
|
* Add pattern matching pin support for instance/class/global variablesJeremy Evans2021-07-151-0/+8
| | | | | | | | | | | Pin matching for local variables and constants is already supported, and it is fairly simple to add support for these variable types. Note that pin matching for method calls is still not supported without wrapping in parentheses (pin expressions). I think that's for the best as method calls are far more complex (arguments/blocks). Implements [Feature #17724]
* Add tests and NEWS [Feature #18008]NARUSE, Yui2021-07-151-0/+2
|
* Fix typo in flag in NEWS.mdPatrik Ragnarsson2021-07-151-1/+1
|
* Replace copy coroutine with pthread implementation.Samuel Williams2021-07-011-0/+3
|
* Fix a link [ci skip]Kazuhiro NISHIYAMA2021-06-231-0/+1
|
* Fix NEWS formatting.Samuel Williams2021-06-221-1/+1
|
* Add fiber scheduler news.Samuel Williams2021-06-221-0/+22
|
* Note about 07c05b6fe931337e928a89ac5ebf654862dc0ecaTakashi Kokubun2021-06-021-0/+3
|
* Change the default --jit-max-cache to 10000Takashi Kokubun2021-05-311-1/+4
| | | | | This is useful for large applications like Rails. https://k0kubun.medium.com/ruby-3-jit-can-make-rails-faster-756310f235a
* Add NEWS about 46655156dcc37509dcb69fcd0717c110eb1c624aNARUSE, Yui2021-05-261-0/+4
| | | | * Add Thread#native_thread_id [Feature #17853]
* NEWS.md: mention lib/objspace/trace.rb [Feature #17762]Yusuke Endoh2021-05-171-0/+7
|
* Evaluate multiple assignment left hand side before right hand sideJeremy Evans2021-04-211-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In regular assignment, Ruby evaluates the left hand side before the right hand side. For example: ```ruby foo[0] = bar ``` Calls `foo`, then `bar`, then `[]=` on the result of `foo`. Previously, multiple assignment didn't work this way. If you did: ```ruby abc.def, foo[0] = bar, baz ``` Ruby would previously call `bar`, then `baz`, then `abc`, then `def=` on the result of `abc`, then `foo`, then `[]=` on the result of `foo`. This change makes multiple assignment similar to single assignment, changing the evaluation order of the above multiple assignment code to calling `abc`, then `foo`, then `bar`, then `baz`, then `def=` on the result of `abc`, then `[]=` on the result of `foo`. Implementing this is challenging with the stack-based virtual machine. We need to keep track of all of the left hand side attribute setter receivers and setter arguments, and then keep track of the stack level while handling the assignment processing, so we can issue the appropriate topn instructions to get the receiver. Here's an example of how the multiple assignment is executed, showing the stack and instructions: ``` self # putself abc # send abc, self # putself abc, foo # send abc, foo, 0 # putobject 0 abc, foo, 0, [bar, baz] # evaluate RHS abc, foo, 0, [bar, baz], baz, bar # expandarray abc, foo, 0, [bar, baz], baz, bar, abc # topn 5 abc, foo, 0, [bar, baz], baz, abc, bar # swap abc, foo, 0, [bar, baz], baz, def= # send abc, foo, 0, [bar, baz], baz # pop abc, foo, 0, [bar, baz], baz, foo # topn 3 abc, foo, 0, [bar, baz], baz, foo, 0 # topn 3 abc, foo, 0, [bar, baz], baz, foo, 0, baz # topn 2 abc, foo, 0, [bar, baz], baz, []= # send abc, foo, 0, [bar, baz], baz # pop abc, foo, 0, [bar, baz] # pop [bar, baz], foo, 0, [bar, baz] # setn 3 [bar, baz], foo, 0 # pop [bar, baz], foo # pop [bar, baz] # pop ``` As multiple assignment must deal with splats, post args, and any level of nesting, it gets quite a bit more complex than this in non-trivial cases. To handle this, struct masgn_state is added to keep track of the overall state of the mass assignment, which stores a linked list of struct masgn_attrasgn, one for each assigned attribute. This adds a new optimization that replaces a topn 1/pop instruction combination with a single swap instruction for multiple assignment to non-aref attributes. This new approach isn't compatible with one of the optimizations previously used, in the case where the multiple assignment return value was not needed, there was no lhs splat, and one of the left hand side used an attribute setter. This removes that optimization. Removing the optimization allowed for removing the POP_ELEMENT and adjust_stack functions. This adds a benchmark to measure how much slower multiple assignment is with the correct evaluation order. This benchmark shows: * 4-9% decrease for attribute sets * 14-23% decrease for array member sets * Basically same speed for local variable sets Importantly, it shows no significant difference between the popped (where return value of the multiple assignment is not needed) and !popped (where return value of the multiple assignment is needed) cases for attribute and array member sets. This indicates the previous optimization, which was dropped in the evaluation order fix and only affected the popped case, is not important to performance. Fixes [Bug #4443]
* NEWS for [Feature #15198] [ci skip]Nobuyoshi Nakada2021-04-161-0/+5
|
* Enumerable#tally with the resulting hash [Feature #17744]Nobuyoshi Nakada2021-03-261-0/+3
|
* Pattern matching pin operator against expression [Feature #17411]Kazuki Tsujimoto2021-03-211-0/+7
| | | | This commit is based on the patch by @nobu.
* Fix a link [ci skip]Kazuhiro NISHIYAMA2021-03-161-0/+1
|
* NEWS of [Feature #12194] [ci skip]Nobuyoshi Nakada2021-03-151-0/+5
|
* Add NEWS entry for [Feature #16043]Kazuhiro NISHIYAMA2021-02-161-0/+5
|
* [DOC] NEWS for Thread::Backtrace.limit [Feature #17479]Nobuyoshi Nakada2021-02-151-0/+7
|
* The Queue constructor should take an initial set of objectsChris Seaton2021-02-111-0/+6
| | | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Update NEWS.md about deprecationTakashi Kokubun2021-01-201-0/+4
|
* Warn Struct#initialize with only keyword args (#4070)Takashi Kokubun2021-01-171-0/+7
| | | | | | | | | | | | | | | * Warn Struct#initialize with only keyword args A part of [Feature #16806] * Do not warn if `keyword_init: false` is explicitly specified * Add a NEWS entry * s/in/from/ * Make sure all fields are initialized
* Make Module#prepend affect ancestor chain even if argument already included ↵Jeremy Evans2021-01-141-0/+8
| | | | | | | | | | | | | | | in receiver Previously, if a class included a module and then prepended the same module, the prepend had no effect. This changes the behavior so that the prepend has an effect unless the module is already prepended the receiver. While here, rename the origin_seen variable in include_modules_at, since it is misleading. The variable tracks whether c has been seen, not whether the origin of klass has been. Fixes [Bug #17423]
* Rename RubyVM::MJIT to RubyVM::JITTakashi Kokubun2021-01-131-0/+2
| | | | | | | | because the name "MJIT" is an internal code name, it's inconsistent with --jit while they are related to each other, and I want to discourage future JIT implementation-specific (e.g. MJIT-specific) APIs by this rename. [Feature #17490]
* NEWS: We have links now, and there is no changelog anymore [doc]Marc-Andre Lafortune2021-01-021-4/+1
|
* NEWS: [Feature #17312] [ci skip]Nobuyoshi Nakada2021-01-021-0/+11
|
* Copy NEWS.md to doc/NEWS-3.0.0.md and update for 3.1.0Kazuhiro NISHIYAMA2020-12-251-781/+2
|
* Sort URLs by issue numbers and remove duplicated [ci skip]Kazuhiro NISHIYAMA2020-12-251-2/+1
|