Research: parse_number() as a SQLite extension: C vs Rust I was out walking the dog when I got curious about how easy/difficult it would be to write a SQLite C extension that adds a parse_number() function for turning…
Context: I’m an OEISer, and like to write programs for OEIS sequences I contribute to. I had been aware (from both the prevailing wisdom of the community) that a lot of functions in sympy are slower than they ought to…
I’m excited to announce my newest course, Introduction to agentic coding with Claude Code (https://lernerpython.com/courses/intro-agentic-coding-claude-code/). If you want to go beyond giving simple prompts or using…
Build an EV purchase adviser and a support agent in Python, then see how fan-out, pipelines, hierarchies, and swarms reuse the same building blocks. The post How to Build Multi-Agent Systems with the OpenAI Agents SDK…
Just add d suffix for decimal.Decimal. I think it’s useful and simple. We don’t need a new built-in type dec or a new standard library decmath for it. 37 posts - 12 participants Read full topic
Even with step-by-step reasoning, the models landed near 33% accuracy, and one quoted the host's rule correctly before ignoring it. The post Change One Monty Hall Rule and Five LLMs Still Say Switch appeared first on…
PyTorch and AWS introduce TorchNeuron, an open-source backend that lets developers run PyTorch models natively on AWS Trainium2 and Trainium3 accelerators with minimal code changes. Now available in public beta, it…
TorchTPU is an open source collaboration between Google and Meta that introduces a native and principled PyTorch backend for Google TPUs. It enables seamless out-of-the-box model execution and TPU migration while…
Starting with Python Pandas 3.1, use “filter” to apply a condition to rows. So: ( df .loc[ pd.col('passenger_count') > 1 , 'trip_distance'] .mean() ) can now be (the much slower): ( df…
In a first look at Muru and looking inside the workers I have been showing what Muru can do in development mode, without saying much about how it is put together. Words like host, worker, edge and release have kept…