Better HN
topnewbestaskshowjobs
Log inSign up

phyrex

904 karma · joined May 2, 2012 (14y ago) · 392 submissions

Submissions

comment 1y ago · link · parent

I don't have any numbers, but we know that the Meta family of apps has ~3B users, and that most of them are on mobile. Let's assume half of them are on Android, and you're easily looking at ~1B users on Android. If you have a nullpointer exception in a core framework that somehow made it through testing, and it takes 5-6 hours to push an emergency update, then Meta stands to lose millions of dollars in ad revenue. Arguably even one of these makes it worth to move to a null-safe language! I know your point is that you need to have that sort of crazy scale to make it worth it and that's true, I'm just annoyed at the comments suggesting that the move to Kotlin is just to pad resumes or because Meta let a bunch of bored devs run amok.

comment 1y ago · link · parent

As a consumer you're only ever seeing the tip of the iceberg of Meta apps. There are at least 3 major user groups: The consumers, the producers, and the advertisers, and each of them is at least as complex as the others. Then you have to consider the global audiences, and that e.g. ads are handled very differently in the EU than in North America, and that needs to be accounted for.

comment 1y ago · link · parent

From the article:

> The short answer is that any remaining Java code can be an agent of nullability chaos, especially if it’s not null safe and even more so if it’s central to the dependency graph. (For a more detailed explanation, see the section below on null safety.)

comment 1y ago · link · parent

Progressive typing of an untyped code base. Types that are too complex to represent in that type system.

comment 1y ago · link · parent

The actual non-anonymized data is closely guarded to make sure that nobody gets any funny ideas about mistaking it for actual performance measurement!

comment 1y ago · link · parent

I don't know the specifics, but we already collect the time people spend coding for productivity telemetry, so we already have that signal. I assume the team that maintains our chat system either hooks into an editor notification, or into the Kafka-like event queue that feeds into the data warehouse. It likely only works if you're using the officially blessed IDE, but very nearly everyone does

comment 1y ago · link · parent

At my workplace, coding automatically silences your message notifications!

comment 1y ago · link · parent

You don't get access to randomness or time functions or anything that could change the output of a function with the same input

comment 1y ago · link · parent

The rust implementation has types

comment 2y ago · link · parent

That's how metas buck2 works

comment 2y ago · link · parent

If Hash(attribute) % buckets == 0

That's basically all you need for this. The hash algorithm doesn't matter as long as it's fast and returns a number.

For your example it's "hash(user_id) % 2" because a 50/50 split has two buckets.

comment 2y ago · link · parent

Scale changes everything, I don't think it's fair to shrug this off

comment 2y ago · link · parent

Fwiw that's what we do at work but I don't think it's open source

comment 2y ago · link · parent

"Better part of a decade" means "more than half a decade", so definitely not a decade yet

comment 2y ago · link · parent

That's not true you can just close the login modal and watch the presentations without logging in

comment 2y ago · link · parent

It's happening literally right now? https://www.meta.com/connect/

comment 2y ago · link · parent

100g, has a battery, but still a power puck

comment 2y ago · link · parent

People are working on it: https://ai.meta.com/blog/compilergym-making-compiler-optimiz...

comment 2y ago · link · parent

Sapling is the mercurial fork. In all the codebases I’ve worked on we’ve never used the git integration

comment 2y ago · link · parent

Meta employs kernel developers (and MySQL developers and memcache developers and the people that created and released zstd and a lot more). Aside from all of these are also a bunch of python code developers, and you might want to recheck the performance improvements of 2010 vs 2024 python - much of it driven by FAANG developers!

comment 2y ago · link · parent

How do? It’s little money neither relative to metas income nor relative to anyone else?

comment 2y ago · link · parent

This breaks down at scale and across languages. All the FAANGs make heavy use of the equivalent of grepping in their code base

comment 2y ago · link · parent

A lot of these open source developers that made and improved this "truly free stack" are employed by meta and other big techs

comment 2y ago · link · parent

That's a funny definition of "little money"

comment 2y ago · link · parent

Hack is custom made for facebook and its use cases, and there’s no use for distinguishing those kind of IO at Facebook. The main use case for the effects system is actually privacy, wherein where processes that aren’t privacy controlled cannot access user data or data that got processed by other functions that did. And that’s enforced by the runtime. It’s super cool and a great example of what those systems are capable of.

comment 2y ago · link · parent

It doesn't quite fit your requirements, but Facebook's PHP variant has an effects system like that which they use: https://docs.hhvm.com/hack/contexts-and-capabilities/introdu...

comment 2y ago · link · parent

That could be much better solved through coeffects, but unfortunately most languages don’t support that. Doesn’t mean using async functions is a good way for this either

comment 2y ago · link · parent

You don’t need to “fix” this, it was a direct full quote from the article. Here’s another one: “They do not appear to be seeking news elsewhere”

comment 2y ago · link · parent

One of the main points of the article is “Less news is being consumed by Canadians”. So clearly Canadians are not going to the news sites to get the news from there like you claimed

comment 2y ago · link · parent

Except it doesn’t seem to have worked out this way
12345
14