上更快的 CPython

原文: PyCoder's Weekly - Issue #577

pycoder

  • 230517 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄.
  • 230517 Zoom.Quiet(大妈) 用时 37 分钟 完成快译,

This article summarizes the report the Faster CPython team gave at PyCon 2023. It gives information on PEP 659 Specializing Adaptive Interpreter and other performance improvements on the roadmap.

(是也乎:

Faster CPython 团队的两名成员是应 Guido van Rossum 的要求在微软组建的 ...

... 这不也是对 CRISC 系统的描述吗?

然后, 有各种吐糟, 不过, 有专人长期思考如何加速运行, 也是好事儿, 或是说开发语言社区成熟的一个标志?

)

PyPI recently introduced a method to publish using GitHub Actions without the need for usernames and passwords. This post shows you Philip’s set-up for his own projects using this new feature.

(是也乎:

来自 github 就可信了?

)

How do Python virtual environments work under the hood? How does understanding these concepts help you with managing them for your projects? This week on the show, CPython core developer Brett Cannon returns to discuss his recent articles about virtual environments and the Python packaging landscape.

(是也乎:

PODCAST )


探讨/吐糟

Discussions

None...


文章/教程/嗯哼

Articles, Tutorials and Talks

Imagine you work on a Django project. You want to test your application with unit tests and integrations tests. Your application has lots of database tables, which need to be filled with realistic data for each test case. This article explains 3 techniques that will help you to fill the database with a lot of data for each test case.

In this video course, you’ll learn how to use the Python standard REPL (Read-Eval-Print Loop) to run your code interactively. This tool will allow you to test new ideas, explore and experiment with new tools and libraries, refactor and debug your code, try out examples, and more.

(是也乎:

REPL

Jupyter 就是加强又加强的 REPL

)

The frenzy of mircoservices-all-the-things has calmed somewhat and you may find yourself with a microservice architecture to maintain that probably shouldn’t be. This article details how to wrangle that network based architecture into a well modularized monolith.

(是也乎:

哈, 这可能是微服务另外一个头大的问题所在了...

)

In this tutorial, you’ll use Docker and GitHub Actions to build a robust continuous integration pipeline for a multi-container web application consisting of Flask and Redis. Along the way, you’ll learn how to dockerize a Python web application.

(是也乎:

CD

)

“This article shows how you can run a Python program within another application that uses a Wasm runtime (host) and have the Python program talk to the host and vice versa.”

(是也乎:

WASM

可能还得在 rust 的帮助下, Py 才能更加 Pythonic 的融合到 WASM 生态中

)

Ixaxxar walks you through the step by step process he used to build and test a piece of code using ChatGPT as his guide. TL;DR: it isn’t quite ready to replace him yet.

(是也乎:

类似都市传说还在爆发, 何时不在关注这种内容之时, 才是 GPT 们融入日常的时刻...

...让 ChatGPT 修复特定代码时感到非常沮丧

是的, 感觉在和一位非常认真又非常轴的毕业生在对话, 嘦提示语给定的运行时条件一致, 最后总是绕到一个固定的回答中, 对代码改进无帮助的方向...

)

The pytz library and its interactions with datetime are a source of misunderstandings and ultimately bugs. This article points out the problem cases.

(是也乎:

...意思是说 pytz 是一个优化得很好的库

好吧, 作者的梗儿不知道从哪儿来的, 反正, 日期处理在 Python 一向是感觉很容易又很复杂, 原因, 还是当初根本没这么多复杂的时间变化任务...所以, 各种改良能力模块就出现了...

)

This is a summary of Christopher Neugebauer’s talk at PyCascades reminding attendees how foolish consistency can be a hobgoblin to productivity.

(是也乎:

一致性也有坑...毕竟是30+年前的一机灵...

)

“A backstory and rationale for why we created the Mojo language.”

(是也乎:

Mojo 的初心是什么?

全程没提及 Rust, 其它 Julia 之类语言倒是说了不少, 关键就是想偷懒, 明明当前 ML 世界主要都是 Py 代码了, 但是, 涉及到计算密集场景就有各种其它语言任务, 干脆一起兼容了吧...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

叕一个可以将 键鼠行为录制为一个宏的工具...

)

(是也乎:

*try 家族叕一个工具, 应该是对 Poetry 依赖探查速度不满?

)

(是也乎:

反正现在和 GPT 粘点儿边就爆 star

)

(是也乎:

roadmapper

甘特图的第101种绘制姿势...

)


📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心


历史上的这周


DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

      _~^-^~_
  \/ /  ♡ ◷  \ \/
    '_   ⏝   _'
    ( '-----' <

...act by ferris-actor v0.2.4 (built on 23.0303.201916)

PS:

Happy Pythoning!

Copyright © 2023 PyCoder’s Weekly, All rights reserved.

PPS:

不觉中蟒周刊快译已经到了第10+2个年头

开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.

所以++> 锈周刊 -> Weekly :: China


好文笔,感叹号年度配额: 2/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->