News for hackers. Stuff that matters.
Re:Why async fn in traits are hard by fluffything on Monday October 28, 2019 @05:09AM (#21375350)
`malloc` + `free` are unknown function calls, they can't be inlined, don't understand the semantics of your language, the strategy behind them is quite generic, etc.

A GC that's integrated with a programming language can do much much better (different heaps for short and long lived allocations, for example).

Re:Why async fn in traits are hard by zozbot234 on Monday October 28, 2019 @07:29AM (#21375970)
One can do even better by supporting custom "pluggable" allocators, and not just a single global allocator like Rust does at present. Some of these allocators could even implement GC-like logic internally.