Skip to content

Instantly share code, notes, and snippets.

View bmzhao's full-sized avatar

Brian Zhao bmzhao

  • Google
  • United States
View GitHub Profile
@bmzhao
bmzhao / gist:02c695048cbd591bd93d9bdfd93e4f78
Created December 4, 2019 22:04
cc_library linked_statically_by attribute Fails on Relative Label Path
➜ /tmp git clone https://github.com/bmzhao/experimental.git
Cloning into 'experimental'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10 (delta 1), reused 10 (delta 1), pack-reused 0
Receiving objects: 100% (10/10), done.
Resolving deltas: 100% (1/1), done.
@bmzhao
bmzhao / gist:311efdfd4306dca02af21b4110ae14bd
Created November 25, 2019 23:11
Bazel cc_shared_library error
➜ /tmp git clone https://github.com/bmzhao/experimental.git
Cloning into 'experimental'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (4/4), done.
Receiving objects: 100% (6/6), 767 bytes | 767.00 KiB/s, done.
remote: Total 6 (delta 0), reused 6 (delta 0), pack-reused 0
➜ /tmp cd experimental
# github issue link: https://github.com/tensorflow/tensorflow/issues/34117
-o
bazel-out/host/bin/tensorflow/cc/ops/lookup_ops_gen_cc
-Wl,-rpath,$ORIGIN/../../../_solib_local/_U_S_Stensorflow_Scc_Cops_Slookup_Uops_Ugen_Ucc___Utensorflow
-Lbazel-out/host/bin/_solib_local/_U_S_Stensorflow_Scc_Cops_Slookup_Uops_Ugen_Ucc___Utensorflow
-l:libtensorflow_framework.so.2
bazel-out/host/bin/tensorflow/cc/libcc_op_gen_main.a
bazel-out/host/bin/tensorflow/core/libop_gen_lib.a
bazel-out/host/bin/tensorflow/core/util/proto/libproto_utils.a
-Wl,-whole-archive

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real