News for hackers. Stuff that matters.
Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by cekrem on Monday January 19, 2026 @09:41AM (#46679510)
The Java interop compromise is probably the biggest weakness of the proposal - it works beautifully within Kotlin but degrades at boundaries. This is similar to how Kotlin's nullable types (String?) become platform types in Java.

I think it's good nonetheless to add stuff to Kotlin that won't translate 1:1 to Java, both because Java is evolving but also because Kotlin is used in "Native" (non-JVM) contexts as well (not extensively, but hopefully that'll change).

Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by pjmlp on Friday January 23, 2026 @02:08PM (#46736420)
That is always the gotcha with guest languages.

C++ cannot get away from C, Typescript cannot get away from JavaScript, and so forth.

Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by zaphirplane on Friday January 23, 2026 @05:04PM (#46738599)
That is more interoperability than guest language situation. I don’t think c++ is a c guest. Ts has a different approach to the js self.
Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by pjmlp on Friday January 23, 2026 @05:27PM (#46738842)
C++ started as a C macro preprocessor, designed to work as C in UNIX, and by CFront 2.0 there was already too much compatibility to throw away.

Ts is basically a linter, everything else is JS.

Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by zaphirplane on Saturday January 24, 2026 @01:27AM (#46741530)
c++ bootstrapping as a transpiler back when it was a 1 man show is hardly where it’s at today. The point about self handling in ts should demonstrate there is more than just strip the types going on
Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by pjmlp on Saturday January 24, 2026 @05:18AM (#46742373)
There is the whole fit into the same UNIX compiler toolchain as C, without additional changes to the linker, include files, object and archive files.
Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by zaphirplane on Sunday January 25, 2026 @01:16AM (#46751273)
Oh like how gnu compiler includes an ada compiler ? Or the C++ name mangling ?

Obviously there a common heritage and the shared ancestor is c.

Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by pjmlp on Monday January 26, 2026 @02:00AM (#46762648)
C++ name mangling was exactly designed to be able to link C++ code with a standard UNIX linker that only knows C.

GNAT has zero compatibility with C source, doesn't even make sense.

Re:Kotlin's Rich Errors: Native, Typed Errors Without Except... by wiseowise on Saturday January 24, 2026 @03:34AM (#46741992)
The ship has sailed the moment Kotlin believed it could break away from the JVM ecosystem. And for a good reason, it would be just slowly consumed by the progress of Java.