Replies: 5 comments 3 replies
-
Thanks for the suggestions but the linux version of btop is about 80% complete. The only non STL includes currently are
|
Beta Was this translation helpful? Give feedback.
-
I should note that FMT is part of the C++ 20 standard/implementation. It just is available for use in older C++ versions being provided as separate library and can't emphasize enough that it ought to be used by any C++ project. I mentioned string operations but it offers much more than that. Also nice find for the hashing perf boost library. Being of MIT license will help decent bit too. |
Beta Was this translation helpful? Give feedback.
-
@WSLUser So I'm using regular |
Beta Was this translation helpful? Give feedback.
-
https://github.com/hamon-in/cpslib In Psutil's GitHub repository it was mentioned that this is Psutil's to C porting attempt.
|
Beta Was this translation helpful? Give feedback.
-
In decoupled C library, without python #1247, psutil's author recommended sigar. |
Beta Was this translation helpful? Give feedback.
-
Your README states provide some suggestions for C++ and I have a few libraries I'd suggest you check out:
1st: I'd suggest making use of CLI11 for your argument parser: https://github.com/CLIUtils/CLI11.
2nd: Secondly, if you need to use any math (which I think would likely be needed to retrieve certain information), then use the safe math library Chromium math: https://github.com/chromium/chromium/tree/master/base/numerics
3rd: Make use of https://github.com/pinam45/dynamic_bitset and it's optional dependency: https://github.com/kimwalisch/libpopcnt
4th: Make use of https://github.com/fmtlib/fmt. You'll be passing alot of strings around so this library makes alot of sense to use from a performance and safety perspective as well as offering similar syntax to python for string formatting though you might be able to get other benefits from this library as well.
Lastly: Make use of https://github.com/microsoft/GSL for the parts that make sense to use.
Beta Was this translation helpful? Give feedback.
All reactions