News for hackers. Stuff that matters.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by tonyedgecombe on Sunday February 01, 2026 @05:16AM (#46845033)
>We need Anders to make one final language.

I do feel like there is a gap for a modern compiled, functional and garbage collected language.

Go isn't it because it lacks the functional constructs.

C# and Java aren't it because they depend on a VM.

Rust isn't it because of its difficult memory management.

Swift isn't it because it is so tied to Apple and their platforms.

Re:The history of C# and TypeScript with Anders Hejlsberg | ... by rednb on Sunday February 01, 2026 @05:41AM (#46845152)
What you are looking for is called F#. You get native interop with C# and access to all .NET/C# libraries as a bonus. We use it as a daily driver for a complex B2B2C cloud platform.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by Sammi on Sunday February 01, 2026 @07:16AM (#46845679)
Does it not run in a VM?
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by rednb on Sunday February 01, 2026 @08:40AM (#46846147)
Yes you are right, it does not properly support NativeAOT yet.

But it isn't a need for most use cases, unless you want to do mobile development and meet app store policies. But even then, mature F# frameworks like Fable transpile your F# code to React & Cie.

Re:The history of C# and TypeScript with Anders Hejlsberg | ... by christophilus on Sunday February 01, 2026 @08:56AM (#46846250)
It can be compiled, but that’s not the use case it was originally designed around, so it’s not quite as first class an experience as with Go or Rust.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by NetMageSCW on Sunday February 01, 2026 @01:57PM (#46848390)
You can embed the framework into the application so it is a single distributable.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by kryptiskt on Sunday February 01, 2026 @05:38AM (#46845143)
C# doesn't depend on a VM these days when it is AOT compiled. Same for Java, though C# is rather more user friendly in how it goes about it.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by trympet on Sunday February 01, 2026 @04:26PM (#46849523)
> C# doesn't depend on a VM these days when it is AOT compiled

Maybe I’m being pedantic, but this is an oxymoron. Also the premise is incorrect. It’s not like the VM is gone. Merely baked into the code at compile time. It compiles IL to native code. Same for IL2CPP. The VM is still there.

The term “virtual machine” is confusing. I think you meant to say JIT compiler :-)

Re:The history of C# and TypeScript with Anders Hejlsberg | ... by WorldMaker on Monday February 02, 2026 @04:00PM (#46861469)
The trouble with that level of pedantry is that you then can point to LLVM as a VM and say that Clang and other C/C++/Rust tools that AOT through LLVM are "too tied to a virtual machine". Then you can go back through the history of cross-platform optimizing C/C++ compilers and find VMs in the design in almost all of those, too. LLVM is not hiding it in its very clear name, but low-level VMs were a thing for decades before someone named LLVM.

VMs have a long history in cross-compilation, even for "low-level" languages like C/C++. The AOT versus JIT distinction is blurry, and the "VM language" versus "non-VM language" boundary is blurrier still, especially when you take into account "standard runtimes" such as glibc and vcrt and whether or not those are statically linked.

Is a C program with a compiled with Clang through the LLVM dynamically linking a glibc and statically linking a Boehm GC library "running in a VM"? There's no wrong answer, it's a lot shades of gray. I believe almost every pedantic way to answer that has an equally pedantic counter-argument.

Re:The history of C# and TypeScript with Anders Hejlsberg | ... by jorams on Sunday February 01, 2026 @06:58AM (#46845568)
There are plenty of languages in that niche you could be using. OCaml, Haskell, F#...
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by EddieRingle on Sunday February 01, 2026 @05:44AM (#46845170)
Kotlin has a LLVM backend, among others.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by fpsvogel on Sunday February 01, 2026 @08:28AM (#46846078)
Roc might be that language one day. Not yet because it's pre-0.1.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by metaltyphoon on Sunday February 01, 2026 @10:02AM (#46846648)
C#, with default tooling, can compile without needing a VM, for windows, macOS, linux and some other platforms.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by zigzag312 on Sunday February 01, 2026 @10:30AM (#46846835)
I wish that Nuget would show which packages are NativeAOT compatible.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by metaltyphoon on Sunday February 01, 2026 @10:36AM (#46846886)
It will probably get there one day since all BCL is annotated. Perhaps this is not done because you can have parts of the library be completely safe to use in AOT while another part not be.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by HumblyTossed on Sunday February 01, 2026 @01:19PM (#46848086)
That's the problem though. People want one language to be The One (tm) and that's just not possible. Your The One (tm) isn't mine.
Re:The history of C# and TypeScript with Anders Hejlsberg | ... by WorldMaker on Monday February 02, 2026 @04:08PM (#46861563)
I don't see why a VM is a problem, personally, and I like a lot of what C# has been exploring with `Span<T>` and `Memory<T>` for safe low-level memory management in a garbage-collected language. Some of it seems like a simpler Rust. Rust can still do plenty of memory lifetime things that C# can't, but the gap is smaller than ever and C# is still slowly growing its capabilities in that space. All that in a language where you don't have to start with the low level tools, you can prototype entirely in higher-level garbage collected space and use real world performance to guide optimizations towards the low-level memory management tools only when they become truly necessary.