News for hackers. Stuff that matters.
Re:PyO3: Rust Bindings for the Python Interpreter by edeion on Friday January 29, 2021 @08:32AM (#25957034)
That's a really great name you came up with! Embodies both parts of your focus, stays pronounceable. Does the 3 relate to the Python version or are you mimicking some specific molecule that I can't think of?
Re:PyO3: Rust Bindings for the Python Interpreter by smlckz on Friday January 29, 2021 @08:39AM (#25957092)
Py (iv)

              O
     O = Py < |
              O
or Py (vi)

         O
        ||
    O = Py
        ||
         O
or Py (ii)

         O
    Py <   > O
         O

heh!
Re:PyO3: Rust Bindings for the Python Interpreter by auscompgeek on Friday January 29, 2021 @08:41AM (#25957108)
I think you might be missing an oxygen atom there.
Re:PyO3: Rust Bindings for the Python Interpreter by Swenrekcah on Friday January 29, 2021 @08:41AM (#25957103)
I would guess it is derived from: https://en.wikipedia.org/wiki/Iron(III)_oxide
Re:PyO3: Rust Bindings for the Python Interpreter by OskarS on Friday January 29, 2021 @09:29AM (#25957537)
I thought it was like the compiler flag, -O3. ”With full optimization”, basically.
Re:PyO3: Rust Bindings for the Python Interpreter by smlckz on Friday January 29, 2021 @08:52AM (#25957195)
But that's Fe_2 O_3 !
Re:PyO3: Rust Bindings for the Python Interpreter by ziml77 on Friday January 29, 2021 @09:46AM (#25957732)
I think calling it Py2O3 would be a bit confusing though.
Re:PyO3: Rust Bindings for the Python Interpreter by smlckz on Friday January 29, 2021 @09:48AM (#25957753)
Just PyO or Py_3 O_4 could have been used as well, does not matter that much.
Re:PyO3: Rust Bindings for the Python Interpreter by batterylow on Friday January 29, 2021 @09:56AM (#25957831)
It's indeed a cool name, but it's not my doing (this isn't a Show HN)!
Re:PyO3: Rust Bindings for the Python Interpreter by SnowflakeOnIce on Friday January 29, 2021 @09:29AM (#25957531)
My guess is that the name is derived from the `-O3` compiler optimization level from many compilers.
Re:PyO3: Rust Bindings for the Python Interpreter by fafhrd91 on Friday January 29, 2021 @11:27AM (#25959037)
name was chosen after `uranium trioxide`, pythonium trioxied - pyo3
Re:PyO3: Rust Bindings for the Python Interpreter by chc on Friday January 29, 2021 @11:54AM (#25959412)
If you're trying to figure out the origin of a Rust project's name, the safest bet is always to choose the one that's a reference to metal.
Re:PyO3: Rust Bindings for the Python Interpreter by fafhrd91 on Friday January 29, 2021 @12:15PM (#25959690)
i am original author of pyo3. Yuri Selivanov (author of uvloop and edgedb) suggested pyo3 name.
Re:PyO3: Rust Bindings for the Python Interpreter by chc on Friday January 29, 2021 @01:44PM (#25960764)
Oh, I know, I wasn't trying to correct you or anything. I was just adding on to the correct answer to point out that PyO3's naming scheme is part of a popular trend in Rust libraries.