Live data from Hacker News

Java at 30: Interview with James Gosling

thenewstack.io

431–437 of 437 posts

Re: Java at 30: Interview with James Gosling

#431

Earlier quoted context omitted.

int fibonacci(int n) { if (n } ...if only the return type was "Crow" then you could .eat() that...

That will not compile with javac, as it is not a method of a class.

That code will it just needs to be in the proper context. No the same file will not compile, even if only because javac needs files to end with .java .

Re: Java at 30: Interview with James Gosling

#432
post #309
post #115

Earlier quoted context omitted.

Interesting about that long list of languages. There's also Groovy. I wonder what other languages run on the JVM. What about Perl, Icon, SNOBOL, Prolog, Forth, Rexx, Nim, MUMPS, Haskell, OCaml, Ada, Rust, BASIC, Rebol, Haxe, Red, etc.? Partly facetious question, because I think there are some limitations in some cases that prevent it (not sure, but a language being too closely tied to Unix or hardware could be why),…

> Haskell https://github.com/Frege/frege https://github.com/typelead/eta Of the others you mentioned, I bet there's a couple JVM Prologs out there, but haven't encountered any myself.

Thanks.

I briefly looked at Frege; both it and the person it is named after are very interesting.

https://en.m.wikipedia.org/wiki/Gottlob_Frege

Re: Java at 30: Interview with James Gosling

#433
post #115

Earlier quoted context omitted.

Interesting about that long list of languages. There's also Groovy. I wonder what other languages run on the JVM. What about Perl, Icon, SNOBOL, Prolog, Forth, Rexx, Nim, MUMPS, Haskell, OCaml, Ada, Rust, BASIC, Rebol, Haxe, Red, etc.? Partly facetious question, because I think there are some limitations in some cases that prevent it (not sure, but a language being too closely tied to Unix or hardware could be why),…

I mentioned Haxe by name, and Eta is essentially Haskell on JVM. There is an OCaml-Java. NetRexx targets the JVM. For Prolog there are JIProlog and TuProlog at least. Red basically is REBOL. Yes, Red targets IA-32, ARM, JVM, AVM2, x64, and the CLR. I’ve seen some experiments for running Perl on the JVM. Rakudo can target the JVM for Raku, which is Perl’s sister language. For Ada, gnat can target the JVM. https://docs…

Thanks. That's a lot of interesting stuff to check out!

Re: Java at 30: Interview with James Gosling

#434
post #22

James Gosling, Robert Pike and Geoffrey Hinton are my top 3 "Canadians who meaningfully changed things in technology" (tho, I should probably make it a top 5, add Brian Kernighan and figure out someone else)

If Robert Pike is on your list, maybe Graydon Hoare should be 5th place!

Re: Java at 30: Interview with James Gosling

#435

Earlier quoted context omitted.

Java could have easily caught up with C# in the early 2000s. In 2001 Pizza (Scala's ancestor) showcased generics, higher-order functions, ADTs and pattern matching. Interestingly enough only generics made it to Java in a reasonable timeframe, the rest came only much later. Aside from early versions being rushed, I feel that Java's success and adoption were the bigger issue. While Microsoft could iterate quickly and b…

In fact, Java 1.5 got generics in 2004, one year before C# 2.0 added them in 2005. OTOH C# 2.0 had anonymous delegates, although syntactically they were still very verbose (no type inference for arguments) and thus only marginally better than Java's anonymous classes. It was really from 2007 on (.NET 3.5 / C# 3.0) that C# started to get major features at an ever increasing pace while Java significantly stagnated for…

C#'s runtime got generics in 2005 whereas Java still just has compiler-only sugar. It's a rather significant difference in the quality of the implementation. Not just for things like reflection but also means List ToArray actually can return T[] instead of Object[].

It also means the .NET ecosystem didn't need the inline+reified kludge that Kotlin came up with https://kotlinlang.org/docs/inline-functions.html#reified-ty...

Re: Java at 30: Interview with James Gosling

#436
post #432
post #309

Earlier quoted context omitted.

> Haskell https://github.com/Frege/frege https://github.com/typelead/eta Of the others you mentioned, I bet there's a couple JVM Prologs out there, but haven't encountered any myself.

Thanks. I briefly looked at Frege; both it and the person it is named after are very interesting. https://en.m.wikipedia.org/wiki/Gottlob_Frege

So I submitted HN posts about both of them:

https://news.ycombinator.com/item?id=44112115

https://news.ycombinator.com/item?id=44076220

Full speed ahead, and damn the naysayers, er, downvoters, er, torpedos! ;)

https://en.m.wikipedia.org/wiki/David_Farragut

Re: Java at 30: Interview with James Gosling

#437
post #192

Earlier quoted context omitted.

Personally I think C# is miles ahead of Java and in meaningful ways (like a drastically better implementation of generics, not to mention value types have existed for eons at this point and an FFI system that doesn't hate you for using it) But nobody seems to talk about or care about C# except for Unity. Microsoft really missed the boat on getting mindshare for it back in the day.

It barely works on non MS platforms,has had many slightly incompatible versions so it's a non starter for many projects where I run into that might benefit from c#. I spoke to a manager recently who had invested in silverlight in the past. Based on that alone it was a no MS policy for his development teams.

We've been running .NET on linux for years, what are you talking about?
Post reply on HN