Re:A 10x Faster TypeScript
by pjmlp on Tuesday March 11, 2025 @11:47AM
(#43333644)
Native AOT exists, and C# has many C++ like capabilities, so not at all.
[ Parent
| on HN ]
Re:A 10x Faster TypeScript
by reactordev on Tuesday March 11, 2025 @12:04PM
(#43333842)
It exists but isn’t the same as a natively compiled binary. A lot gets packed into an AOT binary for it to work. Longer startup times, more memory, etc.
Just like Go, there is no magic here.
Where do you think Go gets those chubby static linked executables from?
That people have to apply UPX on top.
Re:A 10x Faster TypeScript
by reactordev on Tuesday March 11, 2025 @05:33PM
(#43337249)
Go’s static binaries are orders of magnitude smaller than .Net’s static binaries. However, you are right, all binaries have some bloat in order to make them executable.
Re:A 10x Faster TypeScript
by metaltyphoon on Tuesday March 11, 2025 @08:16PM
(#43338587)
This is flat out incorrect if you are doing AOT in C#
Re:A 10x Faster TypeScript
by reactordev on Wednesday March 12, 2025 @09:17AM
(#43342927)
How? What I said was fact. All executables have some bloat that makes them executables. Golang’s being the smaller. Whether it’s shared lib pointer or static…