Commit Graph
8 Commits
Author SHA1 Message Date
BordedDev dee74d4ddb fix: remove TBB library link from borded C++ build target in Makefile
The `-ltbb` flag was removed from the `build_borded_cpp` target's g++ command
in the Makefile, eliminating the dependency on Intel Threading Building Blocks
for the borded C++ executable compilation.
2025-03-23 22:37:31 +00:00
BordedDev ae2d5a7b9d fix: swap benchmark order to measure Rust after C instead of before 2025-03-23 21:40:43 +00:00
BordedDev b3f6056e9c chore: reorder benchmark execution order and add TBB-linked main3.cpp variant
- Swapped benchmark order in bench.py to run Rust before C for consistent measurement
- Added new main3.cpp source with parallel TBB-based implementation using async I/O and CRC32
- Updated Makefile to link borded_cpp_exec against libtbb and compile from main3.cpp
- Modified CMakeLists.txt to add main3.cpp target with TBB linkage and disable -Werror
2025-03-23 21:06:48 +00:00
BordedDev 4729cb0a7a feat: add main2.cpp without struct and refactor check_word to exact match
Replace substring-based bad word detection with exact match in check_word, and create main2.cpp as a variant that removes the AnalysisResult struct entirely while preserving all other logic.
2025-03-23 02:36:29 +00:00
BordedDev 49a2136030 fix: replace std::vector with constexpr std::array for BAD_WORDS and add utf8-aware print fallback in main.cpp 2025-03-23 01:13:38 +00:00
BordedDev ed54602bf4 feat: add borded_cpp benchmark target and switch Dockerfile to gcc
Add borded_cpp_exec to .gitignore, include build_borded_cpp in Makefile all target, and extend bench.py with Borded CPP timing. Change borded_cpp Dockerfile base from alpine to gcc:latest with apt-based dependencies.
2025-03-20 22:32:24 +00:00
BordedDev 1dfc4a495d feat: add build target for borded_cpp and lower cmake minimum version to 3.25
Add a new `build_borded_cpp` make target that compiles the borded_cpp
version of isspam using C++23 with `-Ofast` optimization. Also reduce
the CMake minimum required version from 3.30 to 3.25 in the borded_cpp
CMakeLists.txt to improve compatibility with older CMake installations.
2025-03-20 22:21:33 +00:00
BordedDev 67640f034f feat: add initial C++ project structure with CMake build and spam word parser
Implement the first version of the borded spam parser as a C++26 project. The commit introduces a complete project skeleton including a `.gitignore` file for CMake and IDE artifacts, a `CMakeLists.txt` with strict warning flags and MSVC compatibility, and the core `src/main.cpp` containing the spam detection logic. The parser reads text files, tokenizes words, counts sentences and capitalized words, and flags occurrences from a predefined list of 35 forbidden spam-related terms (e.g., "crypto", "bitcoin", "recovery", "hack"). Results are aggregated via an `AnalysisResult` struct with a custom `operator+` for combining multiple file analyses.
2025-03-20 20:44:22 +00:00