Project

General

Profile

Search

Results (21)

Apply issues filter

Bug #19427 (Closed): Marshal.load(source, freeze: true) doesn't freeze in some cases
I've noticed that the `freeze` option doesn't ... freeze: true) object.frozen? # => false ``` 02/09/2023 04:10 PM
Feature #19063 (Rejected): Hash.new with non-value objects should be less confusing
Related to #10713 and #2764. Ruby's `Hash. ... t for beginners. We should keep this in mind. 10/16/2022 10:24 PM
Feature #18258 (Closed): Ractor.shareable? can be slow and mutates internal object flags.
On my computer, even with a relatively small ... w flags and can instead reuse existing flags. 10/21/2021 03:19 AM
Feature #18148 (Closed): Marshal.load freeze option
### Behavior If passed `freeze: true`, all ... le not very performant, it can be used as a `deep_freeze` mechanism with `Marshal.load(Marshal.dump(o ... avoid mutation. object end end ``` 09/03/2021 09:14 AM
Feature #18035 (Open): Introduce general model/semantic for immutability.
It would be good to establish some rules arou ... Do we need to introduce `freeze(true)` or `#deep_freeze` or some other method? Because of this, f ... ed PR: https://github.com/ruby/ruby/pull/4879 07/09/2021 08:10 AM
Feature #17627 (Open): Suggestion: Implement ... ` instance method on collection-like classes.
Suggestion: Implement `freeze_values` instanc ... ere has been some discussion of a recursive `deep_freeze` method, and although it could be very usefu ... efits of polymorphism What do you think? 02/14/2021 01:20 AM
Feature #17284 (Closed): Shareable Proc
For some reasons, we need to provide a way to ... ur comments are welcome. Thanks, Koichi 10/25/2020 05:04 PM
Feature #17278 (Feedback): On-demand sharing of constants for Ractor
### Description This proposal aims to red ... lass variables, and class instance variables. 10/21/2020 07:39 PM
Feature #17274 (Closed): Ractor.make_shareable(obj)
This ticket describes the semantics of "share ... ose https://bugs.ruby-lang.org/issues/17273 10/21/2020 06:47 AM
Feature #17273 (Closed): shareable_constant_value pragma
This proposal is to introduce `# shareable_co ... https://github.com/ruby/ruby/pull/3681/files 10/21/2020 05:56 AM
Misc #17200 (Closed): DevelopersMeeting20201026Japan
# The next dev meeting **Date: 2020/10/26 ... discussion of the ticket in a limited time. 09/28/2020 11:24 PM
Misc #17180 (Open): Ractor and constant referencing
Hey there. From a high level, this bug rep ... as I can to make it a great feature of Ruby. 09/19/2020 09:24 PM
Feature #17159 (Open): extend `define_method` for Ractor
Ractor prohibits use of non-isolated `Proc`s. ... other idea. Thoughts? Thanks, Koichi 09/07/2020 01:49 AM
Bug #17146 (Closed): Queue operations are allowed after it is frozen
``` [1] pry(main)> q = Queue.new => #<Threa ... ue implemented in Ruby did not have this bug. 09/03/2020 10:53 PM
Feature #17145 (Rejected): Ractor-aware `Object#deep_freeze`
I'd like to propose `Object#deep_freeze`: Freezes recursively the contents of the receiver (by calling `deep_freeze`) and then the receiver itself (by calling ... h, [:pair, [:str, 'hello'], [:sym, :world]]].deep_freeze ast.dig(1, 1) # => [:str, 'hello'] ast.dig ... or # does not freeze classes: [[String]].deep_freeze String.frozen? # => false # calls `freez ... super end # ... end [[[Foo.new]]].deep_freeze # => Outputs "Ready for freeze" ``` I think a variant `deep_freeze!` that raises an exception if the result isn ... call super end end x = [Fire.new] x.deep_freeze! # => "Could not be deeply-frozen: #<Fire:0x00007ff151994748>" ``` 09/03/2020 06:42 PM
Feature #17100 (Closed): Ractor: a proposal f ... rent abstraction without thread-safety issues
# Ractor: a proposal for a new concurrent abs ... ip with Ractor under "experimental" status. 08/03/2020 05:54 AM
Feature #16347 (Open): InmutableObject
I notice Ruby is OOP language but also includ ... his theme? Thanks for your attention! 11/13/2019 11:17 AM
Feature #15393 (Open): Add compilation flags to freeze Array and Hash literals
Hi, I would like to add VM compilation opt ... umbers or booleans are frozen too) Thanks! 12/08/2018 12:42 AM
Feature #12008 (Open): Immutable object graphs (a.k.a. deep freeze)
Hi there. I know some sort of "#deep_freeze" construct has been proposed many times befo ... th things like Proc. I propose a simpler #deep_freeze where it is opt-in by individual classes. ... references, determine if they are *already* #deep_freeze(d), and if not, bail out. No need for recursion. The basic idea being: to #deep_freeze an object, it can only refer to other #deep_freeze(d)/frozen objects. We do not attempt to walk ... eck* that all of the children are *already* #deep_freeze(d)/frozen, and if they aren't, bail out. ... on explicit support from objects to support #deep_freeze. If they don't, bail out. No weird behavior ... cal view of the world to determine if we're #deep_freeze-able. The check is little more than walking ... areas, most notably concurrency and security. 01/19/2016 10:54 PM
Feature #8976 (Closed): file-scope freeze_string directive
Yesterday, we had a face-to-face developer me ... he meeting. Please attach the patch, nobu. 10/02/2013 10:49 AM
Feature #2509 (Rejected): Recursive freezing?
=begin I like freezing my constants, config ... request? Thanks, Marc-André =end 12/21/2009 12:50 PM
    (1-21/21)