this post was submitted on 12 Apr 2025
195 points (90.1% liked)

Technology

69247 readers
3831 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] dreugeworst@lemmy.ml 8 points 1 week ago (2 children)

why comment if you don't even want to read the article? python lists are not linked lists, they're contiguous with a smart growth strategy.

[–] sugar_in_your_tea@sh.itjust.works 3 points 1 week ago* (last edited 1 week ago)

Like in most reasonable languages. Linked lists would be a terrible implementation for a list where grabbing arbitrary indices is explicitly supported.

And even then, many linked list implementations maintain an updated size or length because checking that is a pretty common operation. So even if that is the implementation, it would still be fast because len(list) is a very common operation so they'd definitely optimize it.

[–] borokov@lemmy.world 0 points 1 week ago (1 children)

I comment because this is how a social network works, and this is how you keep lemmy alive. My comment has generated a dozen of other comments, so he achieved his goal.

There is not a single question that's already have been answered on internet, so there no point on asking anything on social plateforms except just for the sake of interacting with other peoples.

Lemmy is not stackoverflow 😉

[–] dreugeworst@lemmy.ml 2 points 1 week ago

If the point of Lemmy is just to generate as many comments as possible with everyone just assuming whatever they want about linked articles without reading them I'll quickly leave again. I'm here for informed discussion, not for a competition in generating engagement