I usually use printf, remember to append a \n to the format so it will flush on your terminal.
The compiler knows about String. String literals are instances of that class. You might need to declare it as in the std-lib, just the ivars and the to_unsafe should be enough.
To avoid GC you will need the gc_none flag and require just that.
There are some threads/issues about splitting std-lib in a core part and being able to require just that.