Commit Graph
4 Commits
Author SHA1 Message Date
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