2 ms·
It doesn't seem to be mentioned here, but I'm especially intrigued by the possibility of implementing shaped objects. See https://chrisseaton.com/truffleruby/ru
by dwheeler 4y ago
It doesn't seem to be mentioned here, but I'm especially intrigued by the possibility of implementing shaped objects. See https://chrisseaton.com/truffleruby/rubykaigi21/ https://chrisseaton.com/truffleruby/rubykaigi21/ and the previous HN conversation here: https://news.ycombinator.com/item?id=28476654 https://news.ycombinator.com/item?id=28476654
Shaped objects (aka Self's maps or JavaScript hidden classes) are an old idea, but they seem to have been only recently rediscovered, and the basic idea suddenly allows a lot of other potential optimizations (where research would be helpful). We don't know if they'd really improve Ruby performance, but I think it's very likely & I suspect they'd also enable future improvements.
- byroot 4y agoIt's in the works: https://bugs.ruby-lang.org/issues/18776 https://bugs.ruby-lang.org/issues/18776