News for hackers. Stuff that matters.
Re:Hacking the Golang Runtime with Genereics by the_gipsy on Wednesday December 21, 2022 @04:37AM (#34078519)
Kotlin might fit the Java niche, if you trust someone that sells IDEs to make a language.

Go's niche includes being native. If you discard that, then virtually anything that is "easy" could fit it.

Re:Hacking the Golang Runtime with Genereics by masklinn on Wednesday December 21, 2022 @05:11AM (#34078775)
> Kotlin might fit the Java niche, if you trust someone that sells IDEs to make a language.

They would at least know how to make a language that's not a pain in the ass to analyse, which is probably in its favour.

Re:Hacking the Golang Runtime with Genereics by the_gipsy on Wednesday December 21, 2022 @05:21AM (#34078834)
Yea - but that's offered by all modern languages, and they're not tied to one particular IDE since LSP took off.
Re:Hacking the Golang Runtime with Genereics by masklinn on Wednesday December 21, 2022 @05:24AM (#34078851)
> that's offered by all modern languages

I see you've yet to meet Scala.

> they're not tied to one particular IDE since LSP took off.

There's at least one language server for Kotlin.

I'm not even a interested in (let alone a user of) Kotlin, but you seem to have a very not-objective view of it for some reason.

Re:Hacking the Golang Runtime with Genereics by the_gipsy on Wednesday December 21, 2022 @05:55AM (#34079042)
Are you saying Scala has bad code analysis? I recall it being as good as Java's. Anyway, that's just a matter of defining "modern languages" then.

> There's at least one language server for Kotlin.

I didn't say there is none, I said that any modern language has one. An IDE is not a selling point anymore, in my humble opinion.

> you seem to have a very not-objective view of it for some reason

I just think that shoehorning Kotlin into "the go niche" is absurd , and that the "good code analysis" argument is moot.

Re:Hacking the Golang Runtime with Genereics by shakow on Wednesday December 21, 2022 @10:12AM (#34081674)
> I just think that shoehorning Kotlin into "the go niche" is absurd

That's what you say, but you don't really tell us why.

Re:Hacking the Golang Runtime with Genereics by the_gipsy on Wednesday December 21, 2022 @10:47AM (#34082175)
It's not my burden of proof. If you think something like compiling kotlin instead of running a JVM is akin to compiling with go tooling, then at this point anything that somehow compiles to native (and beyond) is in the "go niche".
Re:Hacking the Golang Runtime with Genereics by masklinn on Wednesday December 21, 2022 @12:12PM (#34083394)
> It's not my burden of proof.

You're the one asserting that it's unsuitable. So it very much is.

> If you think something like compiling kotlin instead of running a JVM is akin to compiling with go tooling, then at this point anything that somehow compiles to native (and beyond) is in the "go niche".

I don't know about the other commenters, but that's literally the only criteria you've deigned offer so far, aside from some sort of conspiratorial implications.

Re:Hacking the Golang Runtime with Genereics by the_gipsy on Wednesday December 21, 2022 @12:34PM (#34083710)
So if I say <any language> is in go's niche, it's your burden to disprove it?

Look, this is getting ridiculous. Go offers easy+fast tooling out of the box. Any JVM language, compiled or not, will never be anywhere NEAR go's tooling in those terms. The extra compilation layer just makes it actually much worse.

And I don't even find go particularly appealing.

Re:Hacking the Golang Runtime with Genereics by pjmlp on Wednesday December 21, 2022 @05:18AM (#34078819)
Then use an AOT compiler, plenty of those for JVM since 2000.

While one can excuse themselves that they were commercial, GraalVM native image, and OpenJ9 offer free beer alternatives.

Re:Hacking the Golang Runtime with Genereics by the_gipsy on Wednesday December 21, 2022 @05:23AM (#34078844)
You're totally missing the point of the niche in question.
Re:Hacking the Golang Runtime with Genereics by masklinn on Wednesday December 21, 2022 @05:26AM (#34078871)
So they're missing the niche of "being native", by suggesting... using an AOT (= native) JVM compiler? Meaning making essentially every JVM language native?
Re:Hacking the Golang Runtime with Genereics by pjmlp on Wednesday December 21, 2022 @06:04AM (#34079104)
Indeed, compiling to native code is missing the question apparently.

Or is the niche not being able to understand JVM languages, that expect developers to have PhD skill levels, as per Rob Pike's own words?

Re:Hacking the Golang Runtime with Genereics by flagsrule on Wednesday December 21, 2022 @09:01AM (#34080819)
I looked into using Graal one time. Many of the dependencies I used were not compatible. I also encounter weird bugs with any of the OpenJ* alternatives. In Go, everything just works.
Re:Hacking the Golang Runtime with Genereics by fsdjkflsjfsoij on Wednesday December 21, 2022 @11:31AM (#34082808)
The JVM proponents are usually being dishonest when they compare Java/Kotlin AOT compilation to Go. They know very well that a large number of popular libraries either outright don't work or have severe restrictions when using AOT. It's also common to run into bugs since Graal is relatively new and only a miniscule percentage of the Java community uses it. It's not even remotely close to Go where everything can be assumed to work.
Re:Hacking the Golang Runtime with Genereics by clumsysmurf on Wednesday December 21, 2022 @01:10PM (#34084221)
I was just reading that Spring 6 introduces Ahead-Of-Time compilation, enabling first-class support for GraalVM native images with Spring Boot 3. So hopefully the situation is improving.
Re:Hacking the Golang Runtime with Genereics by pjmlp on Wednesday December 21, 2022 @02:25PM (#34085219)
No we aren't, because there have been commercial compilers since around 2000, with Excelsior JET being one of the first ones, sadly out of business.

However, PTC and Aicas are still in business,

https://www.ptc.com/en/products/developer-tools/perc

https://www.aicas.com/wp/products-services/jamaicavm/

IBM's commercial one is now freely available on OpenJ9,

https://www.eclipse.org/openj9/docs/xaot/

Finally, if you are using a modern Android phone, an AOT compiler is in the box since Android 5, and it was modified into a mixed JIT with AOT compilation on rest since Android 7.

GraalVM happens to be the evolution of MaximeVM, and certainly not the only game in town.