News for hackers. Stuff that matters.
Re:Anthropic acquires Bun by piskov on Tuesday December 02, 2025 @04:54PM (#46127425)
Genuine question: why js?

Why not something like c#: native, fast, crossplatform, strongly-typed, great tooling, supports both scripting (ie single file-based) and compiled to a binary with no dependency whatsoever (nativeAOT), great errors and error stacks, list goes on.

All great for AI to recover during its iterations of generating something useful.

Genuinely perplexed.

Re:Anthropic acquires Bun by hexasquid on Tuesday December 02, 2025 @05:31PM (#46127848)
If I was to pick a language, I'd pick the one all developers agree is the best.
Re:Anthropic acquires Bun by nixosbestos on Tuesday December 02, 2025 @06:26PM (#46128342)
Ahahahahhahahahahhahahahaahaha. Please tell me this is tongue-in-cheek and just more subtle than I give HN credit for. Please.
Re:Anthropic acquires Bun by morshu9001 on Tuesday December 02, 2025 @06:41PM (#46128464)
Not all devs, not even most, but I certainly think this
Re:Anthropic acquires Bun by mrcsharp on Tuesday December 02, 2025 @05:14PM (#46127672)
Sadly, this will be the trend with things moving forward. JS is perceived as a good language and LLMs are meant to make them even easier to write. It is not about the mertis of a language. It's about which languages LLMs are "good" at.
Re:Anthropic acquires Bun by dolmen on Tuesday December 02, 2025 @05:43PM (#46127971)
AI are good at JS because basically there is a ton of JS code available publicly without usage restriction: the JS code published to be executed in your browser. Most of JS code attached to web pages has no explicit license, but the implicit license is that anyone can download it and run it. Same for HTML and CSS. So using that public code to train models is a no brainer.
Re:Anthropic acquires Bun by morshu9001 on Tuesday December 02, 2025 @06:35PM (#46128411)
Same reason AIs also use Python and DBMSes offer JS or Py UDFs easily, interpreted languages take no build time and are more portable. JS is also very popular.

Might also be a context window thing. Idk how much boilerplate C# has, but others like Java spam it.

Re:Anthropic acquires Bun by hoppp on Tuesday December 02, 2025 @04:58PM (#46127502)
Because js became an everything language that everyone can write and its the only language you ever need.

I dislike it also..

Re:Anthropic acquires Bun by mokarma on Tuesday December 02, 2025 @07:42PM (#46128903)
Atwood’s Law
Re:Anthropic acquires Bun by awesome_dude on Tuesday December 02, 2025 @05:05PM (#46127584)
You could make a better argument for Go (compiles to native for multiple targets, zero actual dependencies (no need for a platform or virtual machine on the target)
Re:Anthropic acquires Bun by morshu9001 on Tuesday December 02, 2025 @06:42PM (#46128479)
Go is the most portable compiled language out there and makes a lot of compromises with the interpreted lang world. But it's got its own issues.
Re:Anthropic acquires Bun by mrcsharp on Tuesday December 02, 2025 @05:15PM (#46127682)
C# has AOT compilation producing native, single file assemblies. A bit behind on this compared to Go, but it's there.
Re:Anthropic acquires Bun by piskov on Tuesday December 02, 2025 @05:15PM (#46127676)
C# no longer requires .net installed or bundled inside exe.

Like I’ve said: NativeAOT

https://learn.microsoft.com/en-us/dotnet/core/deploying/nati...

Re:Anthropic acquires Bun by metaltyphoon on Tuesday December 02, 2025 @09:00PM (#46129434)
>zero actual dependencies

on Linux only with CGO_ENABLED=0 and good luck using some non web related 3rd party module which can be used with CGO disabled.

Re:Anthropic acquires Bun by kuekacang on Tuesday December 02, 2025 @08:45PM (#46129334)
One other angle yet mentioned: JS is browser native. No matter how slow it is, browser is now the LCD. Similar server-client codebase, while ugly, is another plus.
Re:Anthropic acquires Bun by jitl on Tuesday December 02, 2025 @09:06PM (#46129477)
There’s like 100x more JS developers than C# developers. JS can also run code very quickly, where with an AOT language, you need to AOT compile it. For tool calls, eval-as-a-service, running in browser JS is far ahead of C#.
Re:Anthropic acquires Bun by mrsmrtss on Wednesday December 03, 2025 @05:29AM (#46132806)
So, everyone who can hack some JS is now a developer? The '100x' claim is obviously exaggerated. C# is certainly one of the most used programming languages there is.

You can run also C# code very quickly, but have the option (but not the need) to AOT compile it. I would say the only real edge JS has is the ability to run natively in the browser. It was built for that purpose, and in my opinion, that is where it should have stayed.

Re:Anthropic acquires Bun by aizk on Wednesday December 03, 2025 @01:55AM (#46131021)
I thought c# was a dead language at this point?
Re:Anthropic acquires Bun by mrsmrtss on Wednesday December 03, 2025 @05:35AM (#46132869)
You must have been living under a rock. C# is one of the most popular languages out there and it's better than ever.