HNHacker News
TopNewBestAskShowJobs

LegNeato

751 karma · joined May 2, 2013

I worked @ Robinhood on various things. I worked @ Facebook on mobile app releases. Before I worked @ Mozilla on Firefox releases. Before that, I worked @ Apple on Mac OS X releases.
submissionscomments
LegNeato··on Show HN: InstantDB – A Modern Firebase
The graphql schema / string language is not required. For example, Juniper defines the graphql schema and queries using rust structs and impls: https://graphql-rust.github.io/juniper/types/objects/index.h... and the actual on-the-wire encoding and decoding format can be anything.
LegNeato··on Rust GPU Transitions to Community Ownership
New maintainer here, happy to answer any questions!
LegNeato··on Gpu.cpp: A lightweight library for portable low-level GPU computation
https://github.com/charles-r-earp/krnl, and more broadly https://github.com/EmbarkStudios/rust-gpu.
LegNeato··on RocketSim enhances and records Xcode Simulators
FB had internal tools that did this in 2013-2014 based on pieceable (https://techcrunch.com/2012/06/11/facebook-picks-up-the-mobi...).
LegNeato··on Properly testing concurrent data structures
Check out https://github.com/jonnadal/fibril
LegNeato··on Shape typing in Python
You might be interested in `dfdx`, shape checked deep learning in rust: https://github.com/coreylowman/dfdx.
LegNeato··on Cracking Meta's Messenger Certificate Pinning on macOS
As the person who made this call originally at Facebook for the apps--it's not worth it. Any sufficiently advanced or motivated person/group/government would break through eventually...such is the nature of shipping client binaries. You can spend a ton of time and money trying to prevent it (for example Pinterest once was trying to ship their own custom language + vm, which I advised against) OR...just accept that your client code is compromised by default, put logic on the server, and move on with your life.

Cert pinning is basically free and is sort of a "you must be this tall to ride the ride" thing--not secure, but keeps the riff raff out.

LegNeato··on macOS Sonoma is setting records for update size
I was running software updates at Apple and I remember the concern and effort when the "full" update first went over a gig. We were able to get it back under a gig for a release or two but it was hopeless without major new engineering work which would take time. Leadership kept yelling that there must be a way, and they didn't abate until we pointed out that Windows full updates had been over a gig for months.

Of course, Apple used binary patching and compression and all that jazz... this was for the "full" version that delivered entire files.

LegNeato··on Darling: Run macOS Software on Linux
No it wasn't it was osmeta https://techcrunch.com/2013/04/10/has-facebook-quietly-acqui...
LegNeato··on I kind of killed Mercurial at Mozilla
One of the Firefox rapid release designers here :-)

IIRC, topic branches were used because:

- Mercurial named branches were half baked at the time and I was advised against them by folks who knew hg better than me.

- We were already using separate clones for security update versions (3.5.x and 3.6.x) so we just kept doing the same. Some tooling could be reused.

- Rapid release was a big change and we didn't want to disrupt mozilla-central dev. Having rapid release in different clones got us out of the way and reduced the risk of negatively affecting development. m-c was the domain of developers, the rr repos were the domain of the release team.

LegNeato··on High-level emulator for iPhone OS apps
This is what osmeta did (bought by Facebook). I believe it shipped in whatsapp and messenger (see https://twitter.com/steipete/status/1007428817579859969, https://news.ycombinator.com/item?id=11599617) but later fell out of favor and was replaced with react native and pure native rewrites.
LegNeato··on Apple just lost its lawsuit trying to ban iOS virtual machines
Facebook has this for builds as well for runtime (osmeta).
LegNeato··on Fire Mark Zuckerberg
This person is in PR and has never built anything of value. Ignore the SEO.
LegNeato··on Introduction to Sentry Symbolicator
Bit of mobile history, Facebook was the first to get iOS symbolication working on Linux and open sourced it: https://github.com/facebookarchive/atosl. There were rumors that another company had done it but they wouldn't release it as they saw it as a competitive advantage (others needed mac minis, they could use cheap linux boxes).
LegNeato··on Buck2: Our open source build system
Congrats to the team! Very excited to finally get to use this.
LegNeato··on Bob Lee, former CTO of Square, has died after being stabbed in San Francisco
My family has lived in SF since the 1800s. I recently moved because it has gotten so bad. I hate what the government has done to my city.
LegNeato··on Meta plans to lay off 10k employees
You work at Amazon where advertising brings in more profit than AWS... https://www.ben-evans.com/benedictevans/2023/3/6/ways-to-thi...
LegNeato··on How to Make a CubeSat
I think these folks did that: https://www.kubos.com/
LegNeato··on Rust is a hard way to make a web API
I'm the maintainer of Juniper. Juniper is a library, not a framework. As such it is agnostic to how you want to solve N+1. You get a lookahead and can do what you want...dataloader (like Facebook), eager loading all data up front (like Rails), generating efficient SQL on the fly (like prisma).

There are projects and examples to do all three but we don't want to assume one solution is right for all domains.

We take this to the extreme...Juniper doesn't even require a web server and isn't tied to a particular serialization format! Of course, we provide optional integrations with popular web frameworks using json but the key is they are optional.

LegNeato··on Async-GraphQL: A GraphQL server framework
Juniper master has async and subscription support
LegNeato··on Ask HN: How is Facebook's iOS app 491MB?
App thinning is not the same and not nearly as effective.

Not to be rude, but you are literally talking to someone who was in charge of this, looked at the graphs daily, and made the call when we went over the OTA limit on iOS. When I say multiple-apks are a large reason for the discrepancy, you should give me the benefit of the doubt. It's not the only reason mind you.

LegNeato··on Ask HN: How is Facebook's iOS app 491MB?
Yes, Android has apk splitting ( https://developer.android.com/google/play/publishing/multipl...), which enables different packages for different devices. This means an mdpi arm6 device in India doesn't need to download and install a package with xxhdpi assets and arm7 code, leading to a smaller effective package for each user.

Also note that both platforms do delta updates but generally show the total size in the UI. So every update you aren't actually downloading that much over the wire.

Source: I used to manage the Android and iOS release engineering teams at Facebook

LegNeato··on Announcing Flutter Release Preview 1
> (I'm not aware of any cases where it's been done at this scale.)

Facebook has done it twice at this scale: PHP -> Hack, plain JS -> Flow JS.

LegNeato··on Buck – A build system developed and used by Facebook
It looks like they are starting to put together a list of who is using it:

https://buckbuild.com/about/showcase.html

LegNeato··on Buck – A build system developed and used by Facebook
A couple of quick notes:

* It also writes build output to an output directory

* It detects a tty and does the right thing, so on CI you get a linear log

* In the output directory it also includes timeline graphs that can be loaded in Chrome's devtools traceview (https://github.com/catapult-project/catapult/blob/master/tra... and in Chrome proper).

* The tracing can be viewed live https://buckbuild.com/command/server.html

(disclosure: my team created Buck when I was at FB)

LegNeato··on Buck – A build system developed and used by Facebook
I think the best people to speak to this would be the Uber folks, as I believe they still use both via okbuck (https://github.com/uber/okbuck):

https://eng.uber.com/ios-monorepo/

LegNeato··on Buck – A build system developed and used by Facebook
When Buck was created (my team created it!) there wasn't anything that supported what Facebook needed in a build tool. There still really isn't as all the Blaze work-a-likes are focusing on various different needs.

I would argue Buck actually helps to solve what you are concerned about. At Facebook, everything builds with Buck (and Google with Bazel I hear)...which means you learn it once and you know it for your Objective-C library, your Android app, your Cxx service, your python scripts, etc. It really helps to standardize on a build system, and at many companies you can only do that if it supports windows/mac/linux, it supports many languages and platforms, is fast, and is easy to pick up. Buck is all of those things.

LegNeato··on Buck – A build system developed and used by Facebook
Buck (and Bazel) both have rules to run and cache arbitrary rules/scripts as part of the build, assuming they produce one output:

https://buckbuild.com/rule/genrule.html

Some other benefits that may or may not be important:

- Use the same build system for iOS/Android/Cxx/Python/D, etc.

- Integrates with editing in IDEs.

- Encourages modularization...more modules = more cache hits = faster builds

LegNeato··on Buck – A build system developed and used by Facebook
Buck has a daemon that does it automatically. Often when you go to build it takes 0 seconds because the daemon has already done it before you get to it:

https://buckbuild.com/command/buckd.html

Note the daemon is automatically started when you `buck build`.

(disclosure: my team created Buck when I was at FB)

LegNeato··on Buck – A build system developed and used by Facebook
Buck (and Bazel) essentially do what you want and more:

- Don't use modification times and instead do intelligent hashing (see https://buckbuild.com/concept/rule_keys.html)

- Include the compiler and a bunch of other stuff in the hash. This means you can share cached artifacts safely via a http cache (https://buckbuild.com/concept/http_cache_api.html)

- Can refer to remote files (see https://buckbuild.com/rule/remote_file.html)

- Can use any script to do anything as long as it has a single consistent output (see https://buckbuild.com/rule/genrule.html)

Because their model is so much better, you get crazy fast local caching and remote shared caching of artifacts.

Please don't use make, the newer build tools are better in virtually every way.

(disclosure: my team created Buck when I was at FB)

← PreviousPage 4 of 5Next →