News for hackers. Stuff that matters.
Re:Leaving OCaml by snazz on Monday November 02, 2020 @08:08PM (#24975307)
Content on HN about the holy trinity of programming languages, text editors, and operating systems generally favors less popular options with more mystique. Anything about Java is probably going to be largely neutral or negative, while a piece on Common Lisp might be much more positive, even though Java is a far more successful programming language in most ways.

I don't think that this bias is a bad thing. It's nice to read about cool technologies that you might not use in your day job. But anyone using HN to decide on the right tool for a project should carefully consider other sources of information as well.

Re:Leaving OCaml by AnimalMuppet on Monday November 02, 2020 @08:32PM (#24975453)
Assume for the moment that all languages are equal. (They aren't, but ignore that for the moment.) If you say something good about Java, there are a lot of people here who have used Java, and some of them have bad impressions that they came to through some pain.

But if you say that Common Lisp is great, there are fewer people who have really used it, so fewer people who have used it and didn't like it. And since fewer people got into it unless they really wanted to, it's easier to say "You didn't really understand it, then, or you would have liked it." The number of people who can say "No, I really got it, and I still didn't like it" is relatively small.

So far, that's just demographics. But then you get into the language itself. Java isn't an exciting language. It's not fun. It's kind of corporate and bland. There aren't many people who are really enthusiastic about Java - nor does Java give them reason to be.

Re:Leaving OCaml by didibus on Tuesday November 03, 2020 @01:42AM (#24977022)
That's true, I also think Java is most people's job, and your job is never as exciting as your side project. That said, I am quite excited about Java and maybe especially advancements in the JVM even though part of my job is in Java.

GraalVM is doing some amazing things with polyglot support and native compilation.

Java's project Loom is trying to bring fibers in a really nice way to the language.

It is slowly working on bringing value types and inline types as well.

And it's got a few cool GCs being experimented on, as well as a nice foreign memory API.

Java recently got really nice improvements, multi-line strings, text blocks, local type inference, a shell, running code from source scripts and switch expressions.

Re:Leaving OCaml by SOLAR_FIELDS on Tuesday November 03, 2020 @04:29AM (#24977959)
My favorite thing about Java (well, I guess more of the JVM ecosystem) is that there is a battle tested, production ready canonical package for just about anything that you could imagine. And that there is a battle tested, canonical way to get that package onto your system and into your build .
Re:Leaving OCaml by nine_k on Monday November 02, 2020 @08:54PM (#24975581)
But leaving OCaml for F# is a bit like leaving Scheme for Common Lisp. Most of the underlying ideas are largely the same.

Moving from OCaml to C++ or Go would be a drastic and surprising change, but it's not nearly like that.

Re:Leaving OCaml by Gene_Parmesan on Monday November 02, 2020 @09:12PM (#24975688)
Not really sure that's a close comparison. From a language semantics perspective, yes, OCaml and F# are very similar. But F# has access to all of .NET, so you aren't going to be at a loss for libraries -- which is probably the biggest challenge in using OCaml in production, as discussed in the OP.
Re:Leaving OCaml by noncoml on Monday November 02, 2020 @10:07PM (#24975935)
Isn’t it more like leaving Scheme for Clojure?
Re:Leaving OCaml by linfocito on Monday November 02, 2020 @09:58PM (#24975901)
It's (way) more like leaving Scheme for Clojure.