Earlier quoted context omitted.
The quote that the GP is talking about is included below, which copy/pasted from the project page, and the Mumble mumble line is the heading for a paragraph: ‘’’Mumble mumble kernel embedded something something intrusive. It's niche. You're talking about a situation where you're not even using your language's runtime. Is that not a red flag that you're doing something strange? It's also wildly unsafe.’’’ Also, prior…
Kernel development is niche. Most of the time you don’t need linked lists.
Learn Rust with entirely too many linked lists (2019)
41–50 of 179 posts
Re: Learn Rust with entirely too many linked lists (2019)
#42Earlier quoted context omitted.
Linked lists are inherently niche on modern hardware.
Seriously? Are trees also niche?
There are still niche uses for both linked lists and trees, but the sad fact is that the relative time it takes to chase a random pointer compared to doing literally anything else keeps getting worse, and is already at the point where frequently linearly copying kilobytes of arrays is almost always faster than using a linked list.
Re: Learn Rust with entirely too many linked lists (2019)
#43Earlier quoted context omitted.
Linked lists are inherently niche on modern hardware.
Seriously? Are trees also niche?
Linked List is a special kind of List. It typically implies a non-sequential data layout.
With all of the modern layers of abstraction, non-sequential memory access typically means poor cache friendliness, i.e. poor performance.
Hopefully that helps explain why Linked Lists are considered niche, I.e. specific to embedded programming or in very special cases when benchmarks provide hard data to use a Linked List.
Re: Learn Rust with entirely too many linked lists (2019)
#44Re: Learn Rust with entirely too many linked lists (2019)
#45Earlier quoted context omitted.
Seriously? Are trees also niche?
Yes. For the vast majority of uses, you should probably use a hash table instead. There are still niche uses for both linked lists and trees, but the sad fact is that the relative time it takes to chase a random pointer compared to doing literally anything else keeps getting worse, and is already at the point where frequently linearly copying kilobytes of arrays is almost always faster than using a linked list.
Last time I looked, kobjects in Linux kernel were still dynamically linked in a bunch of ways, and tree-like data structures are widely used.
Re: Learn Rust with entirely too many linked lists (2019)
#46Re: Learn Rust with entirely too many linked lists (2019)
#47Earlier quoted context omitted.
Seriously? Are trees also niche?
Trees and Lists are types of data structures. Both are very useful in all contexts. Linked List is a special kind of List. It typically implies a non-sequential data layout. With all of the modern layers of abstraction, non-sequential memory access typically means poor cache friendliness, i.e. poor performance. Hopefully that helps explain why Linked Lists are considered niche, I.e. specific to embedded programming o…
Linked list is definitely sequential (it's a list!), and it can even be sequentially allocated in memory, depending on allocator implementation.
Re: Learn Rust with entirely too many linked lists (2019)
#48Earlier quoted context omitted.
When all you have is Rust everything starts to look like adjustable array.
What’s an adjustable array? A vector?
Re: Learn Rust with entirely too many linked lists (2019)
#49Earlier quoted context omitted.
Linked lists are inherently niche on modern hardware.
Seriously? Are trees also niche?
Re: Learn Rust with entirely too many linked lists (2019)
#50It could be unfair though: Technical writing (and that includes humorous opinionated pieces) has declined dramatically in the last 10 years.
Or perhaps writing as a whole has declined.