Pinned Tweet
Retroquad's Patreon was launched:
patreon.com/mankrip
It will feature content that is way more in-depth than my Twitter and YouTube accounts. All future Retroquad releases will be done through it.
If the minimum goal isn't reached, Retroquad will have to be cancelled.
随着 Ubuntu 26.10 正式用 Rust 编写的 uutils/coreutils 替换掉陪伴 Linux 四十年的 GNU coreutils(包括最核心的 cp、mv、rm、ls 等命令),一个最严峻的工程问题摆在了桌面上:你敢保证重写后的 Rust 工具,在面对成千上万种诡异的古董 Shell 脚本参数与极端边缘输入时,行为跟原版 C 代码 100% 一致吗?
为了检验这种系统级重写的成色,开发者 Emir Mrkaljevic 用 Rust 编写并开源了声明式黑盒测试与差分验证工具 Behave。
Behave 的用法非常凌厉:它把原版 GNU coreutils 当作黄金基准(Oracle),把同一组涵盖极端边界条件的参数、标准输入流、异常环境变量、破损符号链接、非法 UTF-8 字节文件名以及特殊权限掩码同时喂给 GNU 二进制与 Rust uutils 二进制,然后自动逐字节比对双方的 stdout、stderr、进程退出码(Exit Code)以及文件系统副作用。
结果不测不知道,Behave 在自动对撞测试中,一口气抓出了 Rust uutils 仓库里足足 40 个此前未被单元测试覆盖到的真实上游兼容性缺陷!这也证明了在用现代语言或 AI 重写底层基础设施时,光靠常规单元测试远远不够,自动化黑盒差分测试(Differential Testing)才是守住兼容性的终极防线。
This is pure entertainment. I miss when the Internet was full of discussions like this.
To all the people who are defending C, I would recommend reading the following article which talks about the damage it has done to modern systems. It's sheer luck it's still this embedded in modern programming.
faultlore.com/blah/c-isnt-a-…
mankrip retweeted
This year saw several attempts at an FPGA 3dfx Voodoo core. In February, I demoed an early build driven by a geometry engine. Now it's the only core on the PCI bus, running the original 3dfx games with the fill rate of the real deal. There were many attempts, but this one's done.
Now this is a good AI-assisted mod. Focused on accuracy, performance, and on making the game feature complete.
Street Fighter Alpha / Zero 2 - Enhanced Edition for SNES! V2 Final version released today!
Lots of bugfixes and new features... including fully playable EVIL RYU!
You can download it here!
Check the videos on the next two posts for all the features! 😊
joflof.itch.io/street-fighte…
2
107
mankrip retweeted
プログラムの知識がなくても、Webブラウザーだけで「ファミコン」のゲームが作れてしまうWebアプリが登場!!
この「NES GAME STUDIO」は、ドット絵やマップ、敵キャラクター、ボス、音楽などを組み合わせて、ファミコン用ゲームを制作できるWebツールで、しかも「無料」だ。
完成した作品はファミコン用のROMデータとして出力可能で、作ったゲームは「ファミコンのフラッシュカートリッジ」を使えば実機で遊ぶこともできる。
foko-games.itch.io/nes-game-…
オリジナルのファミコンゲームを作ってみたいが、プログラムの知識がないから、かれこれ40年近く諦めていたレトロゲーマーにとって、福音であることは間違いないぞッッ!!
Retroquad now features a powerful text renderer and translation subsystem, including support for over 50 languages so far. Some of them never seen before!
The pt-BR I did entirely myself, and the others were automatically translated from that.
youtu.be/SpDXUY0O8wk
Related Patreon post with more info:
patreon.com/mankrip/posts/mu…
12
mankrip retweeted
13日目:セガサターンの変形スプライトは半透明が「使えない」と思っていたのですが、
youtube.com/watch?v=WQbyOJLf…
によると、「結果が保証されないので使われなかった」が正しいようなので、実際にAIに変形スプライトの半透明処理のプログラムを書いてもらいました。
エミュレーターによる動作確認ですが、確かに色が重なっている部分があり、使い物にならない感じですね…。
#85日チャレンジ #セガサターン #Codex
Carmack is really close here, but I think his reasoning is a bit limited.
The distance is not unidirectional. A 0.2 pixel has twice the distance from full darkness relative to a 0.1 pixel, but a 0.98 pixel also has twice the distance from full brightness relative to a 0.99 pixel.
Both NeXT and 3DFX tried to “do the right thing” with color spaces, and it wound up generally making them look worse than competing options. I didn’t really understand it properly until years later.
It is natural to think that a pixel with a value of 1.0 is emitting twice the photons as a pixel with a value of 0.5, so you can do the obvious linear math to calculate partial pixel coverage, blending a foreground over a background, or interpolating between colors in a texture.
If displays are “linear”, that is correct. NeXT and 3DFX were much closer to linear than other contemporary displays. NeXT had crossover from the deep graphics understanding at Pixar, and 3DFX had the SGI heritage. They did this intentionally.
If you have 10+ bits per channel like the professional rendering systems, linear displays are The Right Thing.
Unfortunately, NeXTStation Colors were 4 bits per channel and 3DFX was 5 or 6 bits per channel, and there… it was not the right thing.
Human eyes aren’t linear intensity sensors. We mostly register relative changes in intensity, so we can tell the difference between 0.01 and 0.02 as a huge doubling, while 0.99 to 1.00 is almost imperceptible.
This distribution of intensities is often referred to as the “gamma” of the display system, but the actual curves like sRGB are a bit more complicated.
If you only have a small number of discrete pixel values, you definitely don’t want to spread them evenly from 0 to 1! If you do, you will have good precision in the brights, but very stark “intensity bands” in the dark colors.
If everything was authored specifically for 3DFX, you would still have the fundamental problem with the dark bands, but more accurate blending and filtering. The problem was that artists made all of their textures in paint programs on conventional non-linear displays, so when they were drawn by 3DFX cards, they got the characteristic “washed out color” look.
You can mathematically correct textures for differences in display gamma, but I didn’t really understand the issue back in the glQuake days, and we were so enthralled by the absolute performance of 3DFX that the color fidelity didn’t get as much attention as it should have.
Even today, tons of games don’t properly handle gamma across their textures and render targets. High resolutions and 24 bit color masks most of it, but you still see it in some slight shimmerings in high contrast textures and edges.
Retroquad now supports HD textures on sprites too!
Now it finally supports HD replacement textures on everything.
Screenshots and information here:
patreon.com/mankrip/posts/hd…
7
225
We'll eventually see the rise of quality-driven apolitical "deslopped" projects aimed at fixing all the bugs and dumb decisions made in those billions of AI-assisted mindless ports out there.
Such deslopped projects themselves may use AI, but with proper supervision and testing.
3
7
234











