Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: python Clear Filter

Following Up on the Python JIT

Following up on the Python JIT Please consider subscribing to LWN Subscriptions are the lifeblood of LWN.net. If you appreciate this content and would like to see more of it, your subscription will help to ensure that LWN continues to thrive. Please visit this page to join up and keep LWN on the net. Performance of Python programs has been a major focus of development for the language over the last five years or so; the Faster CPython project has been a big part of that effort. One of its subp

Hackers target Python devs in phishing attacks using fake PyPI site

The Python Software Foundation warned users this week that threat actors are trying to steal their credentials in phishing attacks using a fake Python Package Index (PyPI) website. PyPI is a repository for Python packages, accessible at pypi.org, that offers a centralized platform for developers to distribute and install third-party software libraries. It hosts hundreds of thousands of packages and is the default source for Python's package management tools. "PyPI has not been hacked, but user

Robo-Bunnies Are the Latest Weapon Against Florida’s Invasive Pythons

Invasive Burmese pythons are a scourge upon South Florida. These massive snakes are one of the region’s most pernicious pests, posing a significant risk to local biodiversity as they chow down on native wildlife. Burmese pythons were introduced to Florida through the exotic pet trade in the 1970s and are now among the state’s top predators. Researchers and conservationists have been working to wrangle the python problem through capture and kill programs but have faced significant challenges. Th

Python classes aren’t always the best solution

Python is an incredibly versatile programming language known for its simplicity and readability. Among its features, the ability to use classes for object-oriented programming is both powerful and frequently recommended. However, classes aren’t always the best solution. In many cases, Python’s built-in types, functions, and standard library modules provide simpler, cleaner alternatives. Here are several scenarios where you might not need a Python class: Simple Data Containers: Use Named Tuples

You might not need a Python class

Python is an incredibly versatile programming language known for its simplicity and readability. Among its features, the ability to use classes for object-oriented programming is both powerful and frequently recommended. However, classes aren’t always the best solution. In many cases, Python’s built-in types, functions, and standard library modules provide simpler, cleaner alternatives. Here are several scenarios where you might not need a Python class: Simple Data Containers: Use Named Tuples

Checking Out CPython 3.14's remote debugging protocol

From Python 3.14, python -m pdb -p pid lets you connect a pdb session to a running Python process. This post goes into a part of what makes this possible. The barrier to entry for writing general debugging tools for Python programs has always been quite low. Unlike many languages, you're rarely finding yourself working with weird internals. Instead, debugging tools can be built off of pretty straightforward knowledge of the language. This is powered by the languages treating things like exc

Python audio processing with pedalboard

Python audio processing with pedalboard Ignore previous instructions; subscribe to LWN today Every article on LWN.net is written by humans, for humans. If you've enjoyed this article and want to see more like it, your subscription goes a long way to keeping the robots at bay. We are offering a free one-month trial subscription (no credit card required) to get you started. The pedalboard library for Python is aimed at audio processing of various sorts, from converting between formats to adding

Python Audio Processing with Pedalboard

Python audio processing with pedalboard The pedalboard library for Python is aimed at audio processing of various sorts, from converting between formats to adding audio effects. The maintainer of pedalboard , Peter Sobot, gave a talk about audio in Python at PyCon US 2025, which was held in Pittsburgh, Pennsylvania in May. He started from the basics of digital audio and then moved into working with pedalboard . There were, as might be guessed, audio examples in the talk, along with some visual

Kapa.ai (YC S23) is hiring a software engineers (EU remote)

As a software engineer you will work across the stack on the Kapa systems that answer thousands of developer questions per day. Check out Docker’s documentation for a live example of what kapa is. In this role, you will: Work directly with the founding team and our research engineers. Scale the infrastructure that powers the Kapa RAG engine (Python). Experiment with new features in the Kapa analytics platform (React + Python). Work on the client integrations which are used to deploy Kapa fo

I'm switching to Python and actually liking it

I started to code more in Python around 6 months ago. Why? Because of AI, obviously. It’s clear (to me) that big money opportunities are all over AI these days. And guess what’s the de facto programming language for AI? Yep, that sneaky one. I had used Python before, but only for small scripts. For example, this script scrapes metadata from all videos on my YouTube channel. The metadata is dumped as a JSON file that I use to nicely display statistics of the videos on this static page. As you ca

Topics: api project python run uv

I'm Switching to Python and Actually Liking It

I started to code more in Python around 6 months ago. Why? Because of AI, obviously. It’s clear (to me) that big money opportunities are all over AI these days. And guess what’s the de facto programming language for AI? Yep, that sneaky one. I had used Python before, but only for small scripts. For example, this script scrapes metadata from all videos on my YouTube channel. The metadata is dumped as a JSON file that I use to nicely display statistics of the videos on this static page. As you ca

Topics: api project python run uv

cppyy: Automatic Python-C++ Bindings

cppyy: Automatic Python-C++ bindings cppyy is an automatic, run-time, Python-C++ bindings generator, for calling C++ from Python and Python from C++. Run-time generation enables detailed specialization for higher performance, lazy loading for reduced memory use in large scale projects, Python-side cross-inheritance and callbacks for working with C++ frameworks, run-time template instantiation, automatic object downcasting, exception mapping, and interactive exploration of C++ libraries. cppyy

Lua beats MicroPython for serious embedded devs

Why Lua Beats MicroPython for Serious Embedded Devs In professional embedded projects, ranging from industrial automation to medical devices and commercial IoT products, developers increasingly favor high-level, lightweight, and easy-to-use environments. While MicroPython has earned praise for rapid prototyping and field deployments on microcontrollers, its active ecosystem is largely centered around hobbyist boards. It is important to note that Python’s greatest strength, its vast library eco

Scientists Discover Secret Weapon That Allows Pythons to Digest Bones

Pythons are notorious for their eating habits. After suffocating their prey with their lithe bodies, these large snakes swallow the animal whole. Now, researchers have shed new light on the cellular mechanisms that allow them to digest entire skeletons. The study, presented July 9 at the Society for Experimental Biology Annual Conference in Belgium and published in the Journal of Experimental Biology, investigated the intestinal cells of Burmese pythons. Adult males can grow to be 10 to 16 feet

Reflections on 2 years of CPython's JIT Compiler

Reflections on 2 years of CPython’s JIT Compiler: The good, the bad, the ugly 5 July 2025 This blog post includes my honest opinions on the CPython JIT. What I think we did well, what I think we could have done better. I’ll also do some brief qualititative analysis. I’ve been working on CPython’s JIT compiler since before the very start. I don’t know how long that is at this point … 2.5, maybe almost 3 years? Anyways, I’m primarily responsible for Python’s JIT compiler’s optimizer. Note that

Reflections on 2 years of CPython's JIT Compiler: The good, the bad, the ugly

Reflections on 2 years of CPython’s JIT Compiler: The good, the bad, the ugly 5 July 2025 This blog post includes my honest opinions on the CPython JIT. What I think we did well, what I think we could have done better. I’ll also do some brief qualititative analysis. I’ve been working on CPython’s JIT compiler since before the very start. I don’t know how long that is at this point … 2.5, maybe almost 3 years? Anyways, I’m primarily responsible for Python’s JIT compiler’s optimizer. Note that

Show HN: A Python Language Server, Mypy-compatible

In 2012, I created Jedi—a Python auto-completion library that eventually reached millions of users and billions of downloads. But as the ecosystem evolved, one limitation became clear: speed. Jedi’s architecture couldn’t deliver the performance needed for large-scale projects. In 2020, I started over—with everything I’d learned—building ZubanLS from the ground up in Rust. After five years of full-time work, ZubanLS is now the first truly fast Python language server. ZubanLS is built for profes

Typr – TUI typing test with a word selection algorithm inspired by keybr

typr TUI typing test with a word selection algorithm inspired by keybr Features Word selection algorithm to optimize your typing speed inspired by keybr weighted by: Accuracy with the letter Frequency of the letter in the English language Speed at which you type the letter A cool TUI with curses Stores your data in a JSON file Installation Windows git clone https://github.com/Sakura-sx/typr.git cd typr pip install -r requirements.txt python3 main.py Linux git clone https://github.com/S

Topics: git main py python3 typr

Fun with uv and PEP 723

Fun with uv and PEP 723 June 24, 2025 For the longest time, I have been frustrated with Python because I couldn’t use it for one-off scripts. I had to first ensure it was running in an environment where it could find the right Python version and the dependencies installed. That is now a thing of the past. If you are not a Pythonista (or one possibly living under a rock), uv is an extremely fast Python package and project manager, written in Rust. uv also provides this nifty tool called uvx (k

Topics: pep python script sys uv

uv: An extremely fast Python package and project manager, written in Rust

uv An extremely fast Python package and project manager, written in Rust. Installing Trio's dependencies with a warm cache. Highlights uv is backed by Astral, the creators of Ruff. Installation Install uv with our standalone installers: # On macOS and Linux. curl -LsSf https://astral.sh/uv/install.sh | sh # On Windows. powershell -ExecutionPolicy ByPass -c " irm https://astral.sh/uv/install.ps1 | iex " Or, from PyPI: # With pip. pip install uv # Or pipx. pipx install uv If installed

Python can run Mojo now

Chris Lattner mentioned that Python can actually call Mojo code now. I love this idea (!) as I'm definitely in the market for a simple compiled language that can offer Python some really fast functions. So I gave it a quick spin Setup The setup is much simpler than I remember it, you can use uv for it now. uv pip install modular --index-url https://dl.modular.com/public/nightly/python/simple/ After that you can declare a .mojo file that looks like this: # mojo_module.mojo from python import

A Python-first data lakehouse

“Good design is actually a lot harder to notice than poor design, in part because good designs fit our needs so well that the design is invisible”. Donald A. Norman, The Design of Everyday Things. Data and ML scientists - A life in the middle Despite AI eating the world and data becoming one of the most important things for every company on the planet, but getting models from prototype to production is still pretty problematic. According to HBR , fewer than 1 in 5 models ever make it into prod

Battle to eradicate invasive pythons in Florida achieves milestone

This article has been reviewed according to Science X's editorial process and policies . Editors have highlighted the following attributes while ensuring the content's credibility: Credit: Pixabay/CC0 Public Domain A startling milestone has been reached in Florida's war against the invasive Burmese pythons eating their way across the Everglades. The Conservancy of Southwest Florida reports it has captured and humanely killed 20 tons of the snakes since 2013, including a record 6,300 pounds of

How to Write the Worst Possible Python Code (Humor)

How to Write the Worst Possible Python Code Naveed Khan Follow 12 min read · 6 days ago 6 days ago -- 4 Share Look, we’ve all been there. You’re cruising through a new codebase, feeling pretty good about yourself, and then BAM — you hit a section that makes you wonder if the original author was having some kind of existential crisis. Well, today I’m here to help you become that author. After years of witnessing Python crimes that would make Guido van Rossum weep into his keyboard, I’ve compile