Search
Results (21)
- 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 ```
- 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.
- 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.
- 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 ```
- 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
- 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?
- Feature #17284 (Closed): Shareable Proc
- For some reasons, we need to provide a way to ... ur comments are welcome. Thanks, Koichi
- Feature #17278 (Feedback): On-demand sharing of constants for Ractor
- ### Description This proposal aims to red ... lass variables, and class instance variables.
- Feature #17274 (Closed): Ractor.make_shareable(obj)
- This ticket describes the semantics of "share ... ose https://bugs.ruby-lang.org/issues/17273
- Feature #17273 (Closed): shareable_constant_value pragma
- This proposal is to introduce `# shareable_co ... https://github.com/ruby/ruby/pull/3681/files
- Misc #17200 (Closed): DevelopersMeeting20201026Japan
- # The next dev meeting **Date: 2020/10/26 ... discussion of the ticket in a limited time.
- 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.
- Feature #17159 (Open): extend `define_method` for Ractor
- Ractor prohibits use of non-isolated `Proc`s. ... other idea. Thoughts? Thanks, Koichi
- 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.
- 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>" ```
- 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.
- Feature #16347 (Open): InmutableObject
- I notice Ruby is OOP language but also includ ... his theme? Thanks for your attention!
- 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!
- 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.
- Feature #8976 (Closed): file-scope freeze_string directive
- Yesterday, we had a face-to-face developer me ... he meeting. Please attach the patch, nobu.
- Feature #2509 (Rejected): Recursive freezing?
- =begin I like freezing my constants, config ... request? Thanks, Marc-André =end