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•57m 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•2m ago
Because Codex effectively rate limits you by being so slow.
vidarh•55m 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•50m 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•20m 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•41m 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•12m 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•8m 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•46m 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•14m 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•3m 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•46m 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•34m ago
This gives me hope that some people will use AI to port Javascript desktop apps to faster languages.
sebstefan•28m 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•22m 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•11m 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•11m 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•5m 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)

MapLibre Tile: a modern and efficient vector tile format

https://maplibre.org/news/2026-01-23-mlt-release/
238•todsacerdoti•5h ago•59 comments

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...
64•ibobev•1h ago•31 comments

After two years of vibecoding, I'm back to writing by hand

https://atmoio.substack.com/p/after-two-years-of-vibecoding-im
242•mobitar•2h ago•110 comments

Exactitude in Science – Borges (1946) [pdf]

https://kwarc.info/teaching/TDM/Borges.pdf
18•jxmorris12•1h ago•5 comments

Google AI Overviews cite YouTube more than any medical site for health queries

https://www.theguardian.com/technology/2026/jan/24/google-ai-overviews-youtube-medical-citations-...
68•bookofjoe•1h ago•32 comments

The Holy Grail of Linux Binary Compatibility: Musl and Dlopen

https://github.com/quaadgras/graphics.gd/discussions/242
138•Splizard•8h ago•99 comments

OracleGPT: Thought Experiment on an AI Powered Executive

https://senteguard.com/blog/#post-7fYcaQrAcfsldmSb7zVM
5•djwide•41m ago•1 comments

Things I've learned in my 10 years as an engineering manager

https://www.jampa.dev/p/lessons-learned-after-10-years-as
337•jampa•4d ago•86 comments

Qwen3-Max-Thinking

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

The browser is the sandbox

https://simonwillison.net/2026/Jan/25/the-browser-is-the-sandbox/
253•enos_feedler•10h ago•144 comments

Windows 11's Patch Tuesday nightmare gets worse

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
28•01-_-•40m ago•15 comments

Show HN: Only 1 LLM can fly a drone

https://github.com/kxzk/snapbench
47•beigebrucewayne•4h ago•23 comments

First, make me care

https://gwern.net/blog/2026/make-me-care
692•andsoitis•20h ago•207 comments

Transfering Files with gRPC

https://kreya.app/blog/transfering-files-with-grpc/
33•CommonGuy•2h ago•8 comments

OSS ChatGPT WebUI – 530 Models, MCP, Tools, Gemini RAG, Image/Audio Gen

https://llmspy.org/docs/v3
7•mythz•47m ago•0 comments

Vibe coding kills open source

https://arxiv.org/abs/2601.15494
187•kgwgk•2h ago•154 comments

TSMC Risk

https://stratechery.com/2026/tsmc-risk/
32•swolpers•4h ago•18 comments

Text Is King

https://www.experimental-history.com/p/text-is-king
78•zdw•5d ago•33 comments

QMD - Quick Markdown Search

https://github.com/tobi/qmd
4•saikatsg•6d ago•0 comments

Scientists identify brain waves that define the limits of 'you'

https://www.sciencealert.com/scientists-identify-brain-waves-that-define-the-limits-of-you
252•mikhael•15h ago•68 comments

A macOS app that blurs your screen when you slouch

https://github.com/tldev/posturr
644•dnw•1d ago•209 comments

Blade Runner Costume Design (2020)

https://costumedesignarchive.blogspot.com/2020/12/blade-runner-1982.html
18•exvi•5d ago•4 comments

Wind Chime Length Calculator (2022)

https://www.snyderfamily.com/chimecalcs/
25•hyperific•5d ago•7 comments

Apple introduces new AirTag with longer range and improved findability

https://www.apple.com/newsroom/2026/01/apple-introduces-new-airtag-with-expanded-range-and-improv...
117•meetpateltech•1h ago•151 comments

AI will not replace software engineers (hopefully)

https://medium.com/@sig.segv/ai-will-not-replace-software-engineers-hopefully-84c4f8fc94c0
10•fwef64•43m ago•5 comments

The future of software engineering is SRE

https://swizec.com/blog/the-future-of-software-engineering-is-sre/
202•Swizec•17h ago•95 comments

LED lighting undermines visual performance unless supplemented by wider spectra

https://www.nature.com/articles/s41598-026-35389-6
150•bookofjoe•18h ago•133 comments

Clinic-in-the-loop

https://www.asimov.press/p/clinic-loop
14•surprisetalk•4d ago•2 comments

A static site generator written in POSIX shell

https://aashvik.com/posts/shell-ssg/
57•todsacerdoti•6d ago•30 comments

Running the Stupid Cricut Software on Linux

https://arthur.pizza/2025/12/running-stupid-cricut-software-under-linux/
46•starkparker•11h ago•10 comments