r/programming 2h ago

How to secure SSH and Postgres with Warpgate

Thumbnail packagemain.tech
1 Upvotes

r/programming 7h ago

Understanding RabbitMQ in Simple Terms

Thumbnail sushantdhiman.dev
4 Upvotes

r/programming 7h ago

The G7 tells industry to hurry up and prep for post-quantum encryption

Thumbnail cyberscoop.com
0 Upvotes

r/programming 12h ago

Linked Lists in the Linux kernel

Thumbnail 0xax.dev
81 Upvotes

r/programming 12h ago

Performance Characterization of SPEC CPU 2026 on AMD EPYC 9755 Processor

Thumbnail arxiv.org
5 Upvotes

r/programming 13h ago

new InetSocketAddress(host, port) resolves DNS once. Kubernetes headless services hate that

Thumbnail gist.github.com
0 Upvotes

r/programming 15h ago

[PDF] Lost Bytes At The Crossroads Between User- And Kernel-Level Memory Allocation

Thumbnail ibr.cs.tu-bs.de
5 Upvotes

r/programming 16h ago

Ok, but does it scale?

Thumbnail spacetimedb.com
0 Upvotes

r/programming 18h ago

Zig's Io.Threaded is Neat

Thumbnail matklad.github.io
12 Upvotes

r/programming 21h ago

Maybe you don't need GraphQL

Thumbnail alexandrehtrb.github.io
208 Upvotes

r/programming 22h ago

Virtual Memory: Page Tables, TLBs, and Linux Internals

Thumbnail blog.codingconfessions.com
44 Upvotes

r/programming 1d ago

Branch‑Avoidant Programming

Thumbnail easylang.online
232 Upvotes

r/programming 1d ago

Squeezing Performance out of eBPF

Thumbnail bitbison.io
20 Upvotes

r/programming 1d ago

CTTI is Exponential, RTTI is Linear

Thumbnail gingerbill.org
81 Upvotes

r/programming 1d ago

Let's build a compressor from scratch

Thumbnail ochagavia.nl
49 Upvotes

r/programming 1d ago

Yet Another Sentence Boundary Detector (python, rule-based)

Thumbnail hashnode.com
0 Upvotes

r/programming 1d ago

Postgres Calculations and the Ambiguity of NULL

Thumbnail crunchydata.com
107 Upvotes

All the ways that NULL can cause chaos in your SQL outcomes.


r/programming 1d ago

Injections done the right way!

Thumbnail youtu.be
1 Upvotes

r/programming 1d ago

This Fence Has No Farmer

Thumbnail adamgreenough.net
63 Upvotes

r/programming 1d ago

Data Access Patterns That Makes Your CPU Really Angry

Thumbnail blog.weineng.me
67 Upvotes

r/programming 1d ago

Apache Kafka vs Apache Iggy: A Technical Comparison

Thumbnail softwaremill.com
19 Upvotes

r/programming 2d ago

Beyond Lambdas: Raising the Abstraction Level of Functional Code

Thumbnail adamtornhill.substack.com
125 Upvotes

r/programming 2d ago

We are building an idiomatic RESTful API in Go 1.27

Thumbnail learning-cloud-native-go.github.io
0 Upvotes

100% Human Authored - Both Code/Doc

In this series,

We build a production-ready containerized RESTful API server application using following packages and tools.

  1. Go Standard Library net/http: The most idiomatic way to write web API applications in Go.
  2. Chi: The most idiomatic router with middleware and route groups support.
  3. Zerolog: Zero Allocation JSON Logger and Faster than slog.
  4. Goose: The database migration CLI builder library with lease dependency.
  5. Gorm CLI: Generate Go generics-based, type safe, repository functions with no runtime wrappers.
  6. Swag and Validator v10: The most prominent OpenAPI specification generator and validation library in Go.

Codebase: https://github.com/learning-cloud-native-go/myapp (1000+ GitHub stars- Since 2019) \ Doc: https://learning-cloud-native-go.github.io/docs/building-a-containerized-restful-api/

If anybody wanna check Rust implementation: https://learning-rust.github.io/labs/building-a-containerized-restful-api/


r/programming 2d ago

Cats-Actors 2.2.0 is released

Thumbnail cloudmark.github.io
0 Upvotes

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 2d ago

How Do HashMaps Work Under the Hood? (putting together a toy implementation in Rust to understand performance optimization, collisions, and time complexities)

Thumbnail medium.com
55 Upvotes

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.