News for hackers. Stuff that matters.
Re:Bun 1.1 by paulddraper on Monday April 01, 2024 @11:26PM (#39902088)
> By far the greatest advantage is that it runs TS natively.

So why doesn't any major runtime run Java natively? Or C++ natively? Or Rust natively?

Why is this such a cool unlock that hasn't been done for any other language?

---

85% of this are people tired/bored of Node.js.

Re:Bun 1.1 by smt88 on Tuesday April 02, 2024 @12:16AM (#39902336)
Python is among the most popular languages and it doesn't require a compile step.

TypeScript is entirely metadata, so it just doesn't make sense to need to compile it.

Re:Bun 1.1 by 7bit on Tuesday April 02, 2024 @03:27AM (#39903191)
I don't understand your point. I don't even understand your argument.

The java runtime runs java.

And C++ and Rust are compiled and have no runtime.

Re:Bun 1.1 by hibbelig on Tuesday April 02, 2024 @04:42AM (#39903554)
Java is compiled, too. The Java runtime is the JVM which runs byte code.
Re:Bun 1.1 by paulddraper on Tuesday April 02, 2024 @02:19PM (#39909069)
JVM runs java bytecode.

Java bytecode is compiled from Java (javac), Scala (scalac), etc

Re:Bun 1.1 by baq on Tuesday April 02, 2024 @06:21AM (#39904095)
the jvm bytecode has been designed to be bytecode from day 1.

JS is the TS's bytecode but it has been designed to be a language to be developed in, which causes impedance mismatches as tools and people get confused about the usage context.

Re:Bun 1.1 by solumunus on Tuesday April 02, 2024 @10:25AM (#39906099)
Just, what?!