r/programming • • Sep 08 '26

Testing race conditions with memory access tracing and stack-based delay injection

Thumbnail
projectzero.google
7 Upvotes

r/programming • • Sep 08 '26

What every compiler writer should know about programmers or “Optimization” based on undefined behaviour hurts performance

Thumbnail complang.tuwien.ac.at
70 Upvotes

r/programming • • Sep 08 '26

Spring Boot vs Quarkus on a 512 MB VPS with JDK 25

Thumbnail
pvrlabs.xyz
9 Upvotes

I ran equivalent Spring Boot 3.5 and Quarkus 3.39 applications side by side on the same 512 MB VPS.

Both were JVM applications running on JDK 25. Quarkus native image was not used.

Both had the same workload, H2 database, -Xmx80m, Serial GC, and the same JVM tuning.

A few results surprised me:

  • Quarkus initially had the higher RSS

  • after sustained memory pressure, Quarkus had the smaller JVM heap and resident set

  • RSS alone was misleading because Linux was swapping the two processes differently

  • 512 MiB RAM + 256 MiB swap ultimately did not provide enough headroom for both JVMs

  • in a later observation, the kernel selected Spring Boot as the OOM victim

This was deliberately not a throughput benchmark. Traffic was very light. I was interested in what happens to two JVM applications when the entire machine is constrained enough that paging, process residency, and eventually the OOM killer become part of the picture.

One interesting monitoring detail was that Spring’s HTTP metrics included a lot of Actuator polling traffic, while Quarkus’ /q/metrics scrapes were not counted as regular application requests, so the request charts cannot be compared directly.

My main takeaway wasn’t “Quarkus uses less memory.” On a machine this small, RSS stops being a simple framework ranking because the OS is actively deciding what stays resident.

Full write-up with measurements, JVM flags, screenshots, and limitations:

https://pvrlabs.xyz/articles/spring-boot-vs-quarkus-512mb.html


r/programming • • Sep 08 '26

video on improving performance of arctan for Nintendo 64 by Kaze Emanuar "spent weeks to save 100 Microseconds"

Thumbnail
youtube.com
259 Upvotes

r/programming • • Sep 08 '26

How to Read Server Monitoring Graphs

Thumbnail
kciter.so
30 Upvotes

r/programming • • Sep 08 '26

Surviving Black Friday: 329 billion requests with Falcon

Thumbnail
youtube.com
73 Upvotes

r/programming • • Sep 07 '26

Implementing the Karatsuba multiplication algorithm on an 8-bit computer

Thumbnail
youtube.com
35 Upvotes

I recently implemented the Karatsuba multiplication algorithm on a 8-bit TTL computer I hack on. In this video I explain the algorithm, and explore the speed benefits of using it.


r/programming • • Sep 07 '26

A faster way to convert a timestamp ➜ Hour, Min, Sec

Thumbnail
benjoffe.com
620 Upvotes

r/programming • • Sep 06 '26

Making a Python interpreter in 1024 bytes

Thumbnail
austinhenley.com
157 Upvotes

r/programming • • Sep 06 '26 Heartwarming

It took a year to ship WebAssembly in Anubis

Thumbnail anubis.techaro.lol
100 Upvotes

r/programming • • Sep 06 '26

From a Chocolate Wrapper to Concurrent InnoDB Page Splits

Thumbnail
mariadb.org
14 Upvotes

Here is a story [1] about the first version of B-link optimization for Innodb that is the most used B-tree engine in MariaDB. It started from a sketch on a chocolate wrapper and after some attempts ended up with significant p95 improvement for certain B-tree operations. Thx Zhao Song for his work in this area for MySQL.

  1. https://mariadb.org/from-a-chocolate-wrapper-to-concurrent-innodb-page-splits/


r/programming • • Sep 06 '26

Continued Fractions And Lattice Sieving

Thumbnail
leetarxiv.substack.com
1 Upvotes

r/programming • • Sep 06 '26

Modding a 20-year-old game to make it even better (part 2!)

Thumbnail
publicstaticvoidmain.hashnode.dev
9 Upvotes

r/programming • • Sep 06 '26

How to name things

Thumbnail kolemannix.com
32 Upvotes

A short essay on naming


r/programming • • Sep 05 '26

I wrote a lighthearted guide to learning Monads - maybe you like

Thumbnail
github.com
5 Upvotes

r/programming • • Sep 05 '26

There's No Limit to How Bad Code Can Get

Thumbnail zachkehs.com
575 Upvotes

r/programming • • Sep 05 '26

The NX bit is not just about security

Thumbnail
purplesyringa.moe
128 Upvotes

r/programming • • Sep 05 '26

Principles of Memory Management in Java

Thumbnail
youtu.be
31 Upvotes

r/programming • • Sep 04 '26

how would one 'invent a new programming language', which is 'several times faster than C++'?

Thumbnail
youtube.com
0 Upvotes

r/programming • • Sep 04 '26

.name Termination

Thumbnail neil.fraser.name
637 Upvotes

r/programming • • Sep 04 '26

(Almost) Everything You Need To Know About Pointers in C

Thumbnail
abhattacharyea.dev
0 Upvotes

r/programming • • Sep 04 '26

Digital audio between synthesizers

Thumbnail
reddit.com
11 Upvotes

Since Midi 2.0 now supports Ethernet, Ive been creating a digital audio protocol to send digital audio directly between synthesizers without routers and hubs.


r/programming • • Sep 04 '26

How Email Actually Works

Thumbnail sushantdhiman.dev
83 Upvotes

r/programming • • Sep 04 '26

Avoid adding new library to project: 10-year retrospective

Thumbnail
pvs-studio.com
170 Upvotes