Hacker News new | past | comments | ask | show | jobs | submit login

It depends on how you approach solving problems, and what the problem is.

In the contrived example, a linked list is clearly a terrible option for manipulating a sorted set of integers. Modern computers can slice and dice contiguous integers with vectorized routines, and those benefits are lost with linked lists that are storing their data haphazardly across the heap.

If your problem space is best defined with contiguously-stored numbers, then for sure, don't use linked lists. Most lisps will happily provide you with vectors and arrays for these use cases.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: