[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
Issue #13188 has been updated by Shyouhei Urabe.
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:79437] [Ruby trunk Feature#13097] Deprecate Socket.gethostbyaddr and Socket.gethostbyname
From:
nobu@...
Date:
2017-02-05 14:45:34 UTC
List:
ruby-core #79437
Issue #13097 has been updated by Nobuyoshi Nakada. ``` $ ruby -rsocket -e 'host = "ci.ruby-lang.org"; ai = Addrinfo.ip(host); p Socket.gethostbyname(host), Socket.getaddrinfo(host, nil), ai, ai.canonname' ["ci.ruby-lang.org", [], 2, "4\xC0P\xDB"] [["AF_INET", 0, "52.192.80.219", "52.192.80.219", 2, 2, 17], ["AF_INET", 0, "52.192.80.219", "52.192.80.219", 2, 1, 6]] #<Addrinfo: 52.192.80.219 (ci.ruby-lang.org)> nil ``` `Socket.gethostbyname` returns the hostname, but `getaddrinfo` not. And `Addrinfo#inspect` shows the name but it provides `canonname` only. Perhaps we need some `Addrinfo#inspectname` or something, before deprecating `Socket.gethostbyname`? ---------------------------------------- Feature #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname https://bugs.ruby-lang.org/issues/13097#change-62868 * Author: Vit Ondruch * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Is there a reason to keep these methods around? They were marked obsolete by POSIX.1-2001 and the POSIX.1-2008 removes the specifications of gethostbyname, gethostbyaddr recommending the use of getaddrinfo and getnameinfo instead. If they are kept because of Ruby backward compatibility, shouldn't they be re-implemented by these modern interfaces? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>