Content warning: Mention of LLMs, failing to hate on them
So I have the bot writing #TinyGo & remember bots die when you clear the context. Because the GC doesn't compact, memory instantly become fragmented and the computer crashes with OOM. The bot was like, please clear my context and and or can we please switch to #micropython - so it would rather die than keep hacking on #TinyGo
The solution I'm being pushed to is "no dynamic allocations anywhere, ever"
If it needs to be GC'd you can't afford to allocate it. So a basic feature of Go (allocate memory, wait for GC) has to be carefully avoided at every step.
♡ 0 ↻ 0It worked! Remember people, if you're feeling suicidal, maybe you just need to replace your stdlib json library with a zero-dynamic-allocation json encoder/decoder.
♡ 1 ↻ 0