Remix.run Logo
dehrmann 3 hours ago

You're thinking an algorithmic tradeoff, but this is an abstraction tradeoff.

pron 3 hours ago | parent [-]

Some of the algorithms are built deep into the runtime. E.g. languages that rely on malloc/free allocators (which require maintaining free lists) are making a pretty significnant tradoff of wasting CPU to save on RAM as opposed to languages using moving collectors.

fc417fc802 an hour ago | parent [-]

Free lists aren't expensive for most usage patterns. For cases where they are we've got stuff like arena allocators. Meanwhile GC is hardly cheap.

Of course memory safety has a quality all its own.

tcfhgj 18 minutes ago | parent [-]

hopefully not implying needing a gc for memory safety...