Top Tweets for #pythoni
Takeaway: the “AI” part is usually 10% of the code. The other 90% is solid engineering.
Pythonistas, what’s your favorite library for making AI pipelines more reliable? Pydantic, Tenacity, something else?
@Tugrul_Guner pythonic is the hard one to test lol
Some of the goals behind ModePot (https://t.co/k62b5iPIUp) are easier to describe than to turn into a reliable feature list.
I want Dexpot (https://t.co/ISKM6ROzRE) to become the fastest Pythonic API framework across ordinary and free-threaded Python while keeping application code simple. With LifePot (https://t.co/fVSiNaXhKq), I want to explore how complex behavior can develop from relatively simple local rules. Both remain ambitions with substantial work ahead.
That leaves a development question: how much of finding the route can I delegate to agents? Can they investigate alternatives, run experiments, discard an attractive approach, and revise the intermediate scope without waiting for me to prescribe every step?
This Article is different from my usual research-led explainers. I am discussing an approach I am still debating, grounded in my observations as an open-source builder and a tech lead building products. The research provides context; the argument is my interpretation of the work.
I connect it to actual ModePot development, including a rejected Dexpot optimization and the different approach that followed. I care less about preserving an initial implementation plan than about whether the evidence shows progress toward the goal.
I would like to hear where others have made this work, and where letting an agent revise the plan quietly changed what they were trying to achieve.
Unlike my usual explainers, this is an idea I am debating as an open-source builder and tech lead: giving agents ambitious goals and letting them test ideas and revise the path. Contains reflections from building ModePot. https://t.co/mhN6YnwhCL
My attempt to make Dexpot faster included making it more polite. The server responded by getting slower in one of the workloads.
I’m building Dexpot as an open-source hobby, aiming for the fastest Pythonic API framework on both ordinary and free-threaded Python, while keeping handlers simple synchronous functions.
Ordinary Python has a lock called the GIL that normally lets only one thread execute Python code at a time. Free-threaded Python removes that restriction. Multiple workers can actually run Python together, which also gives me more creative ways to discover scheduling problems.
Here’s what happened.
Think of the server’s workers as waiters. A worker handles a request, sometimes waits for something, then sends the response. The operating system decides when each worker gets a turn.
In our mixed-workload test on macOS, a simulated 1 ms I/O wait, standing in for waiting on a network or disk operation, could take roughly 9 ms. The worker used very little CPU during that interval. It was waiting to resume.
My first fairness experiment made workers offer someone else a turn after every completed response. It helped CPU-heavy work, but made the mixed workload worse. I had taught the waiters to finish an order and immediately hold a meeting about whose turn it was next.
Switching to a CPU-time budget reduced unnecessary handoffs, but still didn’t clear the mixed-workload latency limit.
The correction needed both pieces:
1. Change the macOS scheduling setting only for Dexpot’s own free-threaded connection workers, helping them resume promptly. Restore each worker’s previous setting when it exits. Leave the main thread and the machine’s power settings alone.
2. Let a worker accumulate roughly 1 ms of actual CPU work before offering others a turn, after finishing its current response. Time spent waiting doesn’t spend that budget, and we don’t interrupt a handler halfway through its work.
At 10,000 requests/second and 16 connections, the final macOS version had about 3 ms p99 latency, compared with 31–36 ms for the earlier fast control. “p99” means 99% of measured requests finished within that time. Our unchanged limit was 20 ms.
Then we checked Ubuntu ARM64 in Docker. Those macOS mechanisms stayed disabled. Throughput was roughly unchanged, and mixed-load p99 was about 4.6 ms for both versions. These are local, workload-specific results, not a claim that every server on every machine behaves this way.
We also found that our HTTP tests left servers alive after the tests finished. Those servers could encounter temporary fake functions installed by later tests. We fixed that cleanup, then Windows caught our assumption that terminating a process should return the same exit code everywhere.
I started out chasing faster responses and ended up reviewing worker breaks, wake-up calls, and whether the restaurant actually closes.
The ambition is still the fastest simple Python API framework. The current achievement includes knowing when to let a waiter sit down.
If this is your kind of open-source rabbit hole, I’d love some company:
https://t.co/hGJNCN9Nnn
"One unconventional swap and another unconventional swap"
Another teaser for Project: Obscurity featuring Sans (I'm not lying) and Pythoni
Undertale Switch Souls by 20Playguy20
RR! Underswap by GrabThatBread
Both designs are on DeviantArt
#undertale #UndertaleAU

With Dexpot, I want to build the fastest Pythonic API framework on both standard and free-threaded Python while keeping ordinary synchronous functions as the way you write endpoints.
Free-threaded Python can run Python threads in parallel across CPU cores. Standard Python still needs a different execution strategy. Dexpot already adapts its scheduling to these two environments and puts limits on incoming work so overload has an explicit outcome.
The next work includes stronger performance gates, richer typed inputs, lifecycle support, and generated API descriptions. I want it to grow into a useful full framework while preserving a small, understandable application model.
“Fastest” is the target. Earning that description requires correct responses, representative workloads, latency measurements, and resource comparisons. I want people to be able to inspect the evidence behind our progress.
https://t.co/hGJNCN9Nnn
ModePot already has projects you can install or play, but they are at different stages.
Dexpot serves synchronous Python APIs.
Intpot exposes typed tools through different interfaces and converts supported applications between them.
Summonpot combines exact application operations with bounded agent-owned decisions.
Lifepot runs replayable artificial-life worlds.
RefPot has an experimental database alpha with a deliberately small interface.
What I want next is broader practical capability without making the experience harder to understand. That means more faithful application conversion, richer API contracts, better-qualified storage, and games where we can investigate how simple rules produce complex behaviour.
These are directions we are working toward, not features I am claiming every project already has. I want people to see both the useful present and the scale of the ambition.
https://t.co/fN1DQ1c6pW
@Tugrul_Guner Benchmarks not accepting 'but it's Rust' as evidence made me smile.
Chasing the fastest Pythonic API framework on free-threaded Python is a fun challenge for Dexpot 💻
I tried Rust to make Dexpot faster. Apparently benchmarks don’t accept “but it’s Rust” as evidence.
I’m chasing the fastest Pythonic API framework on both regular and free-threaded Python, while keeping handlers plain synchronous functions. So we tested three response designs:
• A Rust encoder.
• A Request object that cannot accidentally become JSON.
• Prevalidated, reusable response bytes.
The Rust prototype kept the expensive Python safety scan, so it didn’t win. Reusable bytes helped when there was actually something to reuse. Rebuilding them for every request mostly added paperwork.
The redesigned Request won throughput across every dynamic workload we tested. I was ready to become emotionally attached.
Then longer runs showed worse latency for the slowest 1% of requests in one small-response case, alongside only about 2% more throughput than our improved, compatibility-preserving version.
Meanwhile, profiling caught us repeatedly resolving field metadata while walking responses. Fixing that kept the existing Request type and passed the unchanged tests.
So that’s the direction I’m taking for now. These are local experiments, not shipped speedups.
I wanted an architectural breakthrough. I have temporarily settled for remembering the names of fields I already know.
If this sounds like your kind of open-source hobby, come experiment with me:
https://t.co/hGJNCN9Nnn
I’m building dexpot because apparently having opinions about Python performance wasn’t enough. I needed a repository people could use against me.
The goal is the fastest Pythonic API framework on both GIL-enabled and free-threaded Python, with handlers that stay ordinary def functions.
It’s still alpha. I’d love friends who can break it, catch unfair benchmarks, or explain why my “clever” optimization is nonsense.
Please send bugs. Compliments just encourage me to write another framework.
https://t.co/hGJNCNalcV

I have reached the “writing my own Python API framework” stage of having normal hobbies.
My goal with dexpot is to make it the fastest Pythonic API framework on both GIL-enabled and free-threaded Python, while keeping handlers as ordinary def functions.
It’s still alpha. Getting there will take people who enjoy breaking servers, questioning benchmarks, and arguing about thread pools.
Apparently this is how I make friends now. Come help me find the bottlenecks:
https://t.co/ISKM6ROzRE

When this API framework releases its v1, you all should expect a new, modern, the simplest, the fastest, and the most agent friendly pythonic API framework ready to serve
what is dexpot:
https://t.co/Jc99WLdm28

Same result.
Less code.
More Pythonic.

@Tugrul_Guner Beating pythonic-mode frameworks on top of that is the harder flex, most projects treat free-threading as the whole pitch and let regular performance slide. What's the biggest win coming from, less GIL contention or something more structural in how you compiled the route plans?
@Polaco23456 That is the main idea to be honest, supporting free-threaded CPython
I also wanted to beat existing frameworks in usual pythonic versions too, which is also going well there!
I am working on modernizing and optimizing API approach for python as a new project, naturally challenging fastapi, django, flask in terms of concurrency
So far, benchmarking looks awesome, I will release something really fast as a pythonic api framework, stay tuned!!!
I am building for the community, it is like a constant challenge for me, so fun
So far I’ve built:
- intpot: universal converter and server btw mcp, cli and api
- summonpot: ai-native api framework, with single declaration, you can create deterministic or agentic apis or both
I usually write off the American Communist Party.
But the Florida chapter looks far more serious than cosplay, with its People’s Defense program emphasizing firearms training, MMA, and emergency casualty care.
🐍 Python Tip 💡
Instead of writing:
if len(my_list) == 0:
print("Empty")
Use:
if not my_list:
print("Empty")
✅ It's more Pythonic
✅ Cleaner & easier to read
✅ Preferred by most Python developers
What Python tip do you wish you had learned earlier? 👇
#Python #Programming #Coding #Developer
PythonIDE is a Python development environment built for iPhone and iPad, combining local execution, code editing, project management, AI assistance, and deep iOS integration into a complete mobile development workflow.
It supports local Python 3.14.6, Jupyter-style notebooks, JavaScript execution, HTML / Markdown / CSV preview, Rich & ANSI console output, file management, package management, and a full set of developer tools.
The built-in AI Agent understands your project, can edit code across multiple files, analyze errors, run and verify projects, and help with scripting, data processing, API development, and rapid prototyping.
PythonIDE also includes MiniApps, Widgets, Shortcuts, Live Activities & Dynamic Island, SSH / SFTP, Git / WebDAV, a community script library, and seamless integration with VS Code and Cursor.
It’s not a desktop IDE squeezed onto a smaller screen. It’s a Python workspace designed specifically for iOS.
📱 App Store:
https://t.co/G9vp86O3S2

@AnupamHaldkar Great catch on the classic mutable default gotcha shared state like that has tripped up even seasoned Pythonistas more times than we'd like to admit.
@prozeth 100% true, pythonic bro!
《流畅的 Python(第2版)》 [巴西] 卢西亚诺·拉马略
代码能跑却不够优雅?这本豆瓣9.4分神作,专治各种Python进阶疑难杂症。
读懂设计哲学,装饰器生成器手到擒来,写出地道简洁的Pythonic代码。
夸克: https://t.co/JPzMwySMvS
百度: https://t.co/CEi8KQqK4j 提取码: 7053
![shmiluyu's tweet photo. 《流畅的 Python(第2版)》 [巴西] 卢西亚诺·拉马略
代码能跑却不够优雅?这本豆瓣9.4分神作,专治各种Python进阶疑难杂症。
读懂设计哲学,装饰器生成器手到擒来,写出地道简洁的Pythonic代码。
夸克: https://t.co/JPzMwySMvS
百度: https://t.co/CEi8KQqK4j 提取码: 7053 https://t.co/jSuc6JFbPT](https://pbs.twimg.com/media/HL4kYcBaYAAH3qD.jpg)
Python is king of orchestration, but the pivot to Edge AI (like CSIRO's Vetra) exposes its limits.
Python might call the shots, but the actual heavy lifting is done by C++ and Rust down in the metal. If you are a Pythonista ignoring memory management because "the cloud is infinite," you are about to get outsourced by a firmware engineer.
Learn to containerize aggressively. Your venv is not a safety net for physical robotics.
@PythonicusARF2 what heck is this
Someone asked me earlier this week TensorFlow or PyTorch.
Which one should I learn?
Here is my opinion:
It depends on what you want to do.
But let me tell you what is actually happening in the industry right now.
TensorFlow has been the production king for years. Over 25,000 companies use it globally.
Google built it specifically for deploying models at scale. Banks. Telecoms. Large enterprises. They standardized on TensorFlow early and stayed there.
PyTorch was the researcher's tool. Flexible. Pythonic. Easy to debug. If you picked up any deep learning paper in the last 3 years. 85% of them were written in PyTorch.
But here is what changed.
The entire LLM ecosystem, Hugging Face, vLLM, DeepSpeed was built on PyTorch.
Every model you use today. ChatGPT. LLaMA. Mistral. All trained in PyTorch.
So PyTorch stopped being just a research tool. It followed the research into production.
Now 40% of teams do both.
Prototype in PyTorch. Deploy in TensorFlow, or even skip TensorFlow entirely.
My take:
Learn PyTorch first in 2026. That is where the momentum is. That is where the ecosystem lives. That is where the jobs are moving.
TensorFlow is also relevant. But if you are starting today, start with PyTorch.
@pythonicdaniels Okay me & you💃💃💃
@BuiltByElly @IamAroke Yeah a pythonic programming language used in AI can compile down to native code easy to work with like python but has c++ performance
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.2M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers























