News for hackers. Stuff that matters.
Re:What else is in Go 1.11? by yawn on Thursday August 16, 2018 @09:15AM (#17774322)
Totally agree on 2. "Learn a language a year" they said. "Learning new languages expands your thinking" they said. What they didn't say was that once you use ADTs to model data, Maybe/Option types to avoid null, exhaustive pattern matching, etc, you want those features in all the languages you use.

I don't ask for much. I just want a GC'd Rust (one of the few modern languages that has option types in the std lib) or an F# that isn't tied to the .NET standard lib. Please?

Re:What else is in Go 1.11? by how_to_bake on Thursday August 16, 2018 @01:52PM (#17776992)
I think Swift is the closest thing to a GC’d Rust. However, since Windows isn’t a first class platform for Swift, I’d recommend checking out Scala.

I think they’re doing a compiler rewrite that steals the good ideas from Rust (like good error messages).

Re:What else is in Go 1.11? by masklinn on Thursday August 16, 2018 @09:56AM (#17774616)
> F# that isn't tied to the .NET standard lib. Please?

F# is basically OCaml on .Net, so… OCaml?

Re:What else is in Go 1.11? by mlevental on Thursday August 16, 2018 @10:17AM (#17774769)
I just made this choice (learn fsharp or oval). initially I was leaning ocaml for the same reason as gp but then I tried a simple scraper (make a get request and parse the HTML) and couldn't get it to compile because of cabal hell. well obviously not cabal hell but dependency hell where I had to keep changing installing and uninstalling versions of cohttp and the compiler. in the end I said screw it and installed all the .net/mono/f# stuff and it worked flawlessly the first time. I don't understand how language developers don't prioritize package management in 2018 - it's simply a deal breaker when other languages get it right. yes I realize ocaml and haksell have a different perspective on dependency resolution than other languages but then they should ensure that it works (and yes I also realize dependency resolution is np complete).
Re:What else is in Go 1.11? by xfer on Thursday August 16, 2018 @10:48AM (#17775061)
It can happen if you happen to install a recent compiler and that package manager has not done the work(probably changing the bounds) to update in opam repo.

> I don't understand how language developers don't prioritize package management in 2018

As you already know, Ocaml already has a decent package manager opam, this same situation will happen in any language where the packages get stale(e.g. in rust you installed something used nightly features that didn't make it mainstream).

Re:What else is in Go 1.11? by yawn on Thursday August 16, 2018 @11:16AM (#17775344)
The tooling around OCaml is nowhere near F#, let alone Rust. The standard library situation is less than ideal and they're still working on getting multithread support.
Re:What else is in Go 1.11? by ernst_klim on Monday August 20, 2018 @04:48AM (#17798498)
What tooling is absent?
Re:What else is in Go 1.11? by mastax on Thursday August 16, 2018 @09:20AM (#17774348)
OCaml? ReasonML?
Re:What else is in Go 1.11? by mercer on Thursday August 16, 2018 @12:28PM (#17776067)
In regards to 2: I find it difficult sometimes to work with a language that doesn't have Elixir/Erlang's pattern matching, and sometimes I wish I hadn't learned about it...

(the pipe operator is another favorite I miss often)

Re:What else is in Go 1.11? by mchahn on Monday August 20, 2018 @12:48AM (#17797793)
There are proposals to add |> (pipe) to JS.
Re:What else is in Go 1.11? by mickronome on Thursday August 16, 2018 @12:20PM (#17775978)
I actually stopped learning new languages with these features because I started to get so frustrated they weren't available. Or I implemented then am everyone got weirded out by their 'strangeness'
Re:What else is in Go 1.11? by remoteorbust on Thursday August 16, 2018 @03:51PM (#17777914)
Terrible idea: could you write a transpiler for rust that basically auto-wrapped everything in a Gc<> type and auto-dereferenced?
Re:What else is in Go 1.11? by noncoml on Thursday August 16, 2018 @03:54PM (#17777941)
OCaml?