| ▲ | Port of the TypeScript compiler, checker and lsp to Rust, by LLM(github.com) |
| 74 points by jcbhmr 12 hours ago | 133 comments |
| |
|
| ▲ | benrutter 4 hours ago | parent | next [-] |
| > Spent over $400,000 in API priced tokens with GPT-5.6 Sol and GPT 6 Astra Tangent here, but I think this bit is super interesting! You could viably hire someone to do this work for that kind of money - I think the interesting thing is that substantially less interested/experimenting engineers would consider paying for a human to do this work, than would happily chuck a big amount of money into an LLM. I don't have any suggestion about why that exists, but it's a strange and interesting contract. |
| |
| ▲ | viraptor 8 minutes ago | parent | next [-] | | He's not paying that much in practice. But even if he did, you couldn't hire 3 engineers (I'm assuming you'd get 3x 133k each) that could do this work in anywhere close to this amount of time. It would be a multi-month long project. So "to do this work" is not really comparable. | | | |
| ▲ | flossly 3 hours ago | parent | prev | next [-] | | I found the whole section super interesting... I'll copy it here: I used a lot of OpenAI models to try and complete this port. In total I did over $400,000 in API priced tokens with GPT-5.6 Sol and GPT 6 Astra. They wrote over 1.3m lines of Rust over multiple months of /goal loops and never got past like 84% compat. When I saw how little my Claude Code limits were burning, I figured it'd be fun to throw Opus 5.5 at this. It had a working v0 in 10 hours. I assumed it kept using the code the Codex models wrote. I was wrong. Opus 5.5 started from scratch. It got further than Astra in 1/10th the time. I let it keep going, and it definitely did. Total token spend was ~$24,047 of API spend over 2 weeks. I was using my Claude accounts, and it worked out to somewhere between 925% and 983% of my $200 plan weekly limits. Expensive, for sure, but not that bad considering how much work has went into typescript-go. | | |
| ▲ | sreekanth850 40 minutes ago | parent | next [-] | | Are we sure that he spend that much or he calculated the API pricing and used a subcription to implement this? | | |
| ▲ | semiquaver 38 minutes ago | parent [-] | | We’re sure that he did not spend that much and did use (sharded) subscriptions, because he said so. |
| |
| ▲ | flossly 3 hours ago | parent | prev | next [-] | | Great advertisement for Claude Code... | |
| ▲ | Topfi 2 hours ago | parent | prev [-] | | > I assumed it kept using the code the Codex models wrote. I was wrong. Opus 5.5 started from scratch. It got further than Astra in 1/10th the time. Ouch, that is brutal and honestly, quite embarrassing but confirms what I have been seeing for a while. Personally, I find output from current OpenAI models still very hard to parse (though it has gotten better vs the pre-trains from both labs in mid/late 2025), thus hard to truly understand, verify and get comfortable maintaining vs current Anthropic models. I do occasionally see a higher ceiling in well scoped tasks with OpenAI models at the cost of (frequently) deviating from the original prompt in (sometimes) very destructive ways. Could be that this hard-to-read output doesn't just go over my limited capacity/skills but with current models can become simply impossible to untangle beyond a certain size even when one has (essentially) infinite resources via multiple subs and different models. Would also work with my suspicions for why OpenClaw (mainly build with Opus 4.5 and its post-trains) has been this hard to truly "fix", requiring highly paid Nvidia engineers, multiple months, (literally) infinite resources from OpenAI including access to internal models and yet still holds records for CVEs. Heck, another one was found just 7 days ago after what I'd argue was one of the most extensive hardening sessions any piece of software has ever undergone. Makes my (multiple) decisions to start from scratch more than once on a major reworking of the existing tabbing interface in Firefox a bit less painful. Learned with each, found gaps in my knowledge, thanked the amazing docs the Firefox devs have been maintaining for decades and while starting from 0 was painful, getting back to MVP is easier than ever. When I hit a point were I was starting to struggle to truly parse additions a model was making to the patches applied to Firefox source code (even if they worked), I always found that pushing even slightly beyond that would incur painful, but hard to notice regressions, introduce major DB maintenance burdens as some models struggle to understand that in development regressions and incompatibility are acceptable and schema transitions aren't needed pre-release (still a case with GPT-6.1 Sol, less so post Fable for Anthropic), make me uncomfortable concerning privacy/security/data loss prevention (especially as I have seen Fable 5 cut some privacy/proper data removal corners in simple CRUD) and simply take away my control about the implementation. Wouldn't feel right to release something in that state, what I have now is fully understandable and thus could be maintained even without models. Still expecting bugs of course, massively dreading security findings or even worse, possible data loss given browsers handle some of our most important personal+professional data and will surely have taken some embarrassing approaches that might have a much more performant solutions when implementing an infinite canvas of webpages, but still, rather that then also knowing I wouldn't even know where to start understanding a feature. More so if, like with ts-rust, even (nearly) infinite tokens couldn't get me unstuck. |
| |
| ▲ | ____mr____ 3 hours ago | parent | prev | next [-] | | This is Theo's project, and he has been very transparent about how he is only doing these things because api prices are heavily subsidized by subscription pricing. The reason people aren't willing to pay 400k to an engineer to do this work is because they aren't paying the AI this much. I don't think I've seen an enterprise paying API prices doing these sorts of rewrites, and honestly, I think until that happens I will remain skeptical about LLM AI's viability as a profitable business. | |
| ▲ | chadcmulligan 3 hours ago | parent | prev [-] | | I've had the same thought about the maths - they've spent millions on tokens, I can't recall anyone spending millions on mathematicians. | | |
| ▲ | fiforpg 29 minutes ago | parent [-] | | To be fair, NSF grants for pure mathematicians were never as substantial as for applied sciences, but they would routinely reach 500k–1M territory. That's the amount going to a single proposal, and grant panels in, say, analysis would definitely spend millions per application season. NSF funding data is public and can be looked up. I'm using past tense because iirc NSF has recently reduced their funding volumes, although I'm not following the situation very closely. |
|
|
|
| ▲ | DanRosenwasser 11 hours ago | parent | prev | next [-] |
| TypeScript team member here - this is impressive work, and it's honestly crazy that 3 of these ports have popped up in the last week! I'm currently AFK but we're hoping to learn more and we'll have more to say on this soon. |
| |
| ▲ | vaughands 11 hours ago | parent | next [-] | | Kudos for keeping up! Golang seemed like a very reasonable choice when you ported there originally but the world is changing _fast_. | | |
| ▲ | zdragnar 11 hours ago | parent | next [-] | | Why do you think Golang is no longer a reasonable choice? | | |
| ▲ | vaughands 11 hours ago | parent | next [-] | | I suppose my comment sort of implies this. I think the naive knee jerk reaction is that if you can spit out perfect machine level code against a specification, then logically being closer to bare metal would help with performance. However, without knowing the details of how things worked it is tough to say whether it is truly "reasonable" or not. But more importantly, the Typescript team themselves [1] picked Golang mostly out of ergonomics and ease of porting at the time. It is becoming more increasingly more to "taste" what ergonomics means. Notably, they did not pick it because they believed it to be the fastest option. But speed was on the mind, giving way to ergonomics and ease of porting. At least, this is my read. [1] https://github.com/microsoft/typescript-go/discussions/411 | | |
| ▲ | dunham 10 hours ago | parent | next [-] | | The author of esbuild used Rust and later switched to Go. He describes some of his experience here: https://news.ycombinator.com/item?id=22336284 It is one person and one project, but I found it interesting to read about his experience. I like Go, but I probably would have tried Rust first because I want pattern matching when implementing languages. | | |
| ▲ | e12e 2 hours ago | parent [-] | | Very interesting. With rust's ocaml heritage, I'd imagine a straight port from typescript would be simpler and more idiomatic than a port to go. I guess not. |
| |
| ▲ | andrewingram 2 hours ago | parent | prev [-] | | The notable thing that these LLM-generated ports aren't doing is _rewriting in Go_. TypeScript 7 is a lot faster than the JS/TS-based version 6, but memory use is a major bottleneck. However, it mostly represents a mechanical port of the old codebase to Go. What I haven't seen anyone do is try a true rewrite in Go optimized for performance (whilst keeping a strong emphasis on readability). |
| |
| ▲ | lifthrasiir 11 hours ago | parent | prev | next [-] | | Presumably because Rust is more suitable than Go in agentic coding? (I'm not sure, but that seems the purported answer.) | | |
| ▲ | lifeisloving 10 hours ago | parent [-] | | Language and compiler design/ implementation is very much a human task. There's lots of nuances to consider. I doubt they want agent spaghetti code in their codebase either. |
| |
| ▲ | spankalee 11 hours ago | parent | prev | next [-] | | Rust is better at targeting WebAssembly | | |
| ▲ | cowsandmilk 10 hours ago | parent | next [-] | | why would that be important? Having a typescript compiler in wasm seems like a pretty niche need. | | |
| ▲ | Benjamin_Dobell 2 hours ago | parent | next [-] | | It's extremely useful if your distribution platform is the web. However, I find it much more valuable as a type checker than a compiler. I use TypeScript extensively (in several projects) for defining schemas types. For example, in the Breaka Club (https://breaka.club/) editor, which is not presently exposed to kids yet, we define behaviors for characters, props, mosaics (terrain tiles) and items in JSON. But the JSON has type checking and real-time completion as you type. Not naive property auto-suggestion, we have effect types and they're context aware in that you can refer to targets introduced higher in parent constructs of the JSON — and they're fully type checked. If you refer to a target that does not exist in a context, it won't validate and you cannot save the schema. We use tsgo for development, but the editor (runtime schema validation) is presently stuck on TypeScript 6 because there's no WASM support. Now, is it nutty that we're using TypeScript for JSON validation? A little. But it's extremely powerful. We're going far beyond what's capable with Zod or ArkType. | |
| ▲ | tcfhgj an hour ago | parent | prev | next [-] | | But it's not the only niche, see Typst compiler in wasm for live document generation in the browser. | |
| ▲ | pjmlp 4 hours ago | parent | prev | next [-] | | Because you need to keep the compiler running here, - https://www.typescriptlang.org - https://code.visualstudio.com/docs/remote/vscode-web | |
| ▲ | viraptor 7 hours ago | parent | prev [-] | | Theo is making a new twist on the idea of IDE which hosts the application itself. I'm sure there's going to be a video about it soon. But the idea is to embed the whole compilation and type-check in wasm in the browser which then runs the app immediately, as the agents edit the code. |
| |
| ▲ | teki_one 11 hours ago | parent | prev | next [-] | | Why? | | |
| ▲ | spankalee 10 hours ago | parent | next [-] | | Wasm is a first-class target for Rust, which produces faster and smaller Wasm binaries. My understanding is that you need to use TinyGo to reasonably target Wasm with Go. Go having a garbage collector isn't necessarily bad, since Wasm has GC, but I think Go's GC can't easily use Wasm GC because Go has interior pointers. | | |
| ▲ | win311fwg 5 hours ago | parent [-] | | WASM is also a first-class target for Go (gc). However, it has a relatively large runtime, so TinyGo is often preferred when bundle size needs to be small. |
| |
| ▲ | 0x696C6961 10 hours ago | parent | prev | next [-] | | I think the main advantage is size. Rust doesn't need to include the runtime. | |
| ▲ | cmrdporcupine 10 hours ago | parent | prev [-] | | I'm assuming they mean because it doesn't need a garbage collector or much of a runtime at all. You can target direct to WASM and use I guess WASI, while Go brings with it a garbage collector and so on. |
| |
| ▲ | pebal 4 hours ago | parent | prev [-] | | WASM makes no sense and has no future. | | |
| ▲ | pjmlp 4 hours ago | parent [-] | | It does here, https://www.typescriptlang.org | | |
| ▲ | pebal 4 hours ago | parent [-] | | I’m not saying it doesn't work. I’m saying it’s a waste of resources and won’t gain widespread popularity. The current trend is porting source code to languages that generate native code. | | |
| ▲ | josephg 26 minutes ago | parent | next [-] | | > I’m saying it’s a waste of resources A waste of what resources? Other people's time? That isn't up to you to decide. I think your comment is a waste of resources. But how you spend your time isn't up to me. And how wasm people spend their time isn't up to you. > The current trend is porting source code to languages that generate native code. Cool story, but without wasm, how are you gonna run that native code in a browser? | |
| ▲ | pjmlp 3 hours ago | parent | prev | next [-] | | I dislike the WebAssembly advocacy of some folks, where they act as if there weren't similar attempts all the way back to UNCOL in 1958, and even in recent history, seem to only focus on JVM, while ignoring the CLR and BEAM. However, there are indeed some cases where it does make sense since we have it around anyway, and one of them is running the Typescript compiler in the browser, now that it is written in a compiled language. | |
| ▲ | dwattttt 4 hours ago | parent | prev [-] | | Languages that target WebAssembly _are_ languages that generate native code? C & Rust for example. |
|
|
|
| |
| ▲ | sreekanth850 10 hours ago | parent | prev | next [-] | | Rust is more close to metal. No GC | | |
| ▲ | aka-rider 4 hours ago | parent | next [-] | | GC doesn’t affect performance (at least visibly), memory allocations on critical paths do. Moreover, Rust ARC may cause memory fragmentation and perform worse than a GC. Writing Rust, Zig, or Go, you would still control memory manually, where it matters. | | |
| ▲ | dwattttt 4 hours ago | parent | next [-] | | It does have an impact. Discord blogged about unavoidable GC delays in go that occurred because go needed to traverse live memory, their only option (in go) for reducing that pause was to reduce the size of their data set. | |
| ▲ | sreekanth850 3 hours ago | parent | prev [-] | | https://discord.com/blog/why-discord-is-switching-from-go-to... GC absolutely has performance costs, even with minimal allocations, because tracing collectors must scan live objects. This is exactly what this post says. Don't know if its really improved over time in real world cases. |
| |
| ▲ | pebal 7 hours ago | parent | prev [-] | | There is no connection. Rust has ARC which performs worse than the tracing GC. | | |
| ▲ | saagarjha 4 hours ago | parent [-] | | Than Go's GC? I think that is fairly unlikely in most cases. | | |
| ▲ | pebal 4 hours ago | parent [-] | | It depends on the workload. ARC can be more expensive than tracing GC, especially with heavily shared objects. But my main point was that the presence of a GC has nothing to do with how close a language is to the metal. Memory management strategy and low-level capabilities are two separate things. | | |
| ▲ | sreekanth850 3 hours ago | parent [-] | | I gave two separate reasons. Rust provides explicit control over memory allocation and management, and it has no garbage collector. | | |
| ▲ | pebal an hour ago | parent [-] | | Rust could just as well have an optional tracing GC for shared ownership instead of ARC, potentially improving performance rather than reducing it. Having a GC doesn't inherently make a language slower. | | |
| ▲ | josephg 9 minutes ago | parent [-] | | > a GC doesn't inherently make a language slower. Yeah but let's be honest; GC languages (Go, Java, C#) usually are slower than systems languages. Systems languages just give you more, low level control over the computer from within your program. You can use that control to improve performance. Eg, you can control data locality, memory access patterns, the emitted assembler, and way more stuff. Of course you're right - if you misuse arc, you can make your program slow. So don't misuse arc then. Rust gives you lots of options for structuring memory. If you choose badly, that's on you. |
|
|
|
|
|
| |
| ▲ | conartist6 10 hours ago | parent | prev [-] | | Was it ever a reasonable choice? At the time the choice was made the tooling ecosystem was already split between Rust and JS, and by putting TS in Go they chose to split it three ways. Why not split it 4 or 5 ways then? The pressure will always be towards less duplicated work. The only real choice of language to build the next generation of JS tools in is JS. Anything else is a vote of no confidence in ourselves. | | |
| ▲ | dwattttt 3 hours ago | parent [-] | | It's ok for a language (JS in this instance) to be good in a domain but not good in all domains. Pulling a language in every direction forces it to make compromises that hurt its applicability in specific areas. | | |
| ▲ | conartist6 41 minutes ago | parent [-] | | You seem sure like them that JS is not good. They didn't even bother to consider it as a choice! If you wanted to point to their evidence you couldn't because they don't have any. | | |
| ▲ | dwattttt 4 minutes ago | parent [-] | | I'm suggesting that JS is not good for every possible use. And that is ok. I would not want a core internet router or a kernel to be implemented in JS. But I am happy it is used elsewhere. |
|
|
|
| |
| ▲ | galkk 9 hours ago | parent | prev [-] | | Now I want to see somebody to port it to c# :) |
| |
| ▲ | aizk 11 hours ago | parent | prev [-] | | I think the future of this is -- get your AI agent to investigate this port for anything actually worthwhile, comparing it to the go version, and then take those good ideas and actually maybe bring them into the real compiler. Maybe. Who knows, it's all changing so fast! |
|
|
| ▲ | wg0 4 hours ago | parent | prev | next [-] |
| Paraphrasing from README.md: >Spent over $400,000 in API priced tokens with GPT-5.6 Sol and GPT 6 Astra. They wrote over 1.3m lines of Rust over multiple months of /goal loops and never got past like 84% compat. Then they let Claude code lose on the problem: > I figured it'd be fun to throw Opus 5.5 at this. It had a working v0 in 10 hours. I assumed it kept using the code the Codex models wrote. I was wrong. Opus 5.5 started from scratch. It got further than Astra in 1/10th the time. In the warnings from README.md > Also worth mentioning: I've never read a line of this code. |
| |
| ▲ | xnorswap 10 minutes ago | parent | next [-] | | I've been rinsing Opus 5.5 and I've been unable to get over 20% of my plan usage, it seems to use a tiny fraction of the usage that Opus4.8 or 5.0 used. I don't know if it's an accounting trick or genuinely less usage, but since 5.5 I've not had to think about limits at all. | |
| ▲ | orthogonal_cube 3 hours ago | parent | prev | next [-] | | They spent over $400k for an experimental project and published it without reading a single line of code?? I am so confused about the motivation behind this. | | |
| ▲ | LelouBil 3 hours ago | parent | next [-] | | They didnt actually spent 400k, that's in "API-priced" tokens, he spent ~$24,047 | | |
| ▲ | chasd00 an hour ago | parent | next [-] | | He didn’t spend that much either. That’s the equivalent API cost using his $200/month subscription. It took less than a day so I guess it cost about $7 in actual money. | |
| ▲ | JBits 2 hours ago | parent | prev [-] | | How on earth does someone just randomly spend $20k? If he's not going to maintain the project, the whole thing seems completely pointless. |
| |
| ▲ | epolanski 2 hours ago | parent | prev [-] | | > I am so confused about the motivation behind this Seems obvious, experimenting with what it's possible with LLMs. |
| |
| ▲ | nialv7 2 hours ago | parent | prev [-] | | throw away $400k on a failed attempt is crazy... | | |
|
|
| ▲ | mkesper 5 hours ago | parent | prev | next [-] |
| What a waste of power... $424.000 of API priced tokens amounts to how many kWh burned? And how would you trust this to build your code?
Motivations says it all: Motivations Test model capabilities
Make a fast TypeScript type checker
Make a ts checker that can work in WASM with high performance
Memes
|
| |
| ▲ | epolanski 23 minutes ago | parent [-] | | > And how would you trust this to build your code? In the same way you trust any build of the official compiler: it passes all of the existing tests. |
|
|
| ▲ | ForHackernews 5 minutes ago | parent | prev | next [-] |
| Didn't they just get done porting this to Golang? |
|
| ▲ | yoyohello13 11 hours ago | parent | prev | next [-] |
| Maybe there are just so many of these but at this point for vibe coded stuff like this I’m just like “who cares.” LLMs can make stuff like this now. Unless this reaches some critical mass of usage among developers why would I use it? It’s just a less maintained, less tested implementation. The more important question is “what does this teach us?” And idk the answer to that one. |
| |
| ▲ | pjmlp 4 hours ago | parent | next [-] | | For me it removed all the fun to play with whatever projects are announced in HN, now it is all AI generated, why bother. | |
| ▲ | joe-excom 9 hours ago | parent | prev | next [-] | | It teaches us the Rust community continues to be relentless in their efforts to rewrite virtually everything in Rust. | | |
| ▲ | yoyohello13 8 hours ago | parent | next [-] | | Isnt the guy who made this a typescript developer? | | |
| ▲ | viraptor 7 hours ago | parent [-] | | Yes. This has nothing to do with people trying to rewrite things in Rust for fun. It's a part of his development project that I'm sure will get a video in the future. | | |
| |
| ▲ | epolanski 22 minutes ago | parent | prev [-] | | I don't think the author even knows Rust. |
| |
| ▲ | spankalee 9 hours ago | parent | prev | next [-] | | I think the difference here is that the original motivation for choosing Go over Rust was that Go was easier to port TypeScript to. LLMs change the calculus a lot, the result seems faster, and it's possible that the TypeScript team might want to change directions. It'd be a big deal, but I bet they'll at least discuss it. | | | |
| ▲ | rowanG077 11 hours ago | parent | prev [-] | | Generally building something is not about "What does this teach us?" but rather "What can this be used for?". You don't build a house and as "What does this teach us?". It's honestly almost a perverse question to primarily ask for something that aims to have practical value. The clear reason this has worth is that it's much faster than TSC. | | |
| ▲ | bdelmas 10 hours ago | parent | next [-] | | HN is going to be a weird place to be between people loving AI and the loss of loving tech. I don’t remember last time I watched a good tech dev video. At least the video game industry is a little bit shielded from this but soon it will be the same when we see the speed AI is advancing. No more joy crafting things as a dev…! | | |
| ▲ | rowanG077 5 hours ago | parent [-] | | I don't see at all that this is stifling love of tech. Sure if you liked to engage in language wars or vim vs emacs or tabs vs spaces then yes that's over. But tech as we know it is currently exploding, a ton of stuff that simply was not practically possible before is now possible. |
| |
| ▲ | yoyohello13 8 hours ago | parent | prev | next [-] | | I guess I’m just perverted then. | |
| ▲ | Capricorn2481 10 hours ago | parent | prev [-] | | That's why the commenter said > It’s just a less maintained, less tested implementation Then they asked if it teaches something because it is a risky utility to them. You're trying to make it sound a lot weirder. | | |
| ▲ | rowanG077 10 hours ago | parent [-] | | The point is that it's clearly not just a less maintained, less tested implementation. It's 1.61x faster for one in real world apps, in some case even almost 4x faster. | | |
| ▲ | Onavo 10 hours ago | parent | next [-] | | I am curious why it's faster. Golang isn't that much slower than Rust, aside from the garbage collector. 4x performance improvements is much bigger than what I expected. | |
| ▲ | Capricorn2481 10 hours ago | parent | prev [-] | | If that was your point, why did you spend a whole paragraph saying "teach us? What a perverse question." | | |
| ▲ | rowanG077 5 hours ago | parent [-] | | The comment I responded on put forth a generic argument that implied if we can not learn from it it has no value. That is what I was responding to. |
|
|
|
|
|
|
| ▲ | hannibalhorn 10 hours ago | parent | prev | next [-] |
| In the real world project section, compile times vs tsc7 were 1-3s less. Sometimes the percentages are far more impressive than absolutes. |
|
| ▲ | shepherdjerred 10 hours ago | parent | prev | next [-] |
| I wish Anthropic/OpenAI would give me free tokens so I could make random things like this I already pay for subs on both but the tokens are already spoken for with other projects |
|
| ▲ | spankalee 9 hours ago | parent | prev | next [-] |
| This was a lot of tokens to spend on a port. I wonder if all of the porting activity out there would be better supported by investing in really good deterministic automatic translators that do 90% of the job cheaply and delegate any decisions that have to be made back out to the AI agent? |
|
| ▲ | pvillano 11 hours ago | parent | prev | next [-] |
| I have to wonder if LLM reimplementations verified against years of human tests will have holes where original authors thought that tests are not necessary and common sense is enough. I have to wonder this to preserve my ego as a human. I wonder have to this because I sure as hell am never going to go through all that code to check. |
| |
| ▲ | LeFantome 9 hours ago | parent [-] | | Of course they will. For about 3 days, and then it will get fixed. At this point, for software which has an extensive test suite (or a large body of interoperable software), humans are more likely to create these kinds of gaps than the LLMs are. |
|
|
| ▲ | anonymous908213 10 hours ago | parent | prev | next [-] |
| LLMs have been trained to fix compile errors in a loop. Give them years of human labor worth of tests and they will fix compile errors until it works (as well as the tests can ensure). Now you have a codebase no one has read. Good luck adding new code to it. Let's also not forget that Bun was claiming a rewrite in 11 days or whatever it was, but actually spent three months of human labor fixing hundreds of issues their rewrite introduced before shipping it as a release. |
| |
| ▲ | epolanski 20 minutes ago | parent [-] | | > Good luck adding new code to it. Interestingly, your whole comment implicitly has the answer to this. In the future you don't add code or read it, you only add test cases and have the loops work on covering the new case. |
|
|
| ▲ | Thaxll 8 hours ago | parent | prev | next [-] |
| "In total I did over $400,000 in API priced tokens with GPT-5.6 Sol and GPT 6 Astra." wut? |
|
| ▲ | catlifeonmars 11 hours ago | parent | prev | next [-] |
| This post should be titled “Rust port of Go rewrite of Typescript compiler” |
|
| ▲ | ingen0s 11 hours ago | parent | prev | next [-] |
| Wait - you spent north of $400,000? |
| |
| ▲ | Rapzid 10 hours ago | parent | next [-] | | People love to flex by using the API costs for their subscription tokens. I personally find it ridiculous. The cost is what you paid, not what someone else could have paid. Markets and all that. It would be like using spot instances on AWS but flexing by boasting about how much on-demand $$ compute you used. | | |
| ▲ | Capricorn2481 10 hours ago | parent [-] | | In this case, I think they are just giving you an idea of what it cost to do this. They aren't saying it's prescriptive | | |
| ▲ | Rapzid 10 hours ago | parent [-] | | Except.. It doesn't really give you an idea what it cost? That's not what it cost. How much did it actually cost? Who knows! It's also TheoGG sooooo.. Those influencer instincts tho. |
|
| |
| ▲ | sghiassy 11 hours ago | parent | prev | next [-] | | Assuming he used $400,000 in tokens, but used subs I wonder how much AI companies lost on this? Edit: not that I’m worried about them, I’m just curious | | |
| ▲ | esperent 11 hours ago | parent | next [-] | | > I wonder how much AI companies lost on this? Probably zero, or even a profit. The idea that these companies are making a loss on subscriptions is an unsubstantiated HN fallacy. On the contrary, they're probably making a small profit on subscriptions, or at least break even, and absolute bank on API pricing. Anthropic recently reported an 80% gross profit margin, for example. https://www.reuters.com/business/retail-consumer/anthropic-t... | | |
| ▲ | adrianvincent 10 hours ago | parent | next [-] | | Profitable, if you just ignore how much money they spend | |
| ▲ | janalsncm 10 hours ago | parent | prev [-] | | Excited for their IPO just to put this to bed, one way or another. | | |
| ▲ | rich_sasha 6 hours ago | parent [-] | | It might, but also might not. I would imagine the economics are genuinely very tangled up even before you start obfuscating it - it’s very hard to fairly allocate fixed costs between training and inference. I think a clearer picture would be from inference-only orgs. |
|
| |
| ▲ | MBCook 10 hours ago | parent | prev [-] | | What are “subs”? | | |
| |
| ▲ | JacobAsmuth 11 hours ago | parent | prev | next [-] | | Most of it was wasted on OpenAI tokens. It actually cost them $24k USD according to the github description. | | | |
| ▲ | aizk 10 hours ago | parent | prev | next [-] | | No that's the theoretical token value cost based on chaining multiple 20x subs. | |
| ▲ | hedgehog 11 hours ago | parent | prev | next [-] | | Sibling dead comment said it already but that's likely an estimate of what it would cost via API and in practice it was a few hundred or thousand dollars of subscription fees. | |
| ▲ | colomo 11 hours ago | parent | prev | next [-] | | $420,000 worth of tokens, though I'm pretty sure he used subs. | |
| ▲ | pebal 7 hours ago | parent | prev | next [-] | | An absurd amount. The cost wouldn't exceed $500 under a subscription model. | |
| ▲ | spense 11 hours ago | parent | prev | next [-] | | > I did over $400,000 in API priced tokens i'd bet this is a few subscriptions over a few months rather than paying directly for tokens. | |
| ▲ | woozlewuzzle 10 hours ago | parent | prev [-] | | I wonder how that cost compares to paying a human programmer to produce the same end result. |
|
|
| ▲ | Gigachad 11 hours ago | parent | prev | next [-] |
| I honestly have no idea what the future of tech will look like at this point. Too much has changed. |
| |
| ▲ | win311fwg 5 hours ago | parent [-] | | It is beginning to look like the future is treating Rust as an optimization pass. Write your program in a higher-level language like Typescript, Go, Python, etc. and then have LLMs compile that to Rust. | | |
| ▲ | chasd00 an hour ago | parent | next [-] | | Just give the LLM requirements and have it output rust. Just like giving a compiler a text file and it outputs machine code. | |
| ▲ | Gigachad an hour ago | parent | prev | next [-] | | From the OP post it costs tens of thousands of dollars to do that compile. | | |
| ▲ | rpozarickij an hour ago | parent [-] | | Given the rate of progress, it's hard to argue why this couldn't be a reality. If in the future Taalas-type chips with baked in frontier models are commonplace, this should be quite different price-wise from what we have now. It's a bit dizzying to imagine that LLMs might even be able operate at speeds of chatjimmy.ai, but we already have working tech that does exactly this (albeit with less intelligence/capabilities). |
| |
| ▲ | pjmlp 4 hours ago | parent | prev [-] | | Not really, the future are natural languages, with some markdown files for formal specification, yaml or whatever, and then Assembly gets generated directly. 3 GLs are going to slowly fade out as LLM tooling improves, and coding looks increasingly as envisioned by 4 GLs advocates. | | |
| ▲ | NewLogic 3 hours ago | parent [-] | | Sounds awful, natural language sucks for describing complex problems and relationships. That's why people have historically reached for diagrams and pseudo code. | | |
|
|
|
|
| ▲ | elcritch 11 hours ago | parent | prev | next [-] |
| I'm curious how much unsafe this uses? Are these ports making idiomatic code or just using unsafe all over. There doesn't seem to be anything in the readme. |
| |
|
| ▲ | fiatpandas 11 hours ago | parent | prev | next [-] |
| Are there any specific harnesses or techniques to aid in porting stuff to Rust? Specialized in terms of token efficiency |
| |
| ▲ | hedgehog 11 hours ago | parent [-] | | As much as possible mechanical (non-LLM) verification of equivalence that generates good diagnostic messages, mechanical translation steps that generate good diagnostic messages, a good memory system to reduce rework... (edit: and mechanical coverage measurement) |
|
|
| ▲ | fwlr 11 hours ago | parent | prev | next [-] |
| # “The Slop Line"
Everything below this was written by my LLMs, not me.
I really appreciate this convention, thank you. |
| |
| ▲ | sitzkrieg 9 hours ago | parent [-] | | imagine if they had the willingness to re-write it for human consumption. might a well delete it |
|
|
| ▲ | bitpush 11 hours ago | parent | prev | next [-] |
| Is this going to be a serious project? No. Is this going to be maintained? Nope Nevertheless this and many others are showing what is possible. Much akin to how someone ports doom onto a microwave. We'll look back at this time with great fondness when we collectively discovered a whole new gear. |
| |
| ▲ | BigJono 8 hours ago | parent [-] | | > Nevertheless this and many others are showing what is possible. More unserious and unmaintained projects at 400k a pop. Sick. |
|
|
| ▲ | Capricorn2481 10 hours ago | parent | prev [-] |
| Why does it seem like this is falling off the front page really fast? There's older posts with less points that are way higher. |
| |
| ▲ | ncruces an hour ago | parent [-] | | More comments than upvotes make it sink, because it's a contentious topic. |
|