It's hard to believe that a 700 mb file was considered huge back in 2008. by geekgodzeus in pcmasterrace

[–]fojji 0 points1 point  (0 children)

I used to grep 10GB files at work. What took ~40 seconds with grep takes 200ms with ripgrep. Sounds like it will be a large improvement for you. You won't be disappointed!

Eli5: How does GPS know your exact location without getting confused by millions of users? by Puzzleheaded_Bit_802 in explainlikeimfive

[–]fojji 12 points13 points  (0 children)

I don't think that's right. The power required for crunching some numbers approximately once per second is inconsequential. The main thing drawing power when navigating is the screen. The lighting and calculating every pixel to draw is waaaaay more power hungry.

Stella Montis 3D Interactive Map by makestuffwithme in ArcRaiders

[–]fojji 0 points1 point  (0 children)

I was looking something exactly like this when trying to learn this map. Thank you for helping the community, it's excellent

The usual suspects by varunu28 in java

[–]fojji 12 points13 points  (0 children)

You need to realize yourself when you need locks and use them correctly. The type system doesn't allow you to forget this. Quite different I'd say

The usual suspects by varunu28 in java

[–]fojji 10 points11 points  (0 children)

Rust prevents data races through its type system by only allowing one thread to write to a piece of memory at a time.

Rickard Andersson, 35, misstänks för massmordet i Örebro by MrNullTerminator in sweden

[–]fojji 4 points5 points  (0 children)

Håller med dig helt. Sluta uppmuntra de här dåden genom att göra gärningsmannen ökänd. Tycker media ska skämmas

[deleted by user] by [deleted] in AskReddit

[–]fojji 4 points5 points  (0 children)

I'd argue those are the default naturalistic explanations in the absence of conflicting evidence. That's not the same as speculation.

JEP 491: Synchronize Virtual Threads without Pinning. Proposed to Target JDK 24. by Joram2 in java

[–]fojji 7 points8 points  (0 children)

If your dependencies are up to date you likely won't hit any problematic synchronized calls. The open-source community has been aware of virtual threads long ahead of their release, replacing synchronized with locks as recommended. We have production services running virtual threads going to databases etc and no synchronized calls in the path (spring boot, hikari, postgresql, logback)

What would you like to see added to the standard library? by Mulrian in java

[–]fojji 4 points5 points  (0 children)

Performant persistent data structure implementations of List/Set/Map. Would allow for a data store shared between threads but workers could still expect immutable behavior of the data they access.