GSL

Guidelines Support Library (by microsoft)

GSL Alternatives

Similar projects and alternatives to GSL

  1. CppCoreGuidelines

    The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. compiler-explorer

    218 GSL VS compiler-explorer

    Run compilers interactively from your web browser and interact with the assembly

  4. dmd

    155 GSL VS dmd

    dmd D Programming Language compiler

  5. core-js

    144 GSL VS core-js

    Standard Library

  6. ihp

    125 GSL VS ihp

    🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness

  7. cxx

    101 GSL VS cxx

    Safe interop between Rust and C++

  8. C++ Middleware Writer

    The repo contains library code to support messaging and serialization. There are also two programs in the repo that are needed to use the CMW.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. abseil-cpp

    62 GSL VS abseil-cpp

    Abseil Common Libraries (C++)

  11. winit

    51 GSL VS winit

    Window handling library in pure Rust

  12. boost

    17 GSL VS boost

    My personal boost mirror to be submoduled by my projects (by darwin)

  13. mp-units

    15 GSL VS mp-units

    The quantities and units library for C++

  14. sentry-native

    Sentry SDK for C, C++ and native applications.

  15. cppinsights

    24 GSL VS cppinsights

    C++ Insights - See your source code with the eyes of a compiler

  16. span-lite

    2 GSL VS span-lite

    span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library

  17. cpp-core-guidelines-cheatsheet

    Cheatsheet for the C++ core guidelines, including a set of tried-and-true guidelines, rules, and best practices about coding in C++.

  18. C-Python-like-Decorators

    How to write decorator functions in modern C++

  19. C-Golang-like-Defer

    Discontinued Cursed defer() method in C++ achieves similar results as Go's defer keyword.

  20. variant

    5 GSL VS variant

    C++17 `std::variant` for C++11/14/17

  21. optional

    5 GSL VS optional

    C++11/14/17 std::optional with functional-style extensions and reference support (by TartanLlama)

  22. adictgen

    Discontinued adictgen is a tool utilizing C++ to create a dictionary for use in the common dictionary attack.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better GSL alternative or higher similarity.

GSL discussion

Log in or Post with

GSL reviews and mentions

Posts with mentions or reviews of GSL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-05.
  • 21st Century C++
    3 projects | news.ycombinator.com | 5 Feb 2025
    I haven't read much from Bjarne but this is refreshingly self-aware and paints a hopeful path to standardize around "the good parts" of C++.

    As a C++ newbie I just don't understand the recommended path I'm supposed to follow, though. It seems to be a mix of "a book of guidelines" and "a package that shows you how you should be using those guidelines via implementation of their principles".

    After some digging it looks like the guidebook is the "C++ Core Guidelines":

    https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

    And that I should read it and then:

    > use parts of the standard library and add a tiny library to make use of the guidelines convenient and efficient (the Guidelines Support Library, GSL).

    Which seems to be this (at least Microsoft's implementation):

    https://github.com/microsoft/GSL

    And I'm left wondering, is this just how C++ is? Can't the language provide tooling for me to better adhere to its guidelines, bake in "blessed" features and deprecate what Bjarne calls, "the use of low-level, inefficient, and error-prone features"?

  • 60 terrible tips for a C++ developer
    1 project | /r/cpp | 27 Jun 2023
    Already showed you how to use ranges and such above, gsl::final_action is here
  • Backward compatible implementations of newer standards constructs?
    5 projects | /r/cpp_questions | 24 May 2023
    For span I would recommend the guideline support library - gsl::span
  • Hey Rustaceans! Got a question? Ask here (20/2023)!
    4 projects | /r/rust | 15 May 2023
    Not sure how things are at this point so you might want to look up with those keywords, but a few years back clang-tidy was one of the suggested tools, or enabling the core guidelines checker in visual studio if you're using that. Maybe using GSL or something similar as well.
  • Hardening C++ with Bjarne Stroustrup
    2 projects | /r/cpp | 30 Mar 2023
    When I want safety guarantees, I use the original and run-time checked gsl::span, rather than std::span. https://github.com/microsoft/GSL .
  • I love building a startup in Rust. I wouldn't pick it again.
    6 projects | /r/programming | 18 Feb 2023
    Another solution: use std::span (or some alternative implementations if the codebase doesn't use C++20).
  • C++23 “Pandemic Edition” is complete
    5 projects | news.ycombinator.com | 14 Feb 2023
    If you ask me, the GSL [1] alone is a fairly radical departure from C++ that delivers a lot of safety. I don't know if it's gotten much popularity, though. Probably because it introduces a similar disruption like you might find from a brand new programming language.

    [1] https://github.com/microsoft/GSL

  • Using Rust at a startup: A cautionary tale
    4 projects | news.ycombinator.com | 3 Dec 2022
    > With Rust, though, one needs to learn entirely new ideas — things like lifetimes, ownership, and the borrow checker. These are not familiar concepts to most people working in other common languages ... Some of those “new” ideas are, of course, present in other languages — especially functional ones.

    With C++, lifetime and ownership are just about as important but unfortunately no one's got your back. You can ignore lifetimes and ownership but you do so at your own peril. And the compiler won't tell you you're doing it wrong because the language wasn't designed for it to do so.

    If you want a taste of rust's "mindset" (with respect to limitations imposed by some types) without jumping ship to a new language, try C++'s Guidelines Support Library [1]. It introduces some of the same benefits/friction as switching to rust but without a new language. Opting-in to some of these guidelines might be a gentler way to get some of the benefits of Rust. But it comes with a similarly higher bar.

    [1] https://github.com/microsoft/GSL

  • Passing a std:: array as a function parameter
    3 projects | /r/cpp | 16 Sep 2022
  • I created a memory leak using smart pointers
    1 project | /r/cpp_questions | 27 Aug 2022
    It's also far more verbose than T* or T& (probably intentionally). If you really want a non-nullable pointer, gsl::not_null from the GSL is a good option. Writing your own version is also trivial, if you don't want to add a dependency.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 24 May 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic GSL repo stats
23
6,412
7.4
3 days ago

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that C++ is
the 7th most popular programming language
based on number of references?