Florian, would it be OK with you if I post the shader here?
Florian's shader has been added to the top of tree WebGL conformance
suite as https://www.khronos.org/registry/webgl/sdk/tests/conformance/glsl/misc/large-loop-compile.html
. Its eventual inclusion will have to be debated among members of the
working group, but it seems to me that even if compilation of the
shader has to fail, that failure should occur in a reasonable period
of time, and the WebGL context shouldn't be lost.