Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

1. Structural sharing - most data doesn't change so you create a copy that reuses much of the original structure

2. Garbage collection and lexical scopes - you clean up memory quickly and in batch

3. Compiler optimizations - you turn functional constructs into imperative ones that reuse and mutate memory at compile-time, where it is provably safe to do so

Roc Lang might interest you: https://www.youtube.com/watch?v=vzfy4EKwG_Y



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: