r/programming • u/r_retrohacking_mod2 • 6h ago
r/programming • u/an_unreal • 4h ago
Baking assets into an executable in my custom programming language
lightsout.afterthought.gamesI'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 • u/NiceLiterature4328 • 15m ago
SemVal4j: What if Java's @Valid could validate meaning, not just syntax?
linkedin.comHey 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 • u/Polixa12 • 1d ago
Relaying wakeups in fair locks
kusoroadeolu.github.ioThis 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 • u/loopnote • 1h ago
LoopNote - Daily Notes App
apps.apple.comon 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 • u/CircumspectCapybara • 1d ago
A Deterministic Subexponential-time Algorithm for the Discrete Logarithm Problem
eprint.iacr.orgr/programming • u/Old-Illustrator-8692 • 1d ago
Happy Developers Build Better Products… A Message for Management!
youtube.comr/programming • u/philip_schwarz • 1d ago
The Bowling Game - From Imperative to Functional Programming - Part 1
fpilluminated.orgr/programming • u/Nuoji • 1d ago
Madrigal Games' Traction Point was rewritten in C3
madrigalgames.comr/programming • u/jacobs-tech-tavern • 2d ago
Building apps is a system design exercise
blog.jacobstechtavern.comr/programming • u/elfenpiff • 1d ago
Stop paying the network stack tax: zero-copy first, networking when needed
ekxide.ior/programming • u/CircumspectCapybara • 3d ago
A collision has been found for 38-step (a reduced round variant of) SHA-256
eprint.iacr.orgr/programming • u/fagnerbrack • 2d ago
The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library
soatok.blogr/programming • u/fagnerbrack • 2d ago
On solving the Jane Street Reverse Engineering Challenge
jestoph.comr/programming • u/BrewedDoritos • 2d ago
How I Got Postgres into a Single Binary
progrium.xyzr/programming • u/wito-dev • 1d ago
Multirepo setup - Working with multiple repositories, the easy way
wito.devr/programming • u/CircumspectCapybara • 3d ago
NFS2ROOT: a 12-year-old pre-auth remote root in the Linux kernel's NFS server
opensec.inr/programming • u/swithek • 4d ago
Schrodinger's pull requests: the 1,553 Next.js PRs with no review
oxynote.ioMy 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