David Hewitt's Avatar

David Hewitt

@davidhewitt.dev

Developing PyO3 to bring Rust πŸ¦€ and Python 🐍 together. Working with the team at Pydantic to build software that developers love.

890
Followers
75
Following
18
Posts
31.10.2023
Joined
Posts Following

Latest posts by David Hewitt @davidhewitt.dev

GitHub - rvben/rumdl: Markdown Linter and Formatter written in Rust Markdown Linter and Formatter written in Rust. Contribute to rvben/rumdl development by creating an account on GitHub.

Absolutely loving using github.com/rvben/rumdl to lint markdown, just like `ruff`, it's crazy fast!

I just signed up as rvben's first GitHub sponsor, calling on everyone to join me in showing this project some support!

12.02.2026 14:08 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I currently have availability for Rust coaching, adoption, or development; from a single call to ongoing 3 days/week. I can help your team get things done, adopt Rust and use it more effectively, or to accurately evaluate Rust as a new technology.

23.10.2025 19:06 πŸ‘ 15 πŸ” 17 πŸ’¬ 1 πŸ“Œ 0

TIL, this is so helpful!

03.09.2025 08:44 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Going live in 10 minutes! Come see us play with Rust, AI and AI-assisted debugging!

21.08.2025 15:48 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Using OpenAI Codex & Pydantic Logfire to Debug Rust Code: Livestream and Recording | Pydantic A YouTube live session and recording showing how to use Pydantic Logfire to debug OpenAI Codex

I will be going live in 5 hours to play with OpenAI Codex CLI and show the power of combining it with Pydantic Logfire's Rust SDK and MCP server to debug Rust apps.

Should be a relatively gentle introduction to AI-assisted development, please come along check it out!

pydantic.dev/articles/ope...

21.08.2025 11:08 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1
Preview
Rust: Python's New Performance Engine Rust usage for Python extensions surged 22% in one year as developers choose memory safety and C-level performance over traditional approaches.

Rust usage for Python extensions surged 22% in one year as developers choose memory safety and C-level performance over traditional approaches.

By @darrylktaft.bsky.social

20.08.2025 04:00 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 1

Love these kinds of wins! Have spent a lot of time trying to factor out PyO3's proc macros in the same way 😁

16.08.2025 08:44 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Vote to promote Emma Smith As her mentor, I am very happy to propose promoting Emma Smith (@emmatyping on DPO and GitHub) to core developer. Emma has been a long time contributor to Python in many areas over the years, from myp...

I'm *so* excited to share that I am now officially a CPython Core Developer! πŸ₯³

I wrote my first Python in 2012, and immediately fell in love with the language. I'm honored that I am a part of, and can give back to, such an amazing, welcoming community!

discuss.python.org/t/vote-to-pr...

01.08.2025 19:27 πŸ‘ 119 πŸ” 11 πŸ’¬ 12 πŸ“Œ 0

I think worthy of a standalone issue, even if we ultimately decide the solution is the same thing there's a good chance it can be a standalone feature πŸ‘

01.08.2025 12:24 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Rust, Python, and TypeScript: the new trifecta Β· baby steps

I completely agree with this great blog post by @nikomatsakis.com betting that Rust, Python and Typescript will be stables of the AI coding era πŸ‘

These languages combined have the package ecosystems and domain coverage to meet most programming needs.

smallcultfollowing.com/babysteps/bl...

01.08.2025 11:45 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Build a tool with Rust, then integrate it into Python with the amazing PyO3 πŸ¦€ 😍 πŸ“ˆ

25.07.2025 12:27 πŸ‘ 5 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0
Preview
`#[pyclass]` trait ergonomics Β· Issue #4207 Β· PyO3/pyo3 Following up to #4202 and #4206 I wanted to write down something I've been thinking about for a while. It looks like we're moving ahead with accepting those options so I'll assume that at least the...

I have wanted to have the ability to derive constructors for a while, `Default::default()` would make a ton of sense.

Perhaps related closely to the `#[pyclass(dataclass)]` idea I discuss on github.com/PyO3/pyo3/is...

01.08.2025 11:39 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Beyond just compile times, the ability to iterate with Python in REPL and notebook environments is so valuable.

I've seen this pattern time and time again where the machinery needs to be in a native language and Python gets to sit in the driver's seat.

01.08.2025 11:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

pyo3 is great. sick of Rust compile times? Just build your Rust crate into a Python module, then use it with all your other Python

31.07.2025 22:40 πŸ‘ 5 πŸ” 2 πŸ’¬ 3 πŸ“Œ 0
Preview
Legacy Client pooling messes tower::TraceLayer tracing Β· Issue #3904 Β· hyperium/hyper Version hyper 1.6.0 hyper-util 0.1.12 tower 0.5.2 tower-http 0.6.4 Platform Linux 6.10.14-linuxkit #1 SMP Tue Apr 15 16:00:54 UTC 2025 aarch64 GNU/Linux Description When using tower_http::TraceLaye...

In case anyone else has been having recent trouble with Rust tracing having spans seemingly hanging open at random - spent a huge debugging session to arrive at github.com/hyperium/hyp...

Will be interesting to see what the solution to this one is.

07.07.2025 19:25 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

The uv build backend is now stable, and considered ready for production use.

An alternative to setuptools, hatchling, etc. for pure Python projects, with a focus on good defaults, user-friendly error messages, and performance.

When used with uv, it's 10-35x faster.

03.07.2025 01:55 πŸ‘ 236 πŸ” 43 πŸ’¬ 5 πŸ“Œ 3

I'm back, babbyyyy

More async coming your way at @rustconf.com. I've spent many years writing software with async Rust. It's a great tool but easy to misuse. Sign up and I can teach you some of my knowledge to kick start your teams.

28.06.2025 10:25 πŸ‘ 4 πŸ” 2 πŸ’¬ 2 πŸ“Œ 0

Yeah, this is a frustrating one. I have ideas how to make it better, really cargo test should not be broken like this. "Just" need to write them down and get buy in.

19.06.2025 06:46 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Rustacean Station Come journey with us into the weird, wonderful, and wily world of Rust.

A bit of a long shot: the regular audio editor for the "What's New" Rustacean Station episodes is now busy with other life stuff. The last episode I edited myself, but it took ages! Anyone know an editor (ideally familiar with Rust, but not a requirement) who'd take on a regular (paid) editing gig?

14.06.2025 07:34 πŸ‘ 18 πŸ” 9 πŸ’¬ 1 πŸ“Œ 0
Post image

This is the first time I am doing this #TeaWithCheuk a 1-1 meeting with me at #PyDataLDN to talk about anything #Python #PyCharm #DataScience etc. limited slot, booking link in the comment.

@pydatalondon.bsky.social @pycharm.dev

31.05.2025 09:10 πŸ‘ 10 πŸ” 4 πŸ’¬ 1 πŸ“Œ 0

A critical component for our database in Pydantic Logfire. Having a lot of fun building with this!

17.05.2025 11:00 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Slidev

Thanks to everybody who came to my talk at #PyConUS yesterday! As promised, here are the slides: pycon-us-2025-davidhewitt.vercel.app

17.05.2025 10:59 πŸ‘ 4 πŸ” 0 πŸ’¬ 1 πŸ“Œ 1
Post image

#PyconUS attendees. Have time? We REALLY need more volunteers tomorrow, Sat πŸ₯Ί. Green room volunteers, session runners, swag distribution, registration,information desk. Login to us.pycon.org/ on your dashboard, click on volunteer>volunteering. Pick the time you're free!

16.05.2025 19:25 πŸ‘ 5 πŸ” 9 πŸ’¬ 0 πŸ“Œ 0

I like to think that when Charli xcx sang β€œUnlock It (Lock It)”, she was referencing thread safety with mutexes.

16.05.2025 16:57 πŸ‘ 17 πŸ” 2 πŸ’¬ 3 πŸ“Œ 0
Post image

Our social run group this morning at #PyConUS Ed, Hynek, David Hewitt and David Lord.
Running again 7:30 Saturday anyone welcome!

15.05.2025 15:36 πŸ‘ 29 πŸ” 3 πŸ’¬ 1 πŸ“Œ 0

πŸŽ‚ Rust turns 10 today! πŸŽ‚

To mark the anniversary of Rust 1.0, we’re excited to share a reflection by Graydon Hoare, the initial author of Rust.

It’s a story of infrastructure, community, and extraordinary collaboration.

Read Graydon's guest blog here: rustfoundation.org/media/10-yea...

15.05.2025 15:25 πŸ‘ 30 πŸ” 10 πŸ’¬ 0 πŸ“Œ 3
Post image

Photo with my old core dev friends.

@vstinner.bsky.social and Erlend.

#PyConUS

14.05.2025 17:35 πŸ‘ 11 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
Post image

#Education summit at #PyConUS we are here because we want to help more people to learn #Python - thank you so much for our super star organisers Kelly and Sean

15.05.2025 13:10 πŸ‘ 3 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

I’m at PyCon US today! 😁

15.05.2025 11:59 πŸ‘ 2 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Please come join us today at #PyConUS - I develop and monitor Pydantic Logfire using Pydantic Logfire, and I believe others can get so much value from our platform too!

15.05.2025 12:37 πŸ‘ 2 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0