14,081 karma · joined Mar 7, 2014 (12y ago) · 1,887 submissions
comment 9mo ago · link · parent
To fix this you'll need Harfbuzz or something similar. Taking a quick look at the code, it seems like you're just doing a glyph at a time through the cmap. That, uh, won't do.
comment 9mo ago · link · parent
Sure, you have to have some facility with math to use clothoids, but I think the only other curve that will actually be simpler is circular arcs.
comment 9mo ago · link · parent
[1]: https://research.google/blog/towards-a-conversational-agent-...
comment 10mo ago · link · parent
There's something really appealing about machines this simple which has been lost in the modern era. But this particular board was very limited, there wasn't a lot you could actually do with it.
comment 11mo ago · link · parent
comment 11mo ago · link · parent
In order to prove lack of UB, you have to be able to reason about other things. For example, to safely call qsort, you have to prove that the comparison is a total order. That's not easy, especially if comparing larger and more complicated structures with pointers.
And of course, proving the lack of pointer aliasing in C is extremely difficult, even more so if pointer arithmetic is employed.
comment 11mo ago · link · parent
If an LLM is in fact capable of generating code free of memory safety errors, then it's certainly also capable of writing the Rust types that guarantee this and are checkable. We could go even further and have automated generation of proofs, either in C using tools similar to CompCert, or perhaps something like ATS2. The reason we don't do these at scale is that they're tedious and verbose, and that's presumably something AI can solve.
Similar points were also made in Martin Kleppmann's recent blog post [1].
[1]: https://martin.kleppmann.com/2025/12/08/ai-formal-verificati...
100.
Prediction: AI will make formal verification go mainstream(martin.kleppmann.com ↗)
10 points · by raphlinus · 11mo ago · 2 comments
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
The actual process of fine rasterization happens in quads, so there's a simple vertex shader that runs on GPU, sampling from the geometry buffers that are produced on CPU and uploaded.
comment 1y ago · link · parent
We have definitely thought about having the CPU renderer while the shaders are being compiled (shader compilation is a problem) but haven't implemented it.
comment 1y ago · link · parent
I've got a mostly-written emulator (in Rust). It's very easy to emulate, possibly the best gameplay bang for the emulator coding effort buck aside from NES. My main intent in writing this emulator is getting it running on an RP2350 board, like Adafruit Fruit Jam or Olimex RP2350pc.
It should also be possible to get the next generation (SNES, Genesis) on such hardware, but it's a much tighter fit and more effort.
comment 1y ago · link · parent
comment 1y ago · link · parent
112.
I want a good parallel language [video](youtube.com ↗)
117 points · by raphlinus · 1y ago · 66 comments
114.
Rust: A quest for performant, reliable software [video](youtube.com ↗)
155 points · by raphlinus · 1y ago · 94 comments
comment 1y ago · link · parent
Emulation is a sweet spot because if you race the beam, there is no compositor latency. Basically every retro computer with less than a quarter meg of VRAM is fair game (whether a framebuffer or not).
I have a bit of time off this fall and intend to do some fun things.
[1]: https://github.com/DusterTheFirst/pico-dvi-rs/wiki/RP2350-DV...
comment 1y ago · link · parent
There's also a big discussion to be had about how the Rust language might more natively support SIMD. There are some hacks in fearless_simd to work around limitations in the language (especially relying on inlining as load-bearing), and it would be excellent to make that more robust. But the best path forward is not obvious.
comment 1y ago · link · parent
A particular sweet spot is emulating 8 and 16 bit systems, as latency can be just as good as an FPGA setup. The infoNES emulator has been running on RP2040 for a while, and I see projects for Sega Master System, Genesis, Apple II, and Mac in the works. But you can also write much more powerful software natively.
Likely it will be possible to adapt software between these various RP2350 systems.
[1]: https://github.com/DusterTheFirst/pico-dvi-rs/wiki/RP2350-DV...
comment 1y ago · link · parent
Rust is only a little better. With default settings, it will panic if isize::MIN is in the input slice in a debug build, and in a release build will incorrectly return true if there are two such values in the input. But in C you'll get unicorns and rainbows.
comment 1y ago · link · parent
You might be right about rebranding, but to me a lot of what appeals is the focus on the substance rather than perceptions.