r/programming • • 6h ago

Making 3D engine for original Game Boy (not Color) technical details

Thumbnail reddit.com
37 Upvotes

r/programming • • 2h ago

CoW B+ Trees are Fun

Thumbnail nubskr.com
17 Upvotes

r/programming • • 4h ago

Baking assets into an executable in my custom programming language

Thumbnail lightsout.afterthought.games
5 Upvotes

I've been developing my own low-budget version of the Jai programming language for a few years now. My game Lights Out is written using that compiler. Most of the assets for that game are baked into the executable for release builds.

The language supports running arbitrary code at compile time. This code can also load files from disk and process them. The return value from these functions that are executed at compile time are normal values, meaning you can assign them to variables (as they are treated as literals by the language).

This means you can share the code for loading assets at run-time in developer builds (e.g. for hot-loading) and baking assets into the executable at compile-time!


r/programming • • 15m ago

SemVal4j: What if Java's @Valid could validate meaning, not just syntax?

Thumbnail linkedin.com
0 Upvotes

Hey Java developers!

I've been experimenting with an idea: why should Java validation stop at syntax and structure?

"@NotNull", "@Email" and "@Size" are great, but what if we want to validate whether:

  • A product review is consistent with its rating.
  • A description actually matches its category.
  • A customer request contains contradictory information.

That's why I built SemVal4j, an open-source Java library that extends Jakarta Bean Validation with probabilistic semantic rules powered by Jev Decision Models.

u/SemanticValid({ u/SemanticRule( id = "rating-consistency", question = "Is the review consistent with its rating?", property = "comment", passAt = 0.85, failBelow = 0.20 ) }) public record ProductReview( u/Min(1) u/Max(5) int rating, u/NotBlank String comment ) {}

You can keep using standard "@Valid".

Key features:

  • Native Jakarta Bean Validation integration.
  • Spring Boot starter.
  • One provider call per validated object.
  • Explicit VALID / UNCERTAIN / INVALID outcomes.
  • LangChain4j integration.
  • Deterministic offline testing.
  • Apache 2.0 license.

The goal isn't to replace deterministic validation, but to complement it when traditional constraints aren't enough.

I'm particularly interested in your thoughts on latency, reliability, and where semantic validation belongs in a Java architecture.

Would you use this in a real-world application?

GitHub: https://github.com/mohamedikbel/semval4j

Maven Central: https://central.sonatype.com/artifact/io.github.mohamedikbel/semval4j-spring-boot-starter

Feedback and contributions are welcome!


r/programming • • 1d ago

Relaying wakeups in fair locks

Thumbnail kusoroadeolu.github.io
61 Upvotes

This was pretty fun for me to write up on. Would love to hear y'all's thoughts on scheduling bottlenecks in fair locks.


r/programming • • 1h ago

‎LoopNote - Daily Notes App

Thumbnail apps.apple.com
0 Upvotes

on the app store, my mobile app loopnote can be very simple. You link notes of what you have to finish today or tomorrow nonstop. i also believe in it. and its just a small fee you have to pay like $1.99 usd per month. simple note app good for when you want to do something. Its a app you can use everyday, also i liked it.


r/programming • • 1d ago

A Deterministic Subexponential-time Algorithm for the Discrete Logarithm Problem

Thumbnail eprint.iacr.org
173 Upvotes

r/programming • • 1d ago

Happy Developers Build Better Products… A Message for Management!

Thumbnail youtube.com
143 Upvotes

r/programming • • 1d ago

The Bowling Game - From Imperative to Functional Programming - Part 1

Thumbnail fpilluminated.org
5 Upvotes

r/programming • • 1d ago

Madrigal Games' Traction Point was rewritten in C3

Thumbnail madrigalgames.com
31 Upvotes

r/programming • • 2d ago

Building apps is a system design exercise

Thumbnail blog.jacobstechtavern.com
41 Upvotes

r/programming • • 1d ago

Stop paying the network stack tax: zero-copy first, networking when needed

Thumbnail ekxide.io
0 Upvotes

r/programming • • 3d ago

A collision has been found for 38-step (a reduced round variant of) SHA-256

Thumbnail eprint.iacr.org
764 Upvotes

r/programming • • 1d ago

Who cares about the new C++ standard?

Thumbnail a4z.noexcept.dev
0 Upvotes

r/programming • • 2d ago

A Video on How 3D Rendering Actually Works

Thumbnail youtu.be
23 Upvotes

r/programming • • 2d ago

The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library

Thumbnail soatok.blog
54 Upvotes

r/programming • • 3d ago

Call Things What They Are

Thumbnail saturnci.com
142 Upvotes

r/programming • • 2d ago

On solving the Jane Street Reverse Engineering Challenge

Thumbnail jestoph.com
26 Upvotes

r/programming • • 2d ago

How I Got Postgres into a Single Binary

Thumbnail progrium.xyz
38 Upvotes

r/programming • • 1d ago

Multirepo setup - Working with multiple repositories, the easy way

Thumbnail wito.dev
0 Upvotes

r/programming • • 3d ago

Quarkus 4.0 released!

Thumbnail quarkus.io
17 Upvotes

r/programming • • 3d ago

NFS2ROOT: a 12-year-old pre-auth remote root in the Linux kernel's NFS server

Thumbnail opensec.in
216 Upvotes

r/programming • • 4d ago

Command-line JSON filtering at 20 GB/s

Thumbnail lemire.me
175 Upvotes

r/programming • • 4d ago

Schrodinger's pull requests: the 1,553 Next.js PRs with no review

Thumbnail oxynote.io
297 Upvotes

My goal at the beginning was to write a short list of projects that are good for a first contribution, because I have a few friends who want to get into the open source world and are looking for resources like this. However, most guides I found recommend Next.js, React, Kubernetes or other similarly popular and complex projects and I wasn't sure that was good advice, so I got sidetracked and counted how PRs are treated there. The headline example is that Next.js has 1,553 open PRs that nobody has reviewed in over a month (I have added the queries and scripts I used to count them at the end of the article).

If you're interested about my actual list, you can still find it in the article (in the second half of it): I picked six projects in rust, go, java and python that are less popular than Next.js but review PRs from first-time contributors fairly quickly. I counted their PRs/issues as well and added the stats to each entry