News for hackers. Stuff that matters.
Re:The Rule of 2 by est31 on Saturday August 10, 2019 @08:26AM (#20661658)
> The Rule Of 2 is: Pick no more than 2 of

> * untrustworthy inputs;

> * unsafe implementation language; and

> * high privilege.

> Security engineers in general, very much including Chrome Security Team, would like to advance the state of engineering to where memory safety issues are much more rare. Then, we could focus more attention on the application-semantic vulnerabilities. That would be a big improvement.

> Unsafe implementation languages are languages that lack memory safety, including at least C, C++, and assembly language. Memory-safe languages include Go, Rust, Python, Java, JavaScript, Kotlin, and Swift

Very nice. At the end of the process, Google might adopt Rust in Chromium. As much as I use and love Firefox, it's only realist to say that Chrome has higher chances of being around in 10 years.

I wonder why the list doesn't include their wuffs language.

Re:The Rule of 2 by tyingq on Saturday August 10, 2019 @09:21AM (#20661872)
"Memory-safe languages include Go, Rust, Python, Java, JavaScript, Kotlin, and Swift"

An interesting list. They left out C# and PHP if it's supposed to be the most popular languages.

Re:The Rule of 2 by pjmlp on Saturday August 10, 2019 @10:14AM (#20662156)
Selective view based on in house languages.
Re:The Rule of 2 by jchw on Saturday August 10, 2019 @12:32PM (#20662994)
I work at Google and as far as I know Rust is not really “in house” at Google, at least not any more than C#. Both languages exist in some form, Google does have some plugins for Unity and I believe Fuchsia has some Rust code. It is indeed unclear what criteria was used to select languages, though it’s really not very relevant to the primary point anyway.

(Legal line noise: my opinions are not those of my employer.)

Re:The Rule of 2 by sitkack on Saturday August 10, 2019 @01:55PM (#20663529)
Rust has been pulled into the Android tree.
Re:The Rule of 2 by jchw on Saturday August 10, 2019 @03:01PM (#20663894)
That's genuinely exciting to hear. Thanks for letting me know.
Re:The Rule of 2 by lisper on Saturday August 10, 2019 @02:03PM (#20663576)
And the original memory-safe language: Lisp.
Re:The Rule of 2 by amoitnga on Saturday August 10, 2019 @09:50AM (#20662011)
Is Ruby memory-safe?
Re:The Rule of 2 by tyingq on Saturday August 10, 2019 @09:52AM (#20662017)
No (direct) pointers or malloc, and garbage collected, so yeah.
Re:The Rule of 2 by jillesvangurp on Sunday August 11, 2019 @04:31AM (#20667076)
Lots of native extensions though. So indirectly plenty of possibility for abuse. Some implementations are better at this than others.
Re:The Rule of 2 by rectang on Saturday August 10, 2019 @10:24AM (#20662210)
No-thank-you to the gratuitous Firefox FUD.
Re:The Rule of 2 by est31 on Saturday August 10, 2019 @11:10AM (#20662466)
https://gs.statcounter.com/browser-market-share/desktop/worl...

https://data.firefox.com/dashboard/user-activity

If you check where Firefox was 10 years ago to where it's now you can see the trend. It still continues. In the last year, Firefox lost more than 10% of its market share. A component of this is probably Firefox not being able to capture growth of the entire market, but the trend also holds for the absolute number of users: 890 million YAUs in Jul 2018 vs 809 YAUs in Jul 2019. In the long term view, Firefox is dying.

Re:The Rule of 2 by eikenberry on Saturday August 10, 2019 @05:03PM (#20664505)
Neither of those charts go back far enough because if they did you'd see this has all happened before, and even worse at one point. When IE was taking over the world FF fell to <5% of the market, yet it survived. It's not dead until its dead and with Chrome killing off ad-blockers I bet we'll see some reversal of the current trends when that ships.
Re:The Rule of 2 by dtech on Saturday August 10, 2019 @05:38PM (#20664651)
When IE had taken over the world (~2002) Firefox did not exist yet, unless you include Netscape or Mozilla Suite
Re:The Rule of 2 by jillesvangurp on Sunday August 11, 2019 @04:53AM (#20667157)
By the same reasoning, Internet Explorer should have killed off Firefox ages ago. Except that never happened and instead it is IE that died. Firefox has plenty of supporters and a rich development community; it won't go away any time soon.

There are enough of them to keep Mozilla going indefinitely and they are doing some truly amazing stuff like using Rust to get massive performance boosts. Mozilla and Firefox have set the agenda technically for close to two decades. Everybody does tabs now. I remember when that was a Mozilla only thing. Extensions were a Mozilla only thing for a long time now. Even Safari has extensions now. The new focus on security and privacy started at Mozilla and is now being copied by others (Brave, Edge, Safari) while Google is moving to kill ad blockers and continues to sell users out to their advertisers.

Re:The Rule of 2 by rectang on Saturday August 10, 2019 @10:12PM (#20665783)
So what? Is it your mission to threadjack every story and turn it into a conversation about Firefox market share?

When you observe someone using Firefox do you interject, "You know that Firefox is dying, right?"

When you participate in meetings, do you open with "I'd like to state for the record that Firefox is doomed, doomed I say"?

At the coffee shop in the morning, do you order "Grande Mocha, hold the Firefox because all hope is lost"?

Re:The Rule of 2 by ufmace on Saturday August 10, 2019 @11:52AM (#20662720)
Well it isn't meant to be an exhaustive list of languages that are memory-safe. I could complain that Ruby isn't in there, but it isn't very popular in the Google world right now. I think we all get the idea though.