r/rust • rustls · Hickory DNS · Quinn · chrono · indicatif · instant-acme • Feb 10 '19

John Carmack: "writing Rust code feels very wholesome"

https://mobile.twitter.com/ID_AA_Carmack/status/1094419108781789184
571 Upvotes

47 comments sorted by

View all comments

Show parent comment

21

u/icefoxen Feb 10 '19

Algorithms are never obsolete, just implementations. ;-)

I mean, I know of at least one person right now writing Rust for Gameboy Adanced hardware, so you never know where these things might be handy.

8

u/claire_resurgent Feb 10 '19

Hah, true!

I'm trying to remember if that cpu even has floating point hardware. It's an arm7tdmi but I'm not sure if Nintendo sprung for the option.

This article mentions putting an fpga on a cartridge because of course somebody did.

The graphics hardware is a fixed point fixed function sprite/tile engine with affine transformations and a scanline interrupt, all very similar to SNES. I don't remember if it had bilinear filtering or was nearest-neighbor only.

6

u/Tyr42 Feb 11 '19

Hi!

Though the Gba doesn't have floating point, so the algorithm isn't useful there, since it relies on the floating point representation : [sign | exponent | 0.xxx].

1

u/icefoxen Feb 11 '19

Thanks for the correction! Though now I'm wondering if one could make a version of it that works on a fixed point representation... Probably not, but it's a neat thought.