too-many-lists VS CppCoreGuidelines

Compare too-many-lists vs CppCoreGuidelines and see what are their differences.

too-many-lists

Learn Rust by writing Entirely Too Many linked lists (by rust-unofficial)

CppCoreGuidelines

The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++ (by isocpp)
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
too-many-lists CppCoreGuidelines
220 314
3,163 42,392
1.8% 0.5%
2.6 7.5
about 1 month ago 2 months ago
Rust CSS
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

too-many-lists

Posts with mentions or reviews of too-many-lists. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-08-27.
  • MiniJinja: Learnings from Building a Template Engine in Rust
    5 projects | news.ycombinator.com | 27 Aug 2024
  • Towards memory safety with ownership checks for C
    3 projects | news.ycombinator.com | 19 Feb 2024
    You seem to have a preset opinion, and I'm not sure you are interested in re-evaluating it. So this is not written to change your mind.

    I've developed production code in C, C++, Rust, and several other languages. And while like pretty much everything, there are situations where it's not a good fit, I find that the solutions tend to be the most robust and require the least post release debugging in Rust. That's my personal experience. It's not hard data. And yes occasionally it's annoying to please the compiler, and if there were no trait constraints or borrow rules, those instances would be easier. But way more often in my experience the compiler complained because my initial solution had problems I didn't realize before. So for me, these situations have been about going from building it the way I wanted to -> compiler tells me I didn't consider an edge case -> changing the implementation and or design to account for that edge case. Also using one example, where is Rust is notoriously hard and or un-ergonomic to use, and dismissing the entire language seems premature to me. For those that insist on learning Rust by implementing a linked list there is https://rust-unofficial.github.io/too-many-lists/.

  • Command Line Rust is a great book
    4 projects | /r/rust | 8 Dec 2023
    Advent of Code was okay until I encounterd a problem that required a graph, tree or linked list to solve, where I hit a wall. Most coding exercises are similar--those requiring arrays and hashmaps and sets are okay, but complex data structures are a PITA. (There is an online course dedicated to linked lists in Rust but I couldn't grok it either). IMO you should simply skip problems that you can't solve with your current knowledge level and move on.
  • [Media] I'm comparing writing a double-linked list in C++ vs with Rust. The Rust implementation looks substantially more complex. Is this a bad example? (URL in the caption)
    6 projects | /r/rust | 7 Dec 2023
    I feel obligated to point to the original cannon literature: https://rust-unofficial.github.io/too-many-lists/
  • Need review on my `remove()` implementation for singly linked lists
    2 projects | /r/rust | 29 Nov 2023
    I started learning Rust and like how the compiler is fussy about things. My plan was to implement the data structures I knew, but I got stuck at the singly linked list's remove() method. I've read the book as well, but I have no clue how to simplify this further:
  • Factor is faster than Zig
    11 projects | news.ycombinator.com | 10 Nov 2023
    My impression from the article is that Zig provides several different hashtables and not all of them are broken in this way.

    This reminds me of Aria's comment in her Rust tutorial https://rust-unofficial.github.io/too-many-lists/ about failing to kill LinkedList. One philosophy (and the one Rust chose) for a stdlib is that this is only where things should live when they're so commonly needed that essentially everybody needs them either directly or to talk about. So, HashTable is needed by so much otherwise unrelated software that qualifies, BloomFilter, while it's real useful for some people, not so much. Aria cleaned out Rust's set of standard library containers before Rust 1.0, trying to keep only those most people would need. LinkedList isn't a good general purpose data structure, but, it was too popular and Aria was not able to remove it.

    Having multiple hash tables feels like a win (they're optimized for different purposes) but may cost too much in terms of the necessary testing to ensure they all hit the quality you want.

  • Was Rust Worth It?
    18 projects | news.ycombinator.com | 25 Oct 2023
    > Cyclic references can be dealt with runtime safety checks too - like Rc and Weak.

    Indeed. Starting out with code sprinkled with Rc, Weak, RefCell, etc is perfectly fine and performance will probably not be worse than in any other safe languages. And if you do this, Rust is pretty close to those languages in ease of use for what are otherwise complex topics in Rust.

    A good reference for different approaches is Learn Rust With Entirely Too Many Linked Lists https://rust-unofficial.github.io/too-many-lists/

  • What are some of projects to start with for a beginner in rust but experienced in programming (ex: C++, Go, python) ?
    3 projects | /r/rust | 31 May 2023
  • How to start learning a systems language
    7 projects | /r/rust | 17 May 2023
    Second, once you've finished something introductory like The Book, read Learning Rust With Entirely Too Many Linked Lists. It really helped me to understand what ownership and borrowing actually mean in practical terms. If you don't mind paying for learning materials, a lot of people recommend Programming Rust, Second Edition by Blandy, Orendorff, and Tindall as either a complement, follow-up, or alternative to The Book.
  • My team might work with Rust! But I need good article recommendations
    2 projects | /r/rust | 10 May 2023

CppCoreGuidelines

Posts with mentions or reviews of CppCoreGuidelines. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-07-05.
  • CppCoreGuidelines: Essential Rules and Best Practices for C++ Developers
    1 project | news.ycombinator.com | 15 Aug 2024
  • What to do if you don't want a default constructor?
    1 project | news.ycombinator.com | 20 Jul 2024
    The standard library types are guaranteed to be in a useful state after being moved from (the term "valid state" is used for this). Of course, that doesn't mean that your own types have to, but the C++ Core Guidelines suggest doing so [1].

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

  • I Have No Constructor, and I Must Initialize
    4 projects | news.ycombinator.com | 5 Jul 2024
    It’s in the cpp core guidelines: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines...

    std::reference_wrapper still can’t save you from yourself, but its slightly better.

  • Fixing a memory leak of xmlEntityPtr in librsvg
    1 project | news.ycombinator.com | 24 Jun 2024
    Slightly tongue in cheek answer: it is easy to write this kind of code in C++ without having C involved, hence style guides will usually have a prominent guideline specifically against this type of code[1].

    In Rust, I think you only really run into this issue when interacting with C (or otherwise engaging in unsafe code), so for normal Rust coding it doesn't need to be spelled out as a guideline. And the Rustonomicon[2], the go-to resource for unsafe Rust, isn't really written as a set of guidelines. At least from a brief search, I found it harder to find a Rust page that specifically says "don't do this".

    1: E.g. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines..., the first guideline in the "resource management" section.

    2: https://doc.rust-lang.org/nomicon/intro.html

  • Zig vs. Rust at work: the choice we made
    4 projects | news.ycombinator.com | 20 Jun 2024
    > You are actually just arguing for the sake of arguing here.

    I'm very much not doing that.

    I'm really tired of reading claims that "C++ is actually safe if you follow these very very simple rules", and then the "simple rules" are either terrible for performance, not actually leading to memory safe code (often by ignoring facts of life like the practices of the standard libraries, iterator and reference invalidation, or the existence of multithreaded programming), or impossible to reliably follow in an actual codebase. Often all three of these, too.

    I mean the most complete version of "just follow rules" is embodied by the C++ core guidelines[1], a 20k lines document of about 116k words, so I think we can drop the "very very simple" qualifier at this point. Many of these rules among the more important are not currently machine-enforceable, like for instance the rules around thread safety.

    Meanwhile, the rules for Rust are:

    1. Don't use `unsafe`

    2. there is no rule #2

    *That* is a very very simple rule. If you don't use unsafe, any memory safety issue you would have is not your responsibility, it is the compiler's or your dependency's. It is a radical departure from C++'s "blame the users" stance.

    That stance is imposed by the fact that C++ simply doesn't have the tools, at the language level, to provide memory safety. It lacks:

    - a borrow checker

    - lifetime annotations

    - Mutable XOR shared semantics

    - the `Send`/`Sync` markers for thread-safety.

    Barring the addition of each one of these ingredients, we're not going to see zero-overhead, parallel, memory-safe C++. Adding these is pretty much as big of a change to existing code as switching to Rust, at this point.

    > Use the abstractions within the rules and you won't get issues, use compiler flags and analyzers on CI and you don't even need to remember the rules.

    I want to see the abstractions, compiler flags and analyzers that will *reliably* find:

    - use-after-free issues

    - rarely occurring data races in multithreaded code

    Use C++ if you want to, but please don't pretend that it is memory safe if following a set of simple rules. That is plain incorrect.

    [1]: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

  • C++ Core Guidelines
    3 projects | news.ycombinator.com | 26 May 2024
    1 project | news.ycombinator.com | 13 Dec 2023
  • Are We Modules Yet?
    3 projects | news.ycombinator.com | 1 May 2024
    If you aren't aware of the c++ core guidelines[1] - it should be on your radar.

    Also, it might not be a popular opinion, but I think Bjarne's books are just fine.

    A Tour of C++ (3rd edition) [2]

    Principles and Practice Using C++ (3rd Edition) was just published in april 2023 [3]

    [1] https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...

  • Learn Modern C++
    6 projects | news.ycombinator.com | 26 Dec 2023
  • Modern C++ Programming Course
    5 projects | news.ycombinator.com | 28 Nov 2023
    You need to talk to Bjarne and Herb...

    "C++ Core Guidelines" - https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

What are some alternatives?

When comparing too-many-lists and CppCoreGuidelines you can also consider the following projects:

rust - Empowering everyone to build reliable and efficient software.

Crafting Interpreters - Repository for the book "Crafting Interpreters"

Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!

git-internals-pdf - PDF on Git Internals

book - The Rust Programming Language

github-cheat-sheet - A list of cool features of Git and GitHub.

x11rb - X11 bindings for the rust programming language, similar to xcb being the X11 C bindings

Power-Fx - Power Fx low-code programming language

easy_rust - Rust explained using easy English

LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com

patterns - A catalogue of Rust design patterns, anti-patterns and idioms

dmd - dmd D Programming Language compiler

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured