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
1
vote
2 answers

How to redirect abseil logging messages to stout instead of stderr?

I am using python 3.7.6. and abseil module for logging messages with absl-py 0.9.0. I am using this piece of code for my tests. from absl import logging from absl import app def main(argv): #logging.set_stderrthreshold(logging.ERROR) …
Dr. Fabien Tarrade
  • 1,556
  • 6
  • 23
  • 49
1
vote
1 answer

Python absl logging without timestamp module name

I wanted to know if its possible to log only the msg string in absl python without timestamp and module name. Example I0108 23:40:57.153055 140614090106688 extractor.py:79] processing file: dfcsdf I0108 23:40:57.162382 140614090106688…
user6863891
1
vote
1 answer

Abseil with CMake in a library

I'm writing a library that uses CMake and trying to get Abseil linked into it following the instructions here: https://github.com/abseil/abseil-cpp/blob/master/CMake/README.md My CMakeLists.txt basically contains: add_library(MyLib SHARED…
eof
  • 153
  • 2
  • 8
1
vote
1 answer

Unspecified Cocoapod libraries installed

I have recently added one line in the Podfile to use Firebase's Dynamic Links. pod 'Firebase/DynamicLinks' However, when I used the command pod update in terminal, it installed one library unintended: Installing abseil (0.20190808) This made me…
S. Hwang
  • 71
  • 1
  • 12
1
vote
0 answers

Proper log level handling on GCP

I run some TensorFlow code on GCP instances. All logs generated are saved in StackDriver, but most of them are saved as "error" messages. { [...] labels: { [...] container.googleapis.com/stream: "stderr" } severity: "ERROR" …
AlexisBRENON
  • 2,921
  • 2
  • 18
  • 30
1
vote
0 answers

Does abseil flat_hash_map support concurrency?

Abseil is an open source C++ library maintained by Google. It is designed to be complementary to C++ std in terms of performance and/or functionality. abseil::flat_hash_map is almost the abseil counterpart of std::unordered_map. My question is: Is…
MTMD
  • 1,162
  • 2
  • 11
  • 23
0
votes
0 answers

Error when linking an application against a library using GRPC

I have an application that link against another library that uses GRPC. If I use make I can link it using pkg-config --libs protobuf grpc++ grpc and it works. But I am upgrading to cmake (in addition to vcpkg) and now when I try to link my app…
Raaka
  • 304
  • 1
  • 3
  • 15
0
votes
1 answer

I can't use protobuf on arch linux

I'm learning to use protobuf, so I tried the official example from v23.4. At the first time, I'm using the system package manager pacman to install protobuf, here's my version: sudo pacman -Q protobuf protobuf 23.4-1 sudo pacman -Q…
0
votes
0 answers

How to build abseil library with static runtime with cmake

I need to build abseil with static runtime (/MT and /MTd) rather than with the default dynamic runtime (/MD and /MDd). I build the abseil library as follows $git clone https://github.com/abseil/abseil-cpp.git $cd abseil-cpp $cmake -G "Visual Studio…
0
votes
0 answers

Disable ABSL_LOG() prints from C libraries in Python

One of the Python modules I use internally calls a C library interanlly that includes calls to ABSL_LOG(). This pollutes my stdout/err with lots of messages I don't want. I have been trying to redirect stdout/err using suggestions in this question…
Milad
  • 4,901
  • 5
  • 32
  • 43
0
votes
0 answers

abseil::flat_hash_map does it support an incomplete type in value?

I need to make a recursive type containing a map of strings and myself. If this is important, then the map itself lies inside std::variant. Can I do this with abseil::flat_hash_map? Standard containers require a full type, and therefore you have to…
Hedgeberry
  • 11
  • 3
0
votes
0 answers

How to read the map output file generated by a project using Cartographer without ROS

Currently I can successfully generate the map output file but I have no idea how to display it in practice. Basically, it should be a 2D SLAM map. The project I'm using is available at the following link on Github. This project basically uses Google…
gcantoni
  • 727
  • 6
  • 13
0
votes
0 answers

grpc compile error about abseil-cpp “I no found"

I want to compile grpc in arm linux. After downloading the github file and transfering to server, I cd grpc and make. It shows error about abseil-cpp, but when entering abseil-cpp directory and compiling, it competely ok. Every time I compile the…
Adeshen
  • 1
  • 1
0
votes
0 answers

Why does abseil automatically add the namespace "absl::lts_2020_02_25"

I built abseil with cmake, Finally I found out that abseil added a namespace "absl::lts 2020_02_25" which I didn't want, e.g. 0000000000020a2c T absl::lts_2020_02_25::StrAppend(std::__cxx11::basic_string,…
daohu527
  • 452
  • 4
  • 15
0
votes
1 answer

Implementing Factory Function with STL by Replicating Abseil Example

Trying to better understand Tip of the Week #42: Prefer Factory Functions to Initializer Methods by replicating the example using the standard template library. OP provides the example code: // foo.h class Foo { public: // Factory method: creates…
Tyler
  • 1,050
  • 2
  • 14
  • 24