Questions tagged [abseil]

Abseil is an open-source utility library available for the Python and C++ languages, maintained and released by Google. The code comes from Google's own code base and existing projects. When using this tag, also include a tag indicating the language in which you are using Abseil utilities (Python or C++).

Abseil's C++ libraries are culled from utilities in Google's internal codebase. Abseil's Python libraries replace the no-longer-maintained google-apputils Python module, which contained useful Python utilities.

Links

  • Github repo for Abseil Common Libraries in C++: abseil-cpp
  • Github repo for Abseil Common Libraries in Python: abseil-py
  • Github organization for Abseil: abseil

The documentation will eventually be at abseil.io but there is currently no documentation available.

59 questions
9
votes
1 answer

Using Abseil vs. Directly calling main()?

I've been using the vanilla def main(): # Do stuff if __name__ == '__main__': main() but recently saw people doing from absl import app def main(_): # Do things if __name__ == '__main__': app.run(main) Abseil provides…
Sibbs Gambling
  • 19,274
  • 42
  • 103
  • 174
7
votes
1 answer

Why can't linker find absl references?

Why can't linker find absl references? Configuration: Raspberry Pi 4 Model B (AArch64) | Ubuntu Server 20.04 | Clang++ (llvm 13.0.0) | GRPC v1.41.1 (libprotoc 3.17.3) Installed GRPC with these options: cmake -DgRPC_INSTALL=ON…
x84a01
  • 71
  • 1
  • 3
7
votes
7 answers

swift Firestore 'absl/numeric/int128_have_intrinsic.inc' file not found

I just recently installed an extension to Firebase called Trigger Email which uses a Cloud Firestore Collection. I was trying to Firestore to my iOS project to use it, and got the following error: 'absl/numeric/int128_have_intrinsic.inc' file not…
5
votes
1 answer

'Chrono' file not found issue - iOS

I have few Firebase libraries integrated into my ongoing iOS project and recently I got a 'chrono file not found' error as you can see below: I am stuck with this for past 2 days. I went through several forums & SO as usual (like this,and…
Mumthezir VP
  • 6,251
  • 6
  • 28
  • 57
5
votes
2 answers

What is pointer stability?

The second paragraph in this link on Abseil containers says: For example, the Abseil containers often do not guarantee pointer stability after insertions or deletions. What does pointer stability mean in this context?
np20
  • 1,935
  • 3
  • 16
  • 24
5
votes
1 answer

Surprising Benchmark Result

After watching Titus Winters' "Live at Head" talk, where he mentions that StrCat() is one of people's favorite features, I decided to try and implement something similar to see if I could beat std::string::append (or operator+, which I figured uses…
AUD_FOR_IUV
  • 473
  • 1
  • 3
  • 16
4
votes
1 answer

What's the idiomatic way of performing conversions from python gflags to yaml and back?

I'm using absl-py's python gflags for my project. They're a convenient way of specifying configurations, but I frequently like to run the same configuration, and saving command line invocations is not preferable because they are hard to read and…
VF1
  • 1,594
  • 2
  • 11
  • 31
4
votes
1 answer

How to allow angle "<>" brackets when including a Bazel header?

My project is transitioning to Bazel from CMake and I am including a snapshot of Abseil by checking it into a third_party/ top-level directory within our repository. I need to support both build systems during the transition, so I created…
Sydius
  • 13,567
  • 17
  • 59
  • 76
3
votes
0 answers

A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 26201 (mediapipe_gl_ru), pid 26095 (apps.faceeffect)

This is the two related method: absl::Status Open(CalculatorContext* cc) override { ... return gpu_helper_.RunInGlContext([&]() -> absl::Status { const auto& options =…
di wing
  • 91
  • 5
3
votes
0 answers

How to redirect abseil logging messages to stackdriver using google.cloud.logging without having duplicate with wrong "label"?

I am using AI Platform training to run ML training job using python 3.7.6. I am using the abseil module for logging messages with absl-py 0.9.0. I look at the instruction on how to direct python logging messages to stackdriver configuration medium…
2
votes
0 answers

How do I properly link the Google Protocol Buffers library with my application at compilation?

I am following the tutorial listed here on Protobuf's website. I copied the sample addressbook.proto and compiled it using the line protoc --cpp_out=. addressbook.proto Which produced addressbook.pb.cc and addressbook.pb.h. Here is my program,…
Hunter
  • 21
  • 1
2
votes
1 answer

Why can gdb not find element access functions in `absl::flat_hash_map`?

Problem I'm trying to debug a program that uses absl::flat_hash_map. However, gdb doesn't find operator[] or .find() for some reason. Why doesn't it find these methods? Is there some workaround? I tested with -O0 -ggdb and > gdb --version GNU gdb…
sirain
  • 918
  • 10
  • 19
2
votes
2 answers

c++: Is it valid to subtract an iterator from an element pointer to get a valid index?

I came across the following code: for (int i = 0; i < subspan.size(); i++) { ... int size = size_table[&(subspan[i]) - fullspan.begin()]; ... } subspanand fullspan are both of type std::span (actually absl::Span from Google's Abseil library,…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
2
votes
2 answers

Clarification regarding abseil library flags

There is a statement in the abseil documentation that is as follows: When one Python module imports another, it gains access to the other’s flags. (This behavior is implemented by having all modules share a common, global registry object containing…
2
votes
0 answers

Build Release version of abseil-cpp static binary libs under Windows

I am using abseil-cpp in my C++ project built under Visual Studio 2019 / Windows 10. Using CMake (not Visual Studio built-in makefile support) and following the static binaries instructions I have built a set of libraries and header files which I…
Ian Ash
  • 1,087
  • 11
  • 23
1
2 3 4