Mercurial
view README.md @ 33:c0f6c8c7829f
[Seobeo] Linux epoll. Set the client socket to be nonblocking so that it doesn't stop loading when two different threads handle different client calls. I might have problem with socket not being cleaned up properly so need to check that.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 10 Oct 2025 06:59:32 -0700 |
| parents | 947b81010aba |
| children | 043018c0f2f8 |
line wrap: on
line source
# Zenbu This is a mono repo where I will share all my codes and utilize them using bazel. I decied to do this since I re-use codes often and I don't want to deal with making make and cmake every time and this eliminates the problem that exists within C or C++ where using library is harder as we need to add gzillian stuff into it lmao. ## Install I decide to use mercurial because I got used to this over git and I frankly don't need different branches for each feature to be merged in. I also decied to use the bazel for code sharing as I mentioned above. ``` # linux wget https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64 # Hope it still works lmao chmod +x bazelisk-linux-amd64 sudo mv bazelisk-linux-amd64 /usr/local/bin/bazel bazel version # mac brew install bazel ``` I might move these binary into the repo so that it has full history of it I assume mercurial is installed as well. ## Debugging Command ```bash bazel build target -c dbg i.e) bazel build //mrjunejune:mrjunejune_server -c dbg ``` And run whatever your favoriate debugging tools ```bash bazel run //dowa:dowa_test --run_under="valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes" ``` ## This is for memory leak cheak in MacOS brew install valgrind # or use the unofficial ARM build: arch -x86_64 brew install valgrind arch -x86_64 valgrind ./test