News for hackers. Stuff that matters.
Re:Functions and algorithms implemented purely with TypeScri... by PUSH_AX on Wednesday July 05, 2023 @07:33AM (#36598854)
At some point someone needs to have the balls to create and push a better language than JS in the browser. It's a huge and scary undertaking, but until it happens we are firmly in transpile/good language -> WASM land for the foreseeable future.

TS is lauded, but I really think it's just the best of a bad bunch.

Re:Functions and algorithms implemented purely with TypeScri... by jenscow on Wednesday July 05, 2023 @07:56AM (#36599098)
There's Dart.

But at the time, many complained of the lack of jQuery support and needing to transpile to support other browsers, so it didn't get the interest it deserved.

Re:Functions and algorithms implemented purely with TypeScri... by troupo on Wednesday July 05, 2023 @08:20AM (#36599343)
I don't think Dart is meaningfully better than JS (for some vague definition of better)
Re:Functions and algorithms implemented purely with TypeScri... by jenscow on Wednesday July 05, 2023 @08:28AM (#36599437)
It provides opt-in type safety. Unlike TS, it's not a language extension.
Re:Functions and algorithms implemented purely with TypeScri... by xeonmc on Wednesday July 05, 2023 @10:18AM (#36600826)
LuaJIT?
Re:Functions and algorithms implemented purely with TypeScri... by chrisco255 on Wednesday July 05, 2023 @12:18PM (#36602616)
There's absolutely no reason to push another language in the browser. Just make wasm your compile target. It's assembly for a reason.
Re:Functions and algorithms implemented purely with TypeScri... by PUSH_AX on Wednesday July 05, 2023 @12:34PM (#36602860)
Sure, if you're writing a lib...

If you're writing software and you're consuming libs and frameworks, a fragmented ecosystem sounds less than ideal.