zlacker

[parent] [thread] 18 comments
1. piskov+(OP)[view] [source] 2025-12-02 21:54:10
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.

replies(10): >>hoppp+f1 >>awesom+z2 >>mrcsha+Z3 >>hexasq+P6 >>dolmen+O8 >>morshu+Uf >>mokarm+Qn >>kuekac+Nu >>jitl+6x >>aizk+0W
2. hoppp+f1[view] [source] 2025-12-02 21:58:48
>>piskov+(OP)
Because js became an everything language that everyone can write and its the only language you ever need.

I dislike it also..

3. awesom+z2[view] [source] 2025-12-02 22:05:48
>>piskov+(OP)
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)
replies(4): >>piskov+34 >>mrcsha+94 >>morshu+0h >>metalt+pw
4. mrcsha+Z3[view] [source] 2025-12-02 22:14:56
>>piskov+(OP)
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.
◧◩
5. piskov+34[view] [source] [discussion] 2025-12-02 22:15:02
>>awesom+z2
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...

◧◩
6. mrcsha+94[view] [source] [discussion] 2025-12-02 22:15:54
>>awesom+z2
C# has AOT compilation producing native, single file assemblies. A bit behind on this compared to Go, but it's there.
7. hexasq+P6[view] [source] 2025-12-02 22:31:19
>>piskov+(OP)
If I was to pick a language, I'd pick the one all developers agree is the best.
replies(1): >>nixosb+Ne
8. dolmen+O8[view] [source] 2025-12-02 22:43:10
>>piskov+(OP)
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.
◧◩
9. nixosb+Ne[view] [source] [discussion] 2025-12-02 23:26:36
>>hexasq+P6
Ahahahahhahahahahhahahahaahaha. Please tell me this is tongue-in-cheek and just more subtle than I give HN credit for. Please.
replies(1): >>morshu+Lg
10. morshu+Uf[view] [source] 2025-12-02 23:35:14
>>piskov+(OP)
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.

◧◩◪
11. morshu+Lg[view] [source] [discussion] 2025-12-02 23:41:04
>>nixosb+Ne
Not all devs, not even most, but I certainly think this
◧◩
12. morshu+0h[view] [source] [discussion] 2025-12-02 23:42:53
>>awesom+z2
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.
13. mokarm+Qn[view] [source] 2025-12-03 00:42:57
>>piskov+(OP)
Atwood’s Law
14. kuekac+Nu[view] [source] 2025-12-03 01:45:52
>>piskov+(OP)
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.
◧◩
15. metalt+pw[view] [source] [discussion] 2025-12-03 02:00:33
>>awesom+z2
>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.

16. jitl+6x[view] [source] 2025-12-03 02:06:25
>>piskov+(OP)
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#.
replies(1): >>mrsmrt+No1
17. aizk+0W[view] [source] 2025-12-03 06:55:31
>>piskov+(OP)
I thought c# was a dead language at this point?
replies(1): >>mrsmrt+Op1
◧◩
18. mrsmrt+No1[view] [source] [discussion] 2025-12-03 10:29:08
>>jitl+6x
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.

◧◩
19. mrsmrt+Op1[view] [source] [discussion] 2025-12-03 10:35:54
>>aizk+0W
You must have been living under a rock. C# is one of the most popular languages out there and it's better than ever.
[go to top]