/Tech1d ago

Astral founder Charlie Marsh uses OpenAI models to cut Ruff's ty type checker memory by 15%

The optimizations bring cumulative memory savings to about 25%.

7784825156152.4K
Original postBoaz Barak#140
Charlie Marsh@charliermarsh#1147inTech

Since my last post, I reduced ty’s retained memory by another 15% with Codex. We're now at a ~25% memory reduction overall via /goal, largely in the background.

I love working with the GPT models so much.

4:28 PM · Jun 8, 2026 · 89.1K Views
Sentiment

Positive users highlight the impressive 25% memory reduction in Ty using AI tools as a valuable background improvement, while negative users complain about usage limits and billing issues with Codex.

Pos
75.0%
Neg
25.0%
20 comments with sentiment.
Cluster Engagement
Posts from X
Most Activity
Most Activity
VIEWS92.5KBOOKMARKS102LIKES599RETWEETS19REPLIES61
Tibo@thsottiaux

Playing codex like an orchestra. One /goal at a time.

Charlie Marsh@charliermarsh

Since my last post, I reduced ty’s retained memory by another 15% with Codex. We're now at a ~25% memory reduction overall via /goal, largely in the background.

I love working with the GPT models so much.

1dViews 92.5KLikes 599Bookmarks 102
Charlie Marsh@charliermarsh

Bang

https://github.com/astral-sh/ruff/pull/25501 https://github.com/astral-sh/ruff/pull/25593 https://github.com/astral-sh/ruff/pull/25606 https://github.com/astral-sh/ruff/pull/25609 https://github.com/astral-sh/ruff/pull/25610 https://github.com/astral-sh/ruff/pull/25649 https://github.com/astral-sh/ruff/pull/25656 https://github.com/astral-sh/ruff/pull/25660 https://github.com/astral-sh/ruff/pull/25661 https://github.com/astral-sh/ruff/pull/25663

1dViews 1.2KLikes 7
Charlie Marsh@charliermarsh

Bang

https://github.com/astral-sh/ruff/pull/25669 https://github.com/astral-sh/ruff/pull/25675 https://github.com/astral-sh/ruff/pull/25682 https://github.com/astral-sh/ruff/pull/25689 https://github.com/astral-sh/ruff/pull/25692 https://github.com/astral-sh/ruff/pull/25694 https://github.com/astral-sh/ruff/pull/25701 https://github.com/astral-sh/ruff/pull/25710 https://github.com/astral-sh/ruff/pull/25723 https://github.com/astral-sh/ruff/pull/25735

1dViews 733Likes 5
Ian Costa@Ian_Costa18

@charliermarsh Have you tried "these are the fixes we've done before, are there any other instances of this across the codebase"? Also at this point a skill might be helpful to document knowledge from past PRs

1dViews 349Likes 1
Thomas Chaigneau@chainyo_ai

@charliermarsh @jxnlco Soon ty won’t even use the cpu because too optimized 😂

1dViews 211Likes 1
Igor@igor_yakutovich

@charliermarsh this is the real AI coding story nobody tweets about. not vibe-coded demos, love to see it🫡

1dViews 119Likes 1
Matt Harrison@__mharrison__

@charliermarsh Do you attribute these improvements to Codex itself, the ability to iterate faster, or something else?

1dViews 187
Endika@EndikaMT

@charliermarsh please, implement something in UV ecosystem to distribute python apps like pyapp or something which can replace pyinstaller. It is a nightmare :(

1dViews 161
Grant Kot@kotsoft

@thsottiaux Can the 5.5 pro model be used from codex? I'm making a simulator and wish the deep research stuff and codex were better connected? I'm also new to codex so might be missing something.

1dViews 126
Mikerah@badcryptobitch

@charliermarsh So it is expected that /goal takes a while to run

1dViews 106
Harshil@hoppingturtles

@charliermarsh impressive!

1dViews 105
Ranjith Kumar@Ranjith8825987

@charliermarsh Which model ? 5.5 ?

1dViews 85
Da7em@Da7_Tech

@thsottiaux

1dViews 76
Astrohacker@AstrohackerLabs

@thsottiaux "/goal" in codex is basically the pinnacle of ai. properly harnessed, it can solve literally any problem and it will keep going until it is done.

1dViews 71
Hardik@hardikvoragg

@thsottiaux

1dViews 69
Octopusx@OctopusXai

@thsottiaux If Codex is the orchestra, that 25% memory reduction is the standing ovation. Honestly impressive how much of this happened in the background. What's the next movement?

1dViews 63
Tarun Davuluri@Tarun_Davuluri

We were spoiled by the 20x limits and then suddenly they disappeared 😭Now I burn through my weekly quota in 2 days. When doctors taper people off medication, they don't go from full dose to nothing overnight. Atleast wean off responsibly like full dose, half dose, 1/4 etc. Withdrawal symptoms from losing codex are real 😅💊

CC: @sama 🫡

1dViews 56
KrunalSinh Sisodia@krunalbuilds

@thsottiaux The biggest mistake with Codex is treating it like a chatbot.

The magic happens when you give it one clear goal at a time and let it execute.

Conduct, don’t micromanage.

1dViews 54
Kevin Cho@chokevinjs

@charliermarsh the modern day saint

1dViews 52
Load more posts
Astral founder Charlie Marsh uses OpenAI models to cut Ruff's ty type checker memory by 15% · Digg