David Hewitt

153 posts

David Hewitt banner
David Hewitt

David Hewitt

@davidhewittdev

Developing PyO3 to bring Rust 🦀 and Python 🐍 together. Working with the team at Pydantic to build software that developers love. @[email protected]

Oxford, England Tham gia Nisan 2011
109 Đang theo dõi932 Người theo dõi
David Hewitt
David Hewitt@davidhewittdev·
I'm really looking forward to speaking at @RustNationUK 2025! I have a ton of crazy Rust stuff we've done in PyO3 which I can't wait to get your take on 😁
Rust Nation UK 🦀@RustNationUK

Speaker Announcement 🚨 For the past five years, David Hewitt (@davidhewittdev) has been on a journey exploring the evolving relationship between Rust and Python. Join David's talk "Techniques learned from five years finding the way for Rust in Python" at #rustnationuk25, where he’ll share hard-earned insights from contributing to PyO3, revealing the Rust techniques and "proc-macro magic" behind building powerful, user-friendly APIs—all without compromising performance. Get your early bird ticket now 🎟️ buff.ly/3y02Grr

English
1
3
30
2.2K
David Hewitt
David Hewitt@davidhewittdev·
Wrapping in PyO3 would be easy but it makes distribution harder; does ruff executable then also link against some shared library which the Python API also use (at slight overhead to ruff startup), or do you keep the ruff executable standalone and double the download size? 🤔 Calling the ruff binary as a subprocess seems good enough for all but the most heavy of uses.
English
1
0
2
30
William Bakst
William Bakst@WilliamBakst·
@charliermarsh is it possible to run ruff in a python file on a string? something like `ruff.format(code)`
English
2
0
1
103
Orhun Parmaksız 👾
Orhun Parmaksız 👾@orhundev·
Don't talk to me if your Rust target folder is less than 800GB
Orhun Parmaksız 👾 tweet media
English
16
3
148
8.3K
David Hewitt đã retweet
Charlie Marsh
Charlie Marsh@charliermarsh·
Today, we're shipping a series of features that move uv beyond a pip alternative, and into an end-to-end solution for managing Python projects, command-line tools, single-file scripts, and even Python itself. A single, unified tool. Like Cargo, for Python. It's very fast.
Charlie Marsh tweet media
English
104
459
3.4K
505.8K
David Hewitt đã retweet
Predrag Gruevski
Predrag Gruevski@PredragGruevski·
"When you're working with superconductors, copper is an insulator" #rustlang tools like cargo-semver-checks, release-plz, PyO3, and maturin are helping make fusion power a reality at @CFS_energy!
Predrag Gruevski tweet media
English
1
2
6
838
David Hewitt
David Hewitt@davidhewittdev·
@algo_luca Love to hear this, can't wait to see what you're cooking up! There's still so much left to polish on PyO3 yet, not to mention a lot of fun to be had with Python 3.13 freethreading 😁
English
0
0
8
230
Luca Palmieri
Luca Palmieri@algo_luca·
I'm preparing some teaching material on pyo3. I had an *operational* understanding of it, but by digging deeper I'm really coming to appreciate the amount of care and polish that went into it. Hat off to @davidhewittdev! He has been an amazing sheperd.
English
8
6
105
18.7K
David Hewitt
David Hewitt@davidhewittdev·
@PredragGruevski @llogiq @jessfraz This exactly why I care so much about making PyO3 effective to use; the Python developer ecosystem is huge and bringing solid interoperability with Rust is a win for both languages.
English
1
0
4
39
Jessie Frazelle
Jessie Frazelle@jessfraz·
pyo3 is dope, made some python bindings to a rust crate today
English
5
1
67
9.7K
David Hewitt
David Hewitt@davidhewittdev·
@elephantum @samuelcolvin @WilliamBakst @pydantic I think this assessment sounds correct; at the moment `pydantic-core` isn't built to re-use schema validators of models so if you nest models to re-use you get duplication at the schema level. Unsurprising this blows up as you have multiple levels so this needs to change!
English
0
0
2
65
Andrey Tatarinov
Andrey Tatarinov@elephantum·
Did you know that it's possibile for a Python FastAPI application to consume several hundreds of Mb of RAM due to @pydantic? We have an app which consumes 480Mb at the start, half of which is @pydantic validators or other pydantic-related allocations
English
2
0
2
1.8K
David Hewitt
David Hewitt@davidhewittdev·
@codspeedhq do you have a badge I can put on the PyO3 repository README?
English
1
0
3
69
David Hewitt đã retweet
Hynek Schlawack
Hynek Schlawack@hynek·
In my quest to produce a shorter video, I’ve produced my longest so far: tox vs Nox: What are they for & How do you choose?: youtube.com/watch?v=ImBvrD… In which I introduce those two indispensable tools and reflect my own usage of BOTH. Enjoy!
YouTube video
YouTube
English
2
6
25
4.6K
David Hewitt
David Hewitt@davidhewittdev·
Had a great time at the @pycon sprints yesterday leading a group working on PyO3! I'll be back in room 321 again today before I head back to the UK tonight. Come say hi!
David Hewitt tweet media
English
0
1
18
838
David Hewitt đã retweet
Peter Sobot
Peter Sobot@psobot·
tfw you put submit a @pycon lightning talk proposal with just a title but no actual content in mind
Peter Sobot tweet media
English
3
1
54
4.7K
David Hewitt
David Hewitt@davidhewittdev·
@psobot Thanks! Yes I went back and forth a bit on how deep to go but in the end I wanted to try to just give an honest idea of how it all works, warts and all!
English
0
0
1
44
Peter Sobot
Peter Sobot@psobot·
@davidhewittdev Really great talk! I loved how you didn’t hide the complexity and showed all of the layers of indirection that exist at the language boundary.
English
1
0
2
56
David Hewitt
David Hewitt@davidhewittdev·
Had a great experience giving my first talk at PyCon US just now! Thanks to everyone who came to hear me enthuse about Rust and Python! 😁
David Hewitt tweet media
English
4
4
68
2.9K
David Hewitt đã retweet
Samuel Colvin
Samuel Colvin@samuelcolvin·
We're live! @pydantic Logfire is in open beta. Since I started writing Python in 2010, I've wanted a better way to do logging. Off the back of Pydantic's unbelievable growth, last year I started a company backed by @sequoia, and lucky enough to hire the brightest people I know. Now we've gone and built the logging thing I always wanted. pydantic.dev/logfire
English
23
75
497
132.1K
David Hewitt
David Hewitt@davidhewittdev·
PyO3 0.21.2 just released! A few compile-time fixups, nothing particular to highlight. github.com/PyO3/pyo3/rele… Also, for anyone wondering where the PyO3 development streams have gone - family responsibilities have filled my April slots, I'm hoping in May we can resume!
English
0
2
25
1.5K