wren
wren copied to clipboard
Printing cyclic or deeply nested objects result in OOM
https://wren.io/try/?code=G4QwTgBCC8DaC6AoEA6EATdAKEBKRA9AQMoCeAzgC4CmAtigA5gCWAdpTvoqJADbSsArr16IAZgHswWZhDYQADChQBGBetwBvRBAj9NAIlbUAHpQMAuXgF9EtomSp1GLdll64gA
OOM while printing cyclic objects should have been fixed by #3. But it doesnt seem to work.
Solving this issue, is not as trivial as it seems. There are multiple ways to solve the issue and is a serialization problem. Default serialization is meant to be simple/dumb. Adding that feature would solve some problems, but I wonder if the benefit/cost is worth an implementation in core.