byroot (Jean Boussier)
- Login: byroot
- Email: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org
- Registered on: 03/11/2014
- Last connection: 11/02/2021
- 10:42 PM Ruby master Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > The name rb_singleton_class_get() doesn't seem great though.
Yeah, it could definitely be expose under another n...
- 05:22 PM Ruby master Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > Which does seem very clean.
I of course meant "doesn't". Oops.
> In this case, it's exposing yet another oper...
- 11:57 AM Ruby master Feature #18552 (Open): Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- Right now the only way to check wether an object has a singleton class is to do something akin to:
- 04:22 PM Ruby master Feature #18339: GVL instrumentation API
- I opened a draft for it: https://github.com/ruby/ruby/pull/5500
@ko1 if you'd like to have a look.
- 09:11 AM Ruby master Bug #18516: Memory leak on aliasing method to itself
- I took the liberty to set the backport field.
I was able to repro on 2.6, 2.7,3.0 and 3.1. However 2.6 is security...
- 07:52 AM Ruby master Bug #18501: [BUG] try to mark T_NONE object in RubyVM::InstructionSequence. load_from_binary
- Thanks @tenderlove, your explanation makes sense to me.
From your description we should be able to reproduce with...
- 10:20 AM Ruby master Feature #18273: Class#subclasses
- Sure, and you are entitled to it, I just don't understand how you reconcile it with the existence of weak references.
- 10:17 AM Ruby master Feature #18273: Class#subclasses
- To me it behave just like weak references do:
weakmap = ObjectSpace::WeakMap.new
weakmap[Object.new] = O...
- 10:07 AM Ruby master Feature #18273: Class#subclasses
- I don't think I understand what your issue is. `subclasses` returns all the *live object* (not yet GCed) that are dir...
- 08:26 AM Ruby master Feature #18273: Class#subclasses
- > In my view, this method does not play well with object lifetime, semantically.
This is perfectly fine, Ruby isn'...
Also available in: Atom