{"id":278843,"date":"2023-08-06T09:00:36","date_gmt":"2023-08-06T01:00:36","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=278843"},"modified":"2023-07-28T10:36:15","modified_gmt":"2023-07-28T02:36:15","slug":"cython-three-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/cython-three-linux.html","title":{"rendered":"\u5386\u65f6\u4e94\u5e74\uff0cCython 3.0 \u5ba3\u5e03\u6b63\u5f0f\u53d1\u5e03"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u7ecf\u8fc7\u8fd1\u4e94\u5e74\u7684\u6f2b\u957f\u5c81\u6708\uff0cCython 3.0 \u5ba3\u5e03\u6b63\u5f0f\u53d1\u5e03\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u516c\u544a\u79f0\uff0c\u201cCython 3.0 \u5728\u5404\u4e2a\u65b9\u9762\u90fd\u4f18\u4e8e\u4e4b\u524d\u7684\u4efb\u4f55\u5176\u4ed6 Cython \u7248\u672c\u3002\u5b83\u66f4\u52a0 Python \u5316\uff0c\u4e0e C \u548c C++ \u96c6\u6210\u5f97\u66f4\u597d\uff0c\u652f\u6301\u66f4\u591a Python \u5b9e\u73b0\u548c\u914d\u7f6e\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u5f88\u68d2\u7684\u65b0\u8bed\u8a00\u7279\u6027\u3002\u66f4\u5feb\u3001\u66f4\u5b89\u5168\u3001\u66f4\u6613\u7528\u3002It's simply better\u3002\u201d<\/p>\n <\/p>\n \u65b0\u7684\u8bed\u8a00\u7279\u6027\u5305\u62ec\uff1a<\/strong><\/span><\/div>\n Cython 3 \u5728\u8bb8\u591a\u65b9\u9762\u5bf9 Cython \u8fdb\u884c\u4e86\u6e05\u7406\u548c\u73b0\u4ee3\u5316\u3002\u5b83\u653e\u5f03\u4e86\u5bf9\u65e9\u5df2\u8fc7\u65f6\u7684 Python 2 \u7684\u652f\u6301\uff0c\u589e\u52a0\u4e86\u5bf9\u8f83\u65b0\u7684 Python \u529f\u80fd\uff08\u6700\u9ad8\u53ef\u8fbe Python 3.12\uff09\u7684\u652f\u6301\uff0c\u5e76\u6269\u5c55\u4e86\u7eaf Python \u6a21\u5f0f\uff08pure python\uff09\u7684\u4f7f\u7528\u3002\u201c\u7b80\u800c\u8a00\u4e4b\uff0c\u8fd9\u5141\u8bb8\u5c06\u66f4\u5e7f\u6cdb\u7684 Python \u4ee3\u7801\u7f16\u8bd1\u4e3a\u4f18\u5316\u7684 C \u4ee3\u7801\u3002\u201d<\/p>\n \u6839\u636e\u4ecb\u7ecd\uff0c\u7eaf Python \u6a21\u5f0f\u5141\u8bb8 Python \u5f00\u53d1\u4eba\u5458\u5728 Cython \u4e0a\u4f7f\u7528\u73b0\u6709\u7684 Python linting \u548c\u4ee3\u7801\u5206\u6790\u5de5\u5177\u3002\u4e00\u76f4\u4ee5\u6765\uff0cCython \u90fd\u5728\u4f7f\u7528\u81ea\u5df1\u72ec\u7279\u7684\u8bed\u6cd5\uff0c\u5373 Python \u8bed\u6cd5\u548c C \u7c7b\u578b\u58f0\u660e\u8bed\u6cd5\u7684\u6df7\u5408\u4f53\uff0c\u8fd9\u4f7f\u5f97 Cython \u5f88\u96be\u4f7f\u7528 Python \u5de5\u5177\u8fdb\u884c\u6545\u969c\u6392\u9664\u3002\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0cCython \u5f00\u59cb\u63d0\u4f9b\u4e00\u79cd\u4e0e\u4f20\u7edf Python \u8bed\u6cd5\u5b8c\u5168\u517c\u5bb9\u7684\u66ff\u4ee3\u8bed\u6cd5\uff0c\u79f0\u4e3a\u7eaf Python \u6a21\u5f0f\u3002\u7edd\u5927\u591a\u6570 Cython \u51fd\u6570\u73b0\u5728\u90fd\u4ee5\u7eaf Python \u6a21\u5f0f\u663e\u793a\uff0c\u5305\u62ec\u8c03\u7528\u5916\u90e8 C \u5e93\u7684\u51fd\u6570\u3002<\/p>\n \u53e6\u4e00\u4e2a\u4e3b\u8981\u6539\u8fdb\u662f NumPy \u652f\u6301\u3002Cython 3 \u589e\u52a0\u4e86\u76f4\u63a5\u5728 Cython \u4e2d\u7f16\u5199 NumPy ufuncs \u7684\u529f\u80fd\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u5feb\u901f\u8f7b\u677e\u5730\u5c06\u7528 Cython \u7f16\u5199\u7684\u7b80\u5355\u6570\u503c\u51fd\u6570\u5e94\u7528\u4e8e NumPy \u6570\u636e\u7ed3\u6784\u7684\u5168\u90e8\u5185\u5bb9\u3002<\/p>\n Cython \u7684\u5185\u90e8\u7ed3\u6784\u4e5f\u8fdb\u884c\u4e86\u91cd\u65b0\u8bbe\u8ba1\uff0c\u4ee5\u66f4\u597d\u5730\u914d\u5408 Python \u5185\u90e8\u7ed3\u6784\u7684\u4e0d\u65ad\u53d8\u5316\u3002\u4f8b\u5982\uff0cPython \u7684\u65b0 \"limited API\" \u516c\u5f00\u4e86 Python API \u7684\u4e00\u4e2a\u6709\u4fdd\u8bc1\u7684\u7a33\u5b9a\u5b50\u96c6\uff0c\u4e13\u95e8\u7528\u4e8e Cython \u7ecf\u5e38 hook Python \u89e3\u91ca\u5668\u7684\u5de5\u4f5c\u7c7b\u578b\u3002Cython 3 \u5df2\u521d\u6b65\u652f\u6301 limited API\uff0c\u4e14\u8fd9\u79cd\u652f\u6301\u8fd8\u5728\u4e0d\u65ad\u589e\u52a0\u3002InfoWorld \u6307\u51fa\uff0c\u4ece\u957f\u8fdc\u6765\u770b\uff0c\u8fd9\u610f\u5473\u7740\u4e3a\u67d0\u4e00\u7248\u672c Python \u6784\u5efa\u7684 Cython \u6269\u5c55\u6a21\u5757\u53ef\u4ee5\u5728\u672a\u6765\u7248\u672c\u7684 Python \u4e2d\u8fd0\u884c\uff0c\u800c\u65e0\u9700\u91cd\u65b0\u7f16\u8bd1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u516c\u544a\u79f0\uff0c\u201cCython 3.0 \u5728\u5404\u4e2a\u65b9\u9762\u90fd\u4f18\u4e8e\u4e4b\u524d\u7684\u4efb\u4f55\u5176\u4ed6 Cython \u7248\u672c\u3002\u5b83\u66f4\u52a0 Python \u5316\uff0c […]<\/p>\n","protected":false},"author":1482,"featured_media":211293,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-278843","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/278843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1482"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=278843"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/278843\/revisions"}],"predecessor-version":[{"id":278964,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/278843\/revisions\/278964"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/211293"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=278843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=278843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=278843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |