[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
SXNzdWUgIzEzMTg4IGhhcyBiZWVuIHVwZGF0ZWQgYnkgU2h5b3VoZWkgVXJhYmUuCgoKTWFydGlu
6 messages
2017/02/06
[#79441] Re: [Ruby trunk Bug#13188] Reinitialize Ruby VM.
— SASADA Koichi <ko1@...>
2017/02/06
On 2017/02/06 10:10, shyouhei@ruby-lang.org wrote:
[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>
Hi,
15 messages
2017/02/15
[#79541] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/15
Em 15-02-2017 05:05, Daniel Ferreira escreveu:
[#79543] Re: Immutable Strings vs Symbols
— Daniel Ferreira <subtileos@...>
2017/02/16
Hi Rodrigo,
[#79560] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/16
Em 15-02-2017 22:39, Daniel Ferreira escreveu:
[ruby-core:79535] Re: Immutable Strings vs Symbols
From:
Matthew Kerwin <matthew@...>
Date:
2017-02-15 07:30:14 UTC
List:
ruby-core #79535
On 15 Feb 2017 17:06, "Daniel Ferreira" <subtileos@gmail.com> wrote: Hi, I would like to ask ruby core members the following question if it is possible: With the advent of Immutable Strings in ruby 3 what will be the difference between Immutable Strings and Symbols? Performance wise will Immutable Strings be similar to Symbols? If we put the hypothesis of removing Symbols from ruby would that have any negative impact on performance? What other side effects could we envision? Thanks, Daniel Semantically speaking, a symbol is like a single-bit of data. It's only value is its existence, and it's only operation is identity comparison. A string is an ordered sequence of characters or code points, with a huge collection of methods relating to sub- and superstring access/creation, character and substring transformations & translations, etc. etc. That we can cast from one to the other and back again (even that symbols were exposed in the language at all) has been the source of much confusion in the greater Ruby community. My hope (FWIW) is that properly optimised immutable strings will alleviate a lot of that confusion, and symbols will drift back toward their obscure and arcane One True Purpose=E2=84=A2. (I.e. identifying internal objects li= ke functions and variables) Cheers Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>