4 ms·
How does Brainfuck compare to Rust?
by nullorempty 2y ago
How does Brainfuck compare to Rust?
- lifthrasiir 2y agoThe original BF implementation used a fixed-size memory of 30,000 cells and out-of-bound pointers weren't checked, making it highly unsafe. Most modern implementations support dynamically sized memory or at least bound checks though, so they are as safe as Rust.
- romwell 2y agoThe conversation involving "most modern BF implementations" is always a great one.
- bob1029 2y agoI use a variant of BF for linear genetic programming experiments that wraps the memory pointer around when it hits the edges. This increases the chances of finding viable candidates by reducing the impact of bad mutations.
- askl 2y agoThe syntax of BF is far simpler, so it should be easier to get started than rust.
- RedNifre 2y agoIt's way more portable: You can run Brainfuck on an old HP calculator, where Rust would be too bloated: https://forum.swissmicros.com/viewtopic.php?f=23&t=1903&p=8338#p8338 https://forum.swissmicros.com/viewtopic.php?f=23&t=1903&p=83...