Well it's not a quine but finally we have a roc program that's builds itself. xD
roc-builds-itself.jpg
i just did a little poc of how to spawn another program from a roc app, so i needed a little test case. i don't know why, but for some rease a program building itself gives me some goosebumbs. ^^
very cool! the first bootstrapping Roc program!
Haha, love it
Well i couldn't resist:
image.png
and yes , it really gets into an infinite loop. so i had to ctrl^c
funny though. when building first and then running the executable, it crashes:
image.png
Oh, too fast file io and trying to access a file while it is still being flushed to disk
could we give a nicer error for that?
Brendan Hansknecht said:
Oh, too fast file io and trying to access a file while it is still being flushed to disk
makes sense i gues. but why does it not happen when i roc run ...
?
That runs from memory and just happens to also flush to disk rather than flushing to disks and then running from disk
makes sense. thx
Last updated: Jul 06 2025 at 12:14 UTC