4 ms·
What is the "//base" mentioned here? It's kinda hard to google... "//base is already getting into shape for spatial memory safety"
by mkj 6y ago
What is the "//base" mentioned here? It's kinda hard to google...
"//base is already getting into shape for spatial memory safety"
- tambre 6y agoChromium's base library. Includes basic utilities useful across the codebase, e.g. hash maps, containers, pointer wrappers, logging, metaprogramming utilities, etc.
- maccam94 6y agoChromium uses a build tool called bazel. //base is a bazel path, where // is the root of a workspace (which is usually a version controlled repository). Thus it is referring to https://chromium.googlesource.com/chromium/src/+/refs/heads/master/base/ https://chromium.googlesource.com/chromium/src/+/refs/heads/...
- onekorg 6y agoChromium actually uses GN, not bazel. https://docs.google.com/presentation/d/15Zwb53JcncHfEwHpnG_PoIbbzQ3GQi_cpujYwbpcbZo/edit?usp=drivesdk https://docs.google.com/presentation/d/15Zwb53JcncHfEwHpnG_P...
- maccam94 6y agoOh interesting, TIL. The syntax looked similar and it's a Google project, so I assumed gn was just some BUILD file generator on top.
- esprehn 6y agoInside Google there's a C++ library of many common utilities called "base". The base in Chromium is an ancient fork of it that's evolved within the Chromium codebase over many years. Abseil is another descendant of the Google internal base library. WTF (Web Template Framework) is the similar library from WebKit, that also exists in Blink, though the two are quite different these days.