"I'm off to bed"
"Wait, before you go, if you HAD to make a garbage collected language, what would it look like"
"uhhh"
*twists and turns all night*
"uhhh"
"I'm off to bed" 14 comments
@neauoire Does it have to be _garbage collected_ specifically, or just have some kind of automatic memory management? @dcreager my friend said "garbage collected", but yeah, I think anything goes. I'm trying to push this all at the back of my mind right now @neauoire No matter how long language designers twist and turn they will always end up with Java. Go is just Java without VM. WASM is just Java without GC (soon with GC at which point the circle is complete and we reinvented the Applet). GC is just a symptom of dynamic memory allocation. I would make a VM that only executes Java bytecode with statically allocated arrays. Avoid cache-misses and guarantee atomic parallelism by removing the GC!? Use dynamic libs and/or some classloader instead. |
@neauoire my present approach: just don't ever collect anything in RAM. when you run out of RAM, you swap it to disk. diskwise (a) you have hundreds of gigabytes available to fill (b) your I/O is synched, so you can naturally use those syncpoints to collect garbage on disk