3 ms·
It doesn't even have GC yet.
by Volt 9y ago
It doesn't even have GC yet.
- 35bge57dtjku 9y agoLike C or like Java with the GC turned off?
- rebolek 9y agoC has alloc and free. Red is supposed to be garbage collected, so there's no free.
- mzzter 9y agoHow come Red doesn’t have a GC then? If Red doesn’t have free, does it just leak memory?
- 35bge57dtjku 9y agoIt's like there's an echo in here.
- greggirwin 9y agoGC will come. It just hasn't been needed yet for Red to continue its own development. If you write in Red/System, the C level dialect, you have `free`.
- mzzter 9y agoI guess I’ll try asking this again: How come Red doesn’t have a GC? If Red doesn’t have free, does it just leak memory?
- christophilus 9y agoYes. Last I checked, it just leaks memory. It doesn't have GC because it's a new language that is under heavy development. It doesn't have a lot of things that any sane language must have before 1.0. Give it time.
- 9214 9y agoFirst version of GC (and maybe some memory-management natives) will be integrated in 0.6.4 release, meanwhile there's some bag of tricks and conventions (`/into` refinement, creating series with `make ...`, etc) you can use to avoid additional allocations (almost) entirely.