On Fri, Jun 30, 2017 at 12:09:52PM -0300, "Soni L." <faked...@gmail.com> wrote:
> CPython should get a
You're welcome to create one. Go on, send your pull requests!
-- Koos
I think the sentence "Python should have <some big and complex to
implement feature>" should be ;-) forbidden if it is not followed with
"I'm in the middle of development. Expect the 1st PR in <a short timeframe>."
Python can only have features that You, the <User>, implemented (or
paid for) and submitted.
-- Ryan (ライアン) Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else http://refi64.com
On 2017-07-01 07:34 PM, Victor Stinner wrote:
> Let's say that you have a function "def mysum (x; y): return x+y", do
> you always want to use your new IADD instruction here? What if I call
> mysum ("a", "b")?
>
> Victor
Let's say that you do. Given how short it is, it would just get inlined.
Your call of mysum ("a", "b") would indeed not use IADD, nor would it be
a call. It would potentially not invoke any operators, but instead get
replaced with "ab".
When you have a tracing JIT, you can do away with a lot of overhead. You
can inline functions, variables, do away with typechecks, and many other
things. This holds true even if that JIT never emits a single byte of
machine code.
This is literally PyPy. There's little reason for something like this to end up in official CPython, at least for now.