News for hackers. Stuff that matters.
Re:On Learning Rust and Go: Migrating Away from Python by siteshwar on Sunday March 24, 2019 @08:23AM (#19475923)
> Rust is developed by a community, and was started by Mozilla. Go development seems to be de facto controlled by Google, who originated the language. I'd rather bet my non-work future on a language that isn't controlled by a huge corporation, especially one of the main players in today's surveillance economy.

Anyone else agree with this view ? Programming languages should be choosen based on technical merits, rather than who is behind it. Is there a lesson from history that I am missing ?

Re:On Learning Rust and Go: Migrating Away from Python by tyingq on Sunday March 24, 2019 @09:06AM (#19476109)
"Programming languages should be choosen based on technical merits, rather than who is behind it."

Considering the motivations of the language owner is a valid concern. Many people, for example, jumped on to HHVM as a "faster PHP". Then it started branching away from PHP[1]. Predictable, if you considered Facebook's reasons for having it.

[1] https://hhvm.com/blog/2018/09/12/end-of-php-support-future-o...

Re:On Learning Rust and Go: Migrating Away from Python by stochastic_monk on Sunday March 24, 2019 @10:23AM (#19476477)
What were Facebook’s reasons?
Re:On Learning Rust and Go: Migrating Away from Python by gbear605 on Sunday March 24, 2019 @10:28AM (#19476504)
I don’t know anything about HHVM, but plausibly the goal of it is “help Facebook” rather than “be a faster PHP,” and people who came for a faster PHP and are not Facebook are let down by it.
Re:On Learning Rust and Go: Migrating Away from Python by tyingq on Sunday March 24, 2019 @10:41AM (#19476597)
Non-optional strong types is one example where it benefits Facebook, but likely isn't great for those hoping for a "faster PHP". The blog post makes it sound like HHVM will only support hack, and not PHP, sometime in the near future.
Re:On Learning Rust and Go: Migrating Away from Python by bayesian_horse on Sunday March 24, 2019 @08:49AM (#19476042)
In all three cases, Python, Go and Rust, the language and ecosystem may be in the hands of an organization, but you can probably produce code productively in it for years even if the organization went under or chose unacceptable paths.

Go is quite unique in that it produces very independent binaries. This might make software written in it quite future-proof.

Personally I like Python's philosophy and the way the community is run. I like the trajectory. I understand the trade-offs. And I am sure as hell not going to teach Go or Rust as a first programming language to people who aren't computer science students. And even then...

Re:On Learning Rust and Go: Migrating Away from Python by vram22 on Sunday March 24, 2019 @01:02PM (#19477385)
>Go is quite unique in that it produces very independent binaries. This might make software written in it quite future-proof.

What do you mean by "it produces very independent binaries."? Do you mean that Go implements system calls itself, instead using corresponding wrappers from the OS's underlying C library?

I read something like that recently, but haven't looked into the point yet.

Re:On Learning Rust and Go: Migrating Away from Python by bayesian_horse on Tuesday March 26, 2019 @07:48AM (#19490824)
"Very independent" doesn't mean totally independent. In particular Go doesn't do shared libraries.
Re:On Learning Rust and Go: Migrating Away from Python by vram22 on Thursday March 28, 2019 @08:30AM (#19511501)
Cool, thanks.
Re:On Learning Rust and Go: Migrating Away from Python by gbear605 on Sunday March 24, 2019 @10:38AM (#19476571)
I think a “rust with GC” could actually be a very good intro language. The borrow checker is more than beginners can handle though.
Re:On Learning Rust and Go: Migrating Away from Python by rujuladanh on Sunday March 24, 2019 @02:23PM (#19477870)
There is little point to introduce a GC in Rust. If you don't mind a GC, you have nicer languages out there.
Re:On Learning Rust and Go: Migrating Away from Python by gbear605 on Monday March 25, 2019 @07:32AM (#19481649)
From my perspective, of all the languages that I’ve tried (Java, C, C++, Javascript, Haskell, OCAML, Python, several lisps), PHP, Swift), Rust is the best even without the borrow checker, and the borrow checker is just a nice bonus. Admittedly, there are many languages that I haven’t tried, and I haven’t done significant work with all of those.
Re:On Learning Rust and Go: Migrating Away from Python by coldtea on Sunday March 24, 2019 @08:57AM (#19476078)
>Anyone else agree with this view ? Programming languages should be choosen based on technical merits, rather than who is behind it.

Absolutely not. Technical merits are only part of the considerations.

Big companies, for example, where the stakes are higher, never chose languages on their technical merits alone. The also look at the owner/stewardship of the language, and in many case, roll their own languages, to avoid being at their mercy.

Re:On Learning Rust and Go: Migrating Away from Python by russtrotter on Sunday March 24, 2019 @09:02AM (#19476093)
I'd say, all things being equal, yes, choose languages on tech merit or suitability to task. But look at what's happening with Java and Oracle's handling of it. I think the Google vs Oracle lawsuit is still going through appeal. Ask Google if they wish in hindsight they'd built Android on something else.
Re:On Learning Rust and Go: Migrating Away from Python by stingraycharles on Sunday March 24, 2019 @09:32AM (#19476237)
Not saying you’re wrong, but Google re-implemented Java for Android, which is quite different from using Java alone.

So it’s not a completely fair comparison.

Re:On Learning Rust and Go: Migrating Away from Python by gbear605 on Sunday March 24, 2019 @10:29AM (#19476517)
Of course the reimplementation is what got them into this lawsuit...
Re:On Learning Rust and Go: Migrating Away from Python by phkahler on Sunday March 24, 2019 @10:34AM (#19476554)
I think it's more accurate to say that not paying Oracle is what got them in court. Either way it shows that the steward of a language can be important.
Re:On Learning Rust and Go: Migrating Away from Python by apta on Monday March 25, 2019 @07:18AM (#19481562)
> But look at what's happening with Java and Oracle's handling of it.

It got fully open sourced?

Re:On Learning Rust and Go: Migrating Away from Python by stingraycharles on Sunday March 24, 2019 @08:45AM (#19476023)
I think it’s a very important aspect of the language’s ecosystem health, as the steward has a big impact on it.

This can be both a blessing or a curse. Google seems to be on the good side, but I’ve seen plenty of languages which are frustrated by its steward.

Re:On Learning Rust and Go: Migrating Away from Python by red_admiral on Sunday March 24, 2019 @08:40AM (#19475993)
The original author comes close to contradicting themselves - Python too is developed by a community, but one of the reasons for moving away is that they are "not getting the feeling that the Python community is going in a direction I want to follow". That can happen to communities just as well as it can to corporations.
Re:On Learning Rust and Go: Migrating Away from Python by tannhaeuser on Sunday March 24, 2019 @09:49AM (#19476315)
There's a simple remedy to the problem of becoming dependent on a single entity wrt the programming language you choose: use only languages with "official" specs (by ISO/IEC or another respected org) and multiple implementations. That's C, C++, ECMAScript, shell, and a couple niche languages such as Ada, Fortran, and Prolog.
Re:On Learning Rust and Go: Migrating Away from Python by brabel on Sunday March 24, 2019 @10:16AM (#19476446)
I believe Java also fits that list. The [Java Language Specification](https://docs.oracle.com/javase/specs/jls/se12/html/index.htm...) via the [Java Virtual Machine Specification](https://docs.oracle.com/javase/specs/jvms/se12/html/index.ht...) is implemented on the open-source OpenJDK project and many other free distributions exist, including from Amazon, Azul, IBM, Alibaba and others [1].

[1] https://en.wikipedia.org/wiki/List_of_Java_virtual_machines#...

Re:On Learning Rust and Go: Migrating Away from Python by LeonidasXIV on Sunday March 24, 2019 @12:10PM (#19477060)
Java is a bit special in this regard because of the Java TCK which has caused issues for e.g. Apache Harmony.
Re:On Learning Rust and Go: Migrating Away from Python by dwaltrip on Sunday March 24, 2019 @08:02PM (#19479460)
One should evaluate all relevant characteristics, both technical and non-technical.
Re:On Learning Rust and Go: Migrating Away from Python by qaq on Sunday March 24, 2019 @09:29AM (#19476223)
Oracle and Java