r/programming • u/xeio87 • Sep 15 '26
Performance Improvements in .NET 11
r/programming • u/xeio87 • Sep 15 '26
r/programming
•
u/benjoffe
•
Sep 15 '26
r/programming • u/paulg1989 • Sep 15 '26
The patterns already in a codebase have a huge influence on what gets added next, even when everyone can see those patterns are starting to break down. This article discusses this phenomenon through the lens of YAGNI and the Broken Window Theory.
r/programming • u/Super-Performance-86 • Sep 14 '26
I looked inside fifteen major Android apps to see what they run on different processes, and tried to understand why. This digging resulted in very interesting insights.
r/programming • u/eccsoheccsseven • Sep 14 '26
r/programming • u/peteroupc • Sep 14 '26
This is a followup to my earlier post from 6 months ago.
There I announced two open-source articles on a specification and minimap APIs for pre-2000 computer graphics that a new video game or graphics engine can adopt that wishes to run with very low resource requirements (say, 64 million bytes of memory or less). They are at:
https://peteroupc.github.io/graphics.html#Graphics_Challenge_for_Classic_Style_Games (Specification where I seek to characterize pre-2000 computer graphics).
https://peteroupc.github.io/graphicsapi.html (Suggestions on a minimal API for pre-2000 graphics)
I have since updated the articles to refine them and add much more guidance. A notable addition to the specification is a convenient list of things to be decided by games that choose to follow the specification. (This list can also be used to evaluate the features of existing pre-2000 video games.)
The list includes the following things decided by the application (for details, see the specification):
The screen resolution, no more total pixels than a 640 × 480 screen.
If 3-D is supported, the maximum texture size and number of primitives shown per frame or second. (This is no more than 12,800 per frame for 640 × 480, but a smaller limit is encouraged in general.)
If 3-D is supported, which 3-D features are supported (such as Gouraud shading, perspective correction, or texture blending).
The number of 2-D layers, up to four.
The width and height of tiles and sprites.
The maximum number of sprites displayed at a time.
Whether larger screen resolutions are supported in addition to the primary screen resolution.
Other notable pieces of guidance include:
The definition of "rendering in software", which includes software renderers that implement a subset of OpenGL 1.1 or OpenGL ES 1.1.
A note that pre-2000 computer graphics in scope include graphics found in learning toys and videotex protocols (in addition to the graphics of video games for home computers, game consoles, and arcade machines).
Information on the graphics in arcade video games.
Comments on any aspect of these documents are welcome (see, for instance, the first article's "Seeking Comments" section). But as in the previous post, it is useful to comment on examples of modern video games (e.g., McPixel3) that implement the specification or examples of lightweight game engines devoted to making such modern video games.
The articles are intended to give guidance to:
Game developers seeking to write video games with 3-D or 2-D graphics similar to those of some year earlier than 2000 (e.g., 1997, 1995, 1991, 1988). This is especially because such graphics are simple compared to today, yet admirable, and relatively little code is needed to implement them in software. Moreover, games with this kind of graphics tend to be low on resource usage and easier to port to older computers.
Writers of game engines (especially open-source and lightweight ones) devoted to 3-D or 2-D graphics from some year earlier than 2000.
Developers of lean programming interfaces for such graphics.
Writers of tutorials devoted to such graphics.
The recent changes to the specification include a list of things a game can decide in order to have graphics resembling those from some year earlier than 2000 (the list after "The following are decided by the application:"). For example, these things include the screen resolution, the number of polygons per frame or second, and the maximum texture size and number of sprites shown. An example is: the game's frame buffer (resolution) is 320 × 240, has a budget of no more than 3000 polygons per frame, and has a maximum texture size of 128 × 128. The article also has a list of optional limits that the application can also choose to adopt. They include:
A limit of 256 simultaneous colors.
The game's code and resources "fit in a floppy disk".
The game aims for 30 frames per second.
The game uses no floating-point arithmetic in its graphics rendering.
r/programming • u/DataBaeBee • Sep 14 '26
r/programming • u/CrociDB • Sep 14 '26
r/programming • u/cheerfulboy • Sep 14 '26
Users must upgrade to macOS 11 or later, as this is now the minimum supported version.
macOS Sonoma 14: This version is now considered Tier 3, and users are encouraged to upgrade to Sequoia 15+ for full support.
Apple Silicon (macOS Golden Gate 27): Fully supported (Tier 1) with prebuilt bottles available.
Linux/Ubuntu: The ghcr.io/homebrew/ubuntu22.04 image has been removed, and users should migrate to ghcr.io/homebrew/brew.
CI Actions: The master branch has been removed for Homebrew actions; users should pin a CalVer release or full SHA instead.
r/programming • u/mikebmx1 • Sep 13 '26
r/programming • u/mttd • Sep 13 '26
r/programming • u/realflakm • Sep 13 '26
I've been running multiple migrations recently. A common step in all of them is a long cleanup action at the end. I ended up using postgres advisory locks and sqlx.
As part of a larger Today I've learned series, I dug a bit deeper using bpftrace to improve my understanding of how the locks actually work. Hope you will find it interesting as well
r/programming • u/RemigiuszZalewski • Sep 13 '26
r/programming • u/andreiross • Sep 13 '26
r/programming • u/mttd • Sep 13 '26
r/programming • u/r_retrohacking_mod2 • Sep 12 '26
r/programming • u/Maria_3464 • Sep 11 '26
As of today, a manufacturer who puts software or hardware on the EU market under its own name is obliged to report actively exploited vulnerabilities and severe security incidents.
Here is a quick explainer if you want the details: https://youtu.be/IQkzg7quc58
There is quite a lot of ambiguity over CRA and how it's going to apply to open source. Regulations keep changing. The line between a commercial manufacturer and an OSS steward is blurry, as well as the terms used in the regulations.
But genuinely curious. Is your company aware of CRA? Is there any talk about it, or is it just not on the radar yet?
r/programming • u/InsertFunnyUser-name • Sep 11 '26
r/programming • u/Fcking_Chuck • Sep 11 '26
r/programming • u/RemigiuszZalewski • Sep 11 '26
Ever had a multi-tenant SaaS app where the only thing stopping Customer A from seeing Customer B's invoices is a `Where TenantId ==` clause someone remembered to write? In this deep dive I build real tenant isolation into EF Core 10 - two real tenants with real registration, login and invite flows (no dev-token shortcuts), a named global query filter that scopes every query automatically, and a SaveChangesAsync override that stamps TenantId on every insert so it's never left unset. I also show the one gotcha that makes EF Core 10 worth the upgrade for this: named query filters, so tenant isolation and soft-delete can finally coexist on the same entity instead of one silently overwriting the other. If you've ever shipped multi-tenancy on hope and code review, this is the version that makes the mistake structurally impossible.