推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
janxin
V2EX  ›  Python

[性能相关]PEP draft: Hide implementation details in the C API

  •  
  •   janxin · Jul 11, 2017 via iPhone · 2543 views
    This topic created in 3363 days ago, the information mentioned may be changed or developed.
    虽然只是开始阶段,但是起码描绘的场景还是不错的。不过就看保守的 py 社区怎么看了。

    Modify the C API to remove implementation details. Add an opt-in option
    to compile C extensions to get the old full API with implementation
    details.

    The modified C API allows to more easily experiment new optimizations:

    * Indirect Reference Counting
    * Remove Reference Counting, New Garbage Collector
    * Remove the GIL
    * Tagged pointers

    Reference counting may be emulated in a future implementation for
    backward compatibility.

    https://mail.python.org/pipermail/python-ideas/2017-July/046399.html
    8 replies  •  2017-07-12 13:55:33 +08:00
    xrlin
        1
    xrlin  
       Jul 11, 2017 via iPhone
    终于开始注重性能提升了吗
    sagaxu
        2
    sagaxu  
       Jul 11, 2017 via Android
    Python 性能已经被 php7 吊打两年了
    ldbC5uTBj11yaeh5
        3
    ldbC5uTBj11yaeh5  
       Jul 11, 2017
    python 在走 perl 的老路,两个字,药丸。
    se77en
        4
    se77en  
       Jul 12, 2017
    楼上说 python 药丸的,应该是不熟悉机器学习领域
    ldbC5uTBj11yaeh5
        5
    ldbC5uTBj11yaeh5  
       Jul 12, 2017   ❤️ 1
    楼上小学生太狂妄了,我就是痛心 python 目前只能龟缩在 ML/AI 领域显摆,才喷它在走 perl 的路子的。

    v2 的小学生真是缺乏教育。
    ivechan
        6
    ivechan  
       Jul 12, 2017
    各个语言都有他的应用领域,Python 也是一样,我认为差异化才是目前语言的趋势。
    C/C++,Java,PHP 都有自己的一边天,Python 也有,也没必要去抢占别人的领地。
    ivechan
        7
    ivechan  
       Jul 12, 2017
    不过 CPython 性能问题确实需要更好解决。
    lrxiao
        8
    lrxiao  
       Jul 12, 2017
    是个好兆头,cpython 实在是比较烂..
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2405 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:00 · PVG 00:00 · LAX 09:00 · JFK 12:00
    ♥ Do have faith in what you're doing.