[#101981] [Ruby master Bug#17519] set_visibility fails when a prepended module and a refinement both exist — dbfeldman@...

Issue #17519 has been reported by fledman (David Feldman).

12 messages 2021/01/08

[#102003] [Ruby master Bug#17527] rb_io_wait_readable/writable with scheduler don't check errno — julien@...

Issue #17527 has been reported by ysbaddaden (Julien Portalier).

13 messages 2021/01/11

[#102065] [Ruby master Bug#17536] Segfault in `CFUNC :define_method` — v.ondruch@...

Issue #17536 has been reported by vo.x (Vit Ondruch).

13 messages 2021/01/13

[#102083] [Ruby master Bug#17540] A segfault due to Clang/LLVM optimization on 32-bit ARM Linux — xtkoba+ruby@...

Issue #17540 has been reported by xtkoba (Tee KOBAYASHI).

12 messages 2021/01/14

[#102102] [Ruby master Bug#17543] Ractor isolation broken by `self` in shareable proc — marcandre-ruby-core@...

Issue #17543 has been reported by marcandre (Marc-Andre Lafortune).

14 messages 2021/01/15

[#102118] [Ruby master Feature#17548] Need simple way to include symlink directories in Dir.glob — keithrbennett@...

Issue #17548 has been reported by keithrbennett (Keith Bennett).

8 messages 2021/01/17

[#102158] [Ruby master Bug#17560] Does `Module#ruby2_keywords` return `nil` or `self`? — nobu@...

Issue #17560 has been reported by nobu (Nobuyoshi Nakada).

9 messages 2021/01/19

[#102163] [Ruby master Bug#17561] The timeout option for Addrinfo.getaddrinfo is not reliable on Ruby 2.7.2 — sean@...

Issue #17561 has been reported by smcgivern (Sean McGivern).

8 messages 2021/01/19

[#102249] [Ruby master Bug#17583] Segfault on large stack(RUBY_THREAD_VM_STACK_SIZE) — yoshiokatsuneo@...

Issue #17583 has been reported by yoshiokatsuneo (Tsuneo Yoshioka).

12 messages 2021/01/26

[#102256] [Ruby master Bug#17585] DWAR5 support? — v.ondruch@...

Issue #17585 has been reported by vo.x (Vit Ondruch).

19 messages 2021/01/26

[#102301] [Ruby master Bug#17591] Test frameworks and REPLs do not show deprecation warnings by default — eregontp@...

Issue #17591 has been reported by Eregon (Benoit Daloze).

14 messages 2021/01/29

[#102305] [Ruby master Feature#17592] Ractor should allowing reading shareable class instance variables — marcandre-ruby-core@...

Issue #17592 has been reported by marcandre (Marc-Andre Lafortune).

25 messages 2021/01/29

[ruby-core:101895] [Ruby master Feature#17496] Add constant Math::TAU

From: jzakiya@...
Date: 2021-01-03 22:45:20 UTC
List: ruby-core #101895
Issue #17496 has been updated by jzakiya (Jabari Zakiya).


> you just need to comment on https://bugs.ruby-lang.org/issues/17480 then, copying the format of the other comments.

Thanks. Done.

> Personally, I don't think that anything significant has changed in the last three years this area. And the comparison of Tau vs Pi to Relativity vs Newtonian Mechanics is laughable.

As with ``PI``, the Newtonian view of reality had an entrenched pedagogical, professional, cultural, and even nationalistic hold on people's minds and lives. Einstein's Relativity shattered that for many, purely on these basis.  So "``F = ma is wrong``" when trying to explain the way the natural world is observed to work in all cases. And even though Relativity has been observed to work over and over again, to explain things Newtonian mechanics can't, the ``Newtonians`` still resist(ed) accepting it emotionally (as Einstein himself later emotionally resisted accepting totally Quantum Mechanics).

> However, I recommend to Matz that he rejects it again. I think a good time to add Math::TAU is when the majority of mathematics textbooks switch from Pi to Tau, and not before.

Well, that's a very arbitrary and subjective criteria, don't you think? I already presented one Open Source textbook, first released in 2015, that's been in use. And the Khan Academy - https://www.khanacademy.org/ - maybe the largest, well known educational learning platform in the world, put out its first video on teaching|promoting ``TAU`` in 2012, and you can't get anymore main stream than it.

For a better, more extensive list of uses of ``TAU`` please view the list of citations on its wikipedia page: 
https://en.wikipedia.org/wiki/Turn_(angle)#Tau_proposal

> Basically, it boils down to: Is there a mathematical operation you can't perform if Ruby does not define Tau? I'd say: no. Happy to hear otherwise.

I would like to refocus the discussion to what the proposal seeks, and why.

The impetus behind the proposal is to bring ``Ruby`` in line with the other (and growing) number of software languages and packages that now include the fundamental math constant ``TAU`` as a standard resource that is available for programmers to use. It does not require anybody here to use it, or change any code they have.

Though Bob Palais's ``PI is wrong`` - https://www.math.utah.edu/~palais/pi.pdf - appeared in 2001, the popular promotion of its acceptance|use took off with Michael Hartl's (of ``Ruby on Rails Tutorial`` fame, https://www.railstutorial.org/) 2010 article ``The Tau Manifesto`` and same year creation of ``TAU Day``, as an alternative to ``PI Day``. (MIT now releases it acceptance notices on ``PI Day`` (March 14; 3/14) at ``TAU Time``, 6.28 pm).

Thus since 2010, the knowldege and understanding about ``TAU`` being the better|correct circle constant has steadily increased, adopted, and used.

A short (growing) list of software languages and packages that include|provide ``TAU`` are:

D -- https://code.dlang.org/packages/tau; https://forum.dlang.org/thread/mailman.1426.1309854678.14074.digitalmars-d@puremagic.com
C#|.NET -- https://github.com/dotnet/runtime/pull/37517; https://docs.microsoft.com/en-us/dotnet/api/system.math.tau?view=net-5.0
F#  -- " "
Nim -- https://nim-lang.org/docs/math.html#TAU
Zig -- https://ziglang.org/documentation/0.7.1/std/#std;math
Java|Node.js -- https://mathjs.org/docs/reference/constants.html; https://mathjs.org/
Rust -- https://doc.rust-lang.org/stable/std/f64/consts/constant.TAU.html
Raku -- https://docs.raku.org/language/terms
Julia -- https://juliapackages.com/p/tau; https://github.com/JuliaLang/julia/pull/4864
Crystal -- https://github.com/crystal-lang/crystal/issues/10165; https://github.com/crystal-lang/crystal/pull/10179
Python3 -- https://docs.python.org/3/library/math.html; https://www.python.org/dev/peps/pep-0628/

Matlab -- https://www.mathworks.com/matlabcentral/fileexchange/48636-tau-the-circle-constant?s_tid=srchtitle
Google calculater -- https://www.google.com/search?q=%CF%84%3D

**Why**
1. Since 2010, ``TAU``'s acceptance and use has increased in academia, science, and software languages and packages
2. It requires no technical changes to Ruby.
3. It makes Ruby compatible with other popular languages (like Python and Rust).
4. It makes Ruby natively easier to use for pedagogy.
5. It will better establish Ruby as a good scientific language, particularly for unfamiliar Ruby users.
6. It has met Matz's previous criteria of being ``time-proven``.
7. It will, ultimately, be expected to be included in every general purpose language.


In the final analysis, ``PI is wrong`` and ``TAU is right``.

----------------------------------------
Feature #17496: Add constant Math::TAU
https://bugs.ruby-lang.org/issues/17496#change-89734

* Author: jzakiya (Jabari Zakiya)
* Status: Open
* Priority: Normal
----------------------------------------
Excuse me if this has been brought up before.

This is a simple proposal to add the math constant ``Math::TAU`` = 2*``Math::PI``.

See: https://tauday.com/

``TAU`` has been included in a growing number of languages (Rust, Python3, Julia, et al), and this would add Ruby to that list, and make it even cooler. :-)



-- 
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>

In This Thread