Putting it in the top scope of your compilation unit is a simple hack, for the many basic cases where that happens to be the global scope.
Another way is to add_constant() it in a separate loader file which compiles and spawns your main code.
A third variant I just tried failed on a bus error in 7.6 and 7.7: global.hello = "world!";