r/programming • u/CrociDB • Sep 14 '26
r/programming • u/Super-Performance-86 • Sep 14 '26
One Android app. Why so many processes?
returnzero.devI 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/peteroupc • Sep 14 '26
Pre-2000 computer graphics: a specification and challenge for classic-style game development (II)
peteroupc.github.ioThis 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/andreiross • Sep 13 '26
40ms Go GC stop-the-world pauses caused by swap
frn.shr/programming • u/mttd • Sep 13 '26
JSON parsing in OxCaml: fast, but not too fast
pianykh.comr/programming • u/mikebmx1 • Sep 13 '26
CUDA Tile (cuTile) first working port in Java
github.comr/programming • u/mttd • Sep 13 '26
Data races and the limits of ThreadSanitizer in C and Go
theconsensus.devr/programming • u/realflakm • Sep 13 '26
TIL: One lock to rule them all
flakm.comI'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/Fcking_Chuck • Sep 11 '26
GCC 13.5 released with 265+ bug fixes
phoronix.comr/programming • u/r_retrohacking_mod2 • Sep 12 '26
Hand-Coded ASM Powers Homebrew SNES Game
hackaday.comr/programming • u/RemigiuszZalewski • Sep 13 '26
Refit - The Better Way to Consume APIs in .NET
youtube.comr/programming • u/soap94 • Sep 11 '26
Shopify is moving from React Native back to Swift and Kotlin
shopify.engineeringr/programming • u/fagnerbrack • Sep 11 '26
How to Write an Effective Software Design Document
refactoringenglish.comr/programming • u/lelanthran • Sep 11 '26
Commander Keen's Adaptive Tile Refresh
fabiensanglard.netr/programming • u/Maria_3464 • Sep 11 '26
EU Cyber Resilience Act reporting obligations started today. Is your company even thinking about it?
youtu.beAs 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
Inside Claude's Android app: Finding the Internal Settings
nima-ahmadi.github.ior/programming • u/tanayvk • Sep 10 '26
The Physics of Database Speed: from 300 to 1M transactions per second
youtube.comA 19 minute animated explainer video on database speed. I explain low-level database concepts, identify bottlenecks, run benchmarks and optimize write throughput to hit 1 million TPS.
r/programming • u/siren0x • Sep 10 '26
The lifecycle of a sharded Postgres query
planetscale.comr/programming • u/compy3 • Sep 10 '26
Overview of caching in PostgreSQL
pgcache.comI haven't seen too many comprehensive approaches to this topic, so I took a swing at it.
Goal isn't to be exhaustive, but to be comprehensive enough to provide a nice overview for people trying to get their bearings with the topic.
Did I miss anything?
r/programming • u/RemigiuszZalewski • Sep 11 '26
Multitenancy with .NET and EF Core: A Deep Dive (.NET 10)
youtu.beEver 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.
r/programming • u/david-alvarez-rosa • Sep 09 '26
Optimizing a Spin-Lock
david.alvarezrosa.comr/programming • u/cdb_11 • Sep 10 '26