this post was submitted on 11 Feb 2025
290 points (95.6% liked)

Technology

62073 readers
5847 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 content.
  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, to ask if your bot can be added please contact us.
  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
[–] [email protected] 60 points 1 day ago (27 children)

This is incredible, but why does the article end by stating that this might not have any immediate applications? Shouldn’t this immediately result in more efficient hash tables in everyday programming languages?

[–] [email protected] 0 points 1 day ago* (last edited 1 day ago) (15 children)

I don't think the speed of hash tables is a problem in most applications except benchmarks.

[–] [email protected] 19 points 23 hours ago (6 children)

Hash tables are often used behind the scenes. dicts and sets in python both utilize hash tables internally, for example.

[–] [email protected] -1 points 21 hours ago* (last edited 21 hours ago) (2 children)

I've only used java but java hash tables are stupid fast in my experience, like everything else in my crap programs was 1000 times slower than the hash table access or storage.

Just reading the title, it's talking about searching hash tables, which wasn't something I was specifically doing.

[–] [email protected] 4 points 19 hours ago (1 children)

Sorry to be blunt, but you don't know what you're talking about.

[–] [email protected] 0 points 11 hours ago (1 children)

How much do you think this speeds up an average program? Enlighten us with your knowledge.

[–] [email protected] 2 points 11 hours ago* (last edited 11 hours ago)

I wrote my comment not to antagonize you but to point out that you're asking the wrong questions. I failed to articulate that, and I'm sorry for being harsh.

Your prior comment indicated that you have used hash tables in Java, which were very fast. You said that your program accessed the hash tables, but did not "search" the table. These operations are the same thing, which led me to believe you're out of your depth.

This last comment asks me how much this paper's contribution speeds up an average program. You're asking the wrong question, and you seem to be implying the work was useless if it doesn't have an immediate practical impact. This is a theoretical breakthrough far over my head. I scanned the paper, but I'm unsurprised they haven't quantified the real-world impact yet. It's entirely possible that despite finding an asymptotic improvement, the constant factors (elided by the big O analysis) are so large as to be impractical... or maybe not! I think we need to stay tuned.

Again, sorry for being blunt. We all have to start somewhere. My advice is to be mindful of where the edge of your expertise lies and try to err on the side of not devaluing others' work.

[–] [email protected] 1 points 16 hours ago (1 children)

If you use a hash table, you search every time you retrieve an object.

If you didn’t retrieve, why would you be storing the data in the first place?

[–] [email protected] 1 points 11 hours ago

I know that, but phrased that way it sort of sounds like they're iterating over the entire thing.

load more comments (3 replies)
load more comments (11 replies)
load more comments (22 replies)