Skip to content

Conversation

sueszli
Copy link

@sueszli sueszli commented Sep 29, 2025

The new script maintains the same functionality while being more maintainable and portable.

Portability & Reproducibility:

  • Compiler options scraping script is now self-contained and reproducible across environments using uv inline dependencies.
  • Eliminated need for separate requirements.txt, README.md and project structure

Code Quality:

  • Adopted more functional programming style with reduced state mutations.
  • Fewer conditional branches and improved code locality.
  • Cleaner separation of concerns between parsing functions.

Data Source Reliability:

  • Now parses markdown directly from source files instead of SSG-generated HTML.
  • Attempts to read from local file first, falls back to remote GitHub blob.
  • More resilient to changes in website structure or deployment issues.

Files Changed:

  • Added: docs/Compiler-Hardening-Guides/get_options.py - New consolidated script
  • Removed: docs/Compiler-Hardening-Guides/compiler-options-scraper/ - Entire directory and contents

For a demo see: https://gist.github.com/sueszli/b89ed01a42bb4403d482fcfb276b6bd5

@sueszli sueszli force-pushed the main branch 2 times, most recently from 29122e5 to 9d780b5 Compare September 29, 2025 18:32
@sueszli
Copy link
Author

sueszli commented Sep 29, 2025

Update: This now includes the required Signed-off-by line that satisfies the DCO requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants