frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Porting 100k lines from TypeScript to Rust using Claude Code in a month

https://blog.vjeux.com/2026/analysis/porting-100k-lines-from-typescript-to-rust-using-claude-code-in-a-month.html
63•ibobev•1h ago

Comments

mktemp-d•1h ago
For typing “yes” or “y” automatically into command prompts without interacting, you could have utilized the command ‘yes’ and piped it into the process you’re running as a first attempt to solving the yes problem. https://man7.org/linux/man-pages/man1/yes.1.html
rvz•1h ago
I don't think this is an actual problem and the prompt is there for a reason.

Piping 'yes' to command prompts just to auto-approve any change isn't really a good idea, especially when the code / script can be malicious.

thunfischbrot•56m ago
And here I was hoping OP was being sarcastic. Yet it‘s reasonable we‘re nearing an AI-fueled Homer drinking bird scenario.

Some concepts people try out using AI (for lack of a more specific word) are interesting. They will add to our collective understanding of when these tools, paired with meaningful methods can be used to effectively achieve what seemed out of reach before.

Unfortunately it comes with many rediscovering insights I thought we already had, badly. Others use tools without giving consideration to what they were looking to accomplish, and how they would know if they did.

timcobb•1h ago
How much does it cost to run Claude Code 24 hrs/day like this. Does the $200/month plan hold up? My spend on Cursor has been high... I'm wondering if I can just collapse it into a 200/month CC subscription.
kvdveer•1h ago
There's a daily token limit. While I've never run into that limit while operating Claude as a human, I have received warnings that I'm getting close. I imagine that an unattended setup will blow through the token limit in not too much time.
tom1337•1h ago
I have no first-hand experience with the Max subscription (which the $200 plan is) but having read a few discussions here and on GitHub [1] it seems that Anthropic has tanked the usage limits in the last few weeks and thus I would argue that you would run into limits pretty quick if you using it (unsupervised) for 24h each day.

1) https://github.com/anthropics/claude-code/issues/16157

alecco•1h ago
This guy tested it: https://she-llac.com/claude-limits

"Suspiciously precise floats, or, how I got Claude's real limits" 19hs ago 25 points https://news.ycombinator.com/item?id=46756742

OTOH, with ChatGPT/Codex limits are less of a problem, in general.

esafak•1m ago
Because Codex effectively rate limits you by being so slow.
vidarh•54m ago
If you're using it 24h/day you probably will run into it unless you're very careful about managing context and/or the requests are punctuated by long-running tool use (e.g. time-consuming test suites).

I'm on the $200/month plan, and I do have Claude running unattended for hours at a time. I have hit the weekly limits at times of particularly aggressive use (multiple sessions in parallel for hours at a time) but since it's involved more than one session at the time, I'm not really sure how close I got to the equivalent of one session 24/7.

amelius•1h ago
I'm hoping that one day we can use AI to port the millions of lines in the modules of the Python ecosystem to a GIL-free version of Python.
kbmckenna•1h ago
Did you ever consider using something like Oh My Opencode [1]? I first saw it in the wake of Anthropic locking out Opencode. I haven’t used it but it appears to be better at running continuously until a task is finished. Wondering if anyone else has tried migrating a huge codebase like this.

[1] https://github.com/code-yeongyu/oh-my-opencode

danesparza•1h ago
Some quotes from the article stand out: "Claude after working for some time seem to always stop to recap things" Question: Were you running out of context? That's why certain frameworks like intentional compaction are being worked on. Large codebases have specific needs when working with an LLM.

"I've never interacted with Rust in my life"

:-/

How is this a good idea? How can I trust the generated code?

rkozik1989•49m ago
Hopefully they have a test suite written by QA otherwise they're for sure going to have a buggy mess on their hands. People need to learn that if you must rewrite something (often you don't actually need to) then an incremental approach best.
yieldcrv•19m ago
1 month of Claude Code would be an incremental approach

It would honestly try to one-shot the whole conversion in a 30 minute autonomous session

Palomides•40m ago
I'm very skeptical, but this is also something that's easy to compare using the original as a reference implementation, right? providing lots of random input and fixing any disparities is a classic approach for rewriting/porting a system
rvz•11m ago
> How is this a good idea? How can I trust the generated code?

You don't. The LLMs wrote the code and is absolutely right. /s

What could possibly go wrong?

eddythompson80•7m ago
Same way you trust any auto translation for a document. You wrote it in English (or whatever language you’re most proficient in), but someone wants it in Thai or Czech, so you click a button and send them the document. It’s their problem now.
dicroce•1h ago
This is actually pretty incredible. Cannot really argue against the productivity in this case.
mythical_39•45m ago
one possible argument against the productivity is if the mirgration introduced too many bugs to be useable.

In which case the code produced has zero value, resulting in a wasted month.

Sharlin•13m ago
I suppose what’s impressive is that (with the author’s help) it did ultimately get the port to work, in spite of all the caveats described by the author that make Claude sound like a really bad programmer. The code is likely terrible, and the 3.5x speedup way low compared to what it could be, but I guess these days we’re supposed to be impressed by quantity rather than quality.
simonw•2m ago
I think the most interesting question with this kind of project is if it would have happened at all without AI assistance.

Could an expert Rust programmer do a better job of porting 100,000 lines of typescript to Rust than Claude Code? Obviously they could, especially given u limited time to do it.

Was an expert Rust programmer available (and budgeted) for this project? If not, then the project wouldn't have happened.

Imustaskforhelp•45m ago
Honestly I am really interested in trying to port the rust code to multiple languages like golang,zig, even niche languages like V-lang/Odin/nim etc.

It would be interesting if we use this as a benchmark similar to https://benjdd.com/languages/ or https://benjdd.com/languages2/

I used gitingest on the repository that they provided and its around ~150k tokens

Currently pasted it into the free gemini web and asked it to write it in golang and it said that line by line feels impossible but I have asked it to specifically write line by line so it would be interesting what the project becomes (I don't have many hopes with the free tier of gemini 3 pro but yeah, if someone has budget, then sure they should probably do it)

Edit: Reached rate limits lmao

DeathArrow•33m ago
This gives me hope that some people will use AI to port Javascript desktop apps to faster languages.
sebstefan•27m ago
>I've tried asking Claude to optimize it further, it created a plan that looks reasonable (I've never interacted with Rust in my life) and it spent a day building many of these optimizations but at the end of the day, none of them actually improved the runtime and some even made it way worse.

This is the kind of thing where if this was a real developer tweaking a codebase they're familiar with, it could get done, but with AI there's a glass ceiling

lelandfe•21m ago
Yeah, I had Claude spend a lot of time optimizing a JS bundling config (as a quite senior frontend) and it started some things that looked insanely promising, which a newer FE dev would be thrilled about.

I later realized it sped up the metric I'd asked about (build time) at the cost of all users downloading like 100x the amount of JS.

jtbayly•10m ago
I just ran into the problem of extremely slow uploads in an app I was working on. Told Gemini to work on it, and it tried to get the timing of everything, then tried to optimize the slow parts of the code. After a long time, there might have been some improvements, but the basic problem remained: 5-10 seconds to upload an image from the same machine. Increasing the chunk size fixed the problem immediately.

Even though the other optimizations might have been ok, some of them made things more complicated, so I reverted all of them.

Mizza•10m ago
At this rate, I am expecting that an AI will be able to port the entire Linux kernel to Rust by the end of the year.
Curzel•4m ago
I don’t know about the Linux kernel, but I’ll be surprised if don’t have some “fully vibe coded OS” for Christmas (which would be cool to see)

Lean, Mean, Solitaire Machine

https://ersei.net/en/blog/lean-mean-solitaire-machine
1•bo0tzz•58s ago•0 comments

The Most Expensive Assumption in AI

https://philippdubach.com/posts/the-most-expensive-assumption-in-ai/
1•Brajeshwar•1m ago•0 comments

The Upsides and Downsides of LLM-Generated Code [audio]

https://www.scworld.com/podcast-segment/14383-the-upsides-and-downsides-of-llm-generated-code-chr...
1•mooreds•1m ago•0 comments

Show HN: Heyvm – a terminal UI for managing VMs over SSH

https://github.com/adishM98/heyvm
1•adish98•1m ago•0 comments

Dark Enlightenment

https://en.wikipedia.org/wiki/Dark_Enlightenment
1•throw0101a•3m ago•0 comments

The Intent Envelope: Proofs for Completeness, Not Just Soundness

https://midspiral.com/blog/intent-envelope-proofs-for-completeness-not-just-soundness/
1•todsacerdoti•5m ago•0 comments

Ask HN: How can I make PluriSnake, a daily puzzle game, easier to understand?

1•amichail•5m ago•0 comments

Show HN: Take screenshots of any website from your terminal

https://heroshot.sh/
1•machala•6m ago•0 comments

Ingenious 'weightless camera' is changing live sports forever

https://stocks.apple.com/A1SaFyt9lSDCft2b-P_ER4Q
2•callumprentice•6m ago•0 comments

There Is an AI Code Review Bubble

https://www.greptile.com/blog/ai-code-review-bubble
2•dakshgupta•8m ago•0 comments

Repricing Sovereignty: Personal Freedom in the Age of Mass Compliance

https://bombthrower.com/repricing-sovereignty/
1•StuntPope•8m ago•0 comments

SiteBuilder: Edit Web Content with Natural Language

https://manuel.kiessling.net/2026/01/25/introducing-sitebuilder/
1•speckx•10m ago•0 comments

We've got Cloudflare at home (building my own Cloudflare)

https://dylans.link/blog/2026-01-26-weve-got-cloudflare-at-home
1•dyl000•11m ago•0 comments

Show HN: Monetize your Chrome extensions with "App Pass"

https://joinapppass.com/partner
1•hao1300•13m ago•0 comments

Consuming an unprocessed diet reduces energy intake

https://www.sciencedirect.com/science/article/pii/S0002916525007750
1•PaulHoule•13m ago•0 comments

Claude's Constitutional Structure

https://thezvi.substack.com/p/claudes-constitutional-structure
1•7777777phil•14m ago•0 comments

Technology in 1776

https://www.a16z.news/p/technology-in-1776
1•jbredeche•14m ago•0 comments

Gold price tops $5k an ounce for first time

https://www.theguardian.com/business/2026/jan/26/gold-prices-record-5000-ounce-trump-turmoil
4•teleforce•14m ago•1 comments

SQUR beats humans in Capture The Flag

https://squr.ai/blog/squr-beats-humans-ctf/
1•adamlundqvist•15m ago•1 comments

Science of Habit Building

https://invertedpassion.com/science-of-habit-building/
1•twapi•15m ago•0 comments

Crossbars 2

https://www.shadertoy.com/view/mdKXWh
1•keepamovin•16m ago•0 comments

Spack: A flexible package manager for HPC software

https://computing.llnl.gov/projects/spack-hpc-package-manager
1•teleforce•20m ago•0 comments

NASA is sending people to the moon in spacecraft some experts think is not safe

https://www.cnn.com/2026/01/23/science/artemis-2-orion-capsule-heat-shield
3•ck2•20m ago•1 comments

New Patches Aim to Lower Linux Memory Use for Swap, Slightly Improve Performance

https://www.phoronix.com/news/Linux-Better-Swap-Tencent
1•XzetaU8•20m ago•0 comments

Welcome to the American Winter

https://www.theatlantic.com/politics/2026/01/minneapolis-uprising/685755/
5•empath75•21m ago•1 comments

The Danger of a Single Capital Letter: How I Almost Ruined a Redmine Instance

https://blog.devbert.de/the-danger-of-a-single-capital-letter/
1•preezer•21m ago•0 comments

Brex and the Pros and Cons of Hubristic Fundraising

https://www.saastr.com/brex-and-the-pros-and-cons-of-hubristic-fundraising/
1•wslh•22m ago•0 comments

Qwen3-Max-Thinking

https://qwen.ai/blog?id=qwen3-max-thinking
8•vinhnx•24m ago•0 comments

Building Brains on a Computer

https://www.asimov.press/p/brains
1•mailyk•24m ago•0 comments

Is the US Supreme Court Biased Towards the Rich?

https://www.nominalnews.com/p/is-the-us-supreme-court-bias-wealthy
5•MasPL•24m ago•1 comments