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

D is garbage-collected, right? How does the game plus the whole runtime fit into 14kb?


It is using the BetterC mode which disables all runtimes including gc. Spasm framework used by this demo is designed for such use case.


I did D including a custom runtime in about +20 KB of webassembly over this (I just wanted to take a straight desktop program and port it over). The runtime doesn't have to be that big.


D's garbage collector is optional.




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

Search: