It is open source and is available for Linux and Windows.
Were I to add a scripting language into the editor I maintain, there are half a dozen candidates which quickly come to mind; if none proved suitable, I would probably end up designing a new language, tailored to my purpose, before it would occur to me to use some heavyweight, VM-driven beast like Swift (or C# or Java).