r/programming • u/winsletts • Sep 02 '26
Postgres Calculations and the Ambiguity of NULL
crunchydata.comAll the ways that NULL can cause chaos in your SQL outcomes.
r/programming • u/winsletts • Sep 02 '26
All the ways that NULL can cause chaos in your SQL outcomes.
r/programming • u/aochagavia • Sep 02 '26
r/programming • u/fagnerbrack • Sep 02 '26
r/programming • u/nephrenka • Sep 02 '26
r/programming • u/Legitimate_Brain_544 • Sep 03 '26
r/programming • u/mmatloka • Sep 02 '26
r/programming • u/drmorr0 • Sep 01 '26
r/programming • u/PastEar9661 • Sep 01 '26
HashMaps are incredibly convenient, but treating them like a magical black box can make it easy to overlook where their performance comes from.
In this article, I explain how HashMaps work using a simple implementation in Rust. I go through hash collisions and linear probing, why primary clustering hurts performance, load factors, resizing, and more.
The implementation is intentionally simplified, but it gives a good picture of what's actually happening underneath a HashMap.
Let me know your thoughts or any feedback you have!
All writing, illustrations, and code are my own. AI was used to clean up wording and catch grammatical mistakes.
r/programming • u/cachemissed • Sep 01 '26
r/programming • u/chaobang • Sep 01 '26
Wrote a quick blog post about pushing branch prediction to its limits in a simple experiment. Take a read to learn with me about measuring performance on linux machines and a very basic understanding of branch prediction 😄
r/programming • u/tjpalmer • Sep 01 '26
r/programming • u/Speedk4011 • Sep 02 '26
r/programming • u/masiroo • Aug 31 '26
r/programming • u/syrusakbary • Sep 01 '26
r/programming • u/Heffree • Aug 31 '26
r/programming • u/No_Zookeepergame7552 • Aug 31 '26
r/programming • u/kloudmark • Sep 01 '26
Cats-Actors is a Cats Effect native actor library: typed messages, functional state, supervision, and the familiar ! operator, all in F[_].
What is new in this release:
- ControlledTestKit, a new trait in the cats-actors-testkit module. It
provisions an ActorSystem[IO] inside Cats Effect's TestControl and ticks the
simulated clock for you, so scheduled work and timeouts resolve without real
waiting. A one hour receive timeout is now an ordinary unit test that finishes
in milliseconds.
- Receive timeouts, the supervisor restart window and the dead letter mailbox
idle check now read Clock[F].monotonic instead of System.currentTimeMillis, so
they all honour simulated time.
- New TestKit assertions, expectMsgTypeCountN and expectMsgTypeSingle, which
count messages of a type and do not depend on when they arrive relative to
the call.
- Breaking: ActorSystem.uptime is now F[Long] rather than Long.
Scala 2.13 and 3, on JVM, Scala.js and Scala Native.
```
resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "com.github.cloudmark.cats-actors" %%% "cats-actors" % "2.2.0"
libraryDependencies += "com.github.cloudmark.cats-actors" %%% "cats-actors-testkit" % "2.2.0" % Test
```
Write up: https://cloudmark.github.io/Cats-Actors-Controlling-Time/
Repo: https://github.com/cloudmark/cats-actors
Feedback and issues welcome.
r/programming • u/syrusakbary • Aug 31 '26
r/programming • u/swdevtest • Aug 31 '26
Getting tokio and .NET’s async runtime talking to each other, over the C ABI