Better HN
topnewbestaskshowjobs
Log inSign up

jingwen

620 karma · joined Oct 9, 2013 (13y ago) · 82 submissions

https://twitter.com/jin_

I work on the Bazel build system at Google.

Submissions

1.

New Bazel docs experience and infrastructure(bazel.build ↗)

3 points · by jingwen · 4y ago · discuss

2.

Android Platform is moving to Bazel(twitter.com ↗)

1 points · by jingwen · 6y ago · discuss

3.

BazelCon 2020: November 12-13(opensourcelive.withgoogle.com ↗)

1 points · by jingwen · 6y ago · discuss

4.

Bazel Docs Style Guide(bazel.build ↗)

1 points · by jingwen · 6y ago · discuss

5.

How Tokopedia Achieved 1000% Faster iOS Build Time(medium.com ↗)

2 points · by jingwen · 6y ago · discuss

comment 6y ago · link · parent

More here: https://docs.bazel.build/versions/master/remote-execution.ht...

comment 6y ago · link · parent

https://github.com/bazelbuild/codelabs

comment 6y ago · link · parent

The location is not hard-coded and can be configured with the --output_base flag.

comment 6y ago · link · parent

Output directories are unique by the user and source project workspace directory. Output artifacts don't clobber, even though they are all in ~/.cache.

comment 6y ago · link · parent

> The net result is a Bazel (and Blaze) that are less burdened by the baggage of legacy, but the cost is a faster treadmill to keep pace with changes.

(I work on Bazel.)

This is accurate. A few of the biggest breaking change themes are:

1) Converting functionality linked within the Bazel binary into the extensibility mechanism implemented in Starlark. An example includes converting the native Java, C++, Android, Python, Protobuf, Obj-C and packaging rules into rules_java, rules_cc, etc. Many languages now are already implemented exclusively in Starlark. See rules_scala, rules_rust, rules_go and rules_haskell.

2) Starlark and Build API cleanups that accumulated over organic growth and development within Google for the past decade.

3) New build system features to support seamless integration with other build systems and package managers.

comment 6y ago · link · parent

There are many layers of caching within Bazel (remote/local, inmemory/disk), but the central functional incremental engine is called Skyframe [1]. Almost every computation within Bazel that can be incrementally executed is managed in this engine.

[1]: https://bazel.build/designs/skyframe.html

12.

The New Hacker's Dictionary(outpost9.com ↗)

2 points · by jingwen · 7y ago · discuss

comment 7y ago · link · parent

That's right. However, there are distinct implications on how this dependency graph is constructed, analyzed, and evaluated. "Build Systems à la Carte" (Mokhov, Mitchell, Peyton Jones) [1] goes deeper into formalizing these differences.

[1] https://www.microsoft.com/en-us/research/uploads/prod/2018/0...

comment 7y ago · link · parent

Yes. 1.0 indicates the beginning of semantic versioning, which was not in place during the alpha and beta phases.

15.

Attracting Tech Talent: Start with Culture Redesign(csc.gov.sg ↗)

2 points · by jingwen · 7y ago · 1 comment

comment 7y ago · link · parent

The Bazel team published official rules for managing transitive dependencies from Maven: https://github.com/bazelbuild/rules_jvm_external

There are also community created solutions like https://github.com/johnynek/bazel-deps, and https://github.com/square/bazel_maven_repository.

Disclosure: I maintain rules_jvm_external.

comment 7y ago · link · parent

There are Bazel rules for Graal: https://github.com/andyscott/rules_graal

comment 7y ago · link · parent

Check out Bazel's remote execution feature and Google RBE (remote build execution) [1]. Bazel itself is language agnostic (language support comes in the form of rules).

(disclaimer: I'm an engineer on the Bazel team)

[1] https://docs.bazel.build/versions/master/remote-execution.ht...

19.

How to Build Good Software(csc.gov.sg ↗)

1016 points · by jingwen · 7y ago · 239 comments

comment 7y ago · link · parent

More information on how to get access to Remote Build Execution for Bazel on GCP: https://docs.bazel.build/versions/master/remote-execution.ht...

(Disclaimer: I'm a engineer on the Bazel team)

comment 7y ago · link · parent

https://buckbuild.com/function/glob.html

comment 7y ago · link · parent

(Disclaimer: Bazel engineer)

Bazel does ecosystem and language agnostic distributed builds with both GCP and self-hosted solutions.

Here's a demonstration of building the Angular project remotely: https://youtu.be/lDyIc2Abkwg?t=593

comment 7y ago · link · parent

As one South-east Asian, thank you.

comment 7y ago · link · parent

I've built an animated raytracer with an early version of this. http://raytracer.crypt.sg/

25.

The Starlark Configuration Language(github.com ↗)

2 points · by jingwen · 7y ago · discuss

26.

Dynamic scheduling for faster remote builds with Bazel(blog.bazel.build ↗)

1 points · by jingwen · 7y ago · discuss

27.

Build system insights(ruudvanasseldonk.com ↗)

1 points · by jingwen · 7y ago · discuss

comment 7y ago · link · parent

You may enjoy this article: https://ruudvanasseldonk.com/2018/09/03/build-system-insight...

comment 8y ago · link · parent

Bazel integrates well with nixpkgs and npm with rules_nixpkgs [0] and rules_nodejs [1] respectively.

Tangentially related to package manager integration: Bazel can now build with CMake in-tree [2].

[0] https://github.com/bazelbuild/rules_nixpkgs/

[1] https://github.com/bazelbuild/rules_nodejs/

[2] https://github.com/bazelbuild/rules_foreign_cc/

30.

Vision of the Bazel Build System(docs.bazel.build ↗)

2 points · by jingwen · 8y ago · discuss

123