Ancestors

Toot

Written by Brodie Robertson on 2025-01-15 at 01:53

Unsurprisingly getting some dumb comments on the memory safety video, at the same time some of them are so dumb they might be on to something

=> View attached media

=> More informations about this toot | More toots from BrodieOnLinux@mstdn.social

Descendants

Written by Gus on 2025-01-15 at 02:19

@BrodieOnLinux they complain about Rust fanboys but Rust haters are even more annoying

=> More informations about this toot | More toots from goosewastaken@mastodon.social

Written by Greg Brooks on 2025-01-15 at 05:17

@BrodieOnLinux Yes, so this is a strategy. A program can just allocate everything they’re going to use up front and then thats it. No more allocations or frees for the life of the process. IIRC TigerBeetle does this.

=> More informations about this toot | More toots from keyboardg@mastodon.social

Written by Michal :verified: :btw: on 2025-01-15 at 05:44

@BrodieOnLinux Depending on context, it is a valid strategy:

https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98125

"Of course it leaks". ... they had calculated the

amount of memory the application would leak in the total possible flight time for the missile and then doubled that number. They added this much additional memory to the hardware... Since the missile will explode when it hits its target or at the end of its flight, the ultimate in garbage collection is performed without programmer intervention.

=> More informations about this toot | More toots from michal@kottman.xyz

Written by Geniusak on 2025-01-15 at 08:04

@BrodieOnLinux I remember reading an anecdote by someone who worked on missiles, he was told to never free, the missile has enough memory to last until it explodes

=> More informations about this toot | More toots from Geniusak@vivaldi.net

Written by SteveHeist on 2025-01-19 at 01:31

@BrodieOnLinux I think that might be a joke.

=> More informations about this toot | More toots from SteveHeist@mastodon.sdf.org

Written by Brodie Robertson on 2025-01-19 at 04:32

@SteveHeist It is

=> More informations about this toot | More toots from BrodieOnLinux@mstdn.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113829870616544033
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
358.214022 milliseconds
Gemini-to-HTML Time
1.082859 milliseconds

This content has been proxied by September (ba2dc).