V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2017-07-11 18:48:51 +08:00 via iPhone · 1740 次点击
    这是一个创建于 2483 天前的主题,其中的信息可能已经有所发展或是发生改变。
    虽然只是开始阶段,但是起码描绘的场景还是不错的。不过就看保守的 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 条回复    2017-07-12 13:55:33 +08:00
    xrlin
        1
    xrlin  
       2017-07-11 19:09:51 +08:00 via iPhone
    终于开始注重性能提升了吗
    sagaxu
        2
    sagaxu  
       2017-07-11 23:09:13 +08:00 via Android
    Python 性能已经被 php7 吊打两年了
    jigloo
        3
    jigloo  
       2017-07-11 23:13:55 +08:00
    python 在走 perl 的老路,两个字,药丸。
    se77en
        4
    se77en  
       2017-07-12 10:35:05 +08:00
    楼上说 python 药丸的,应该是不熟悉机器学习领域
    jigloo
        5
    jigloo  
       2017-07-12 10:42:56 +08:00   ❤️ 1
    楼上小学生太狂妄了,我就是痛心 python 目前只能龟缩在 ML/AI 领域显摆,才喷它在走 perl 的路子的。

    v2 的小学生真是缺乏教育。
    ivechan
        6
    ivechan  
       2017-07-12 12:33:50 +08:00
    各个语言都有他的应用领域,Python 也是一样,我认为差异化才是目前语言的趋势。
    C/C++,Java,PHP 都有自己的一边天,Python 也有,也没必要去抢占别人的领地。
    ivechan
        7
    ivechan  
       2017-07-12 12:34:27 +08:00
    不过 CPython 性能问题确实需要更好解决。
    lrxiao
        8
    lrxiao  
       2017-07-12 13:55:33 +08:00
    是个好兆头,cpython 实在是比较烂..
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3567 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:48 · PVG 08:48 · LAX 17:48 · JFK 20:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.