News for hackers. Stuff that matters.
Re:A repository of “BASIC Computer Games” code in modern lan... by qiqitori on Monday July 31, 2023 @08:40PM (#36950880)
TIL about #embed. Awesomeness! And in hindsight, why didn't we get this earlier? :D
Re:A repository of “BASIC Computer Games” code in modern lan... by tialaramex on Monday July 31, 2023 @11:33PM (#36951975)
If you haven't read it already, https://thephd.dev/finally-embed-in-c23 explains

Rust had include_bytes! from Rust 1.0, include_bytes! is philosophically the same thing, given a filename, it gives you an immutable reference which lives as long as your program, to an array of bytes from the file -- &'static [u8; N]