That being said...use Go for scripting. It's fantastic. If you don't need any third party libraries this approach seems really clean.
Device drivers, task switching, filesystem, memory management and all?
Something like //usr/bin/gcc -o main "$0"; ./main "$@"; exit
throw-12-16•39m ago