Wanted to see if we could use swift for bioinformatics. Turns out to be really slow. Converted it to rust using LLMs and now it runs rediculously fast.
Swift can be run using a singularity container.
module load singularity
singularity pull docker://swift
singularity exec swift_latest.sif swift script
All scriptName.swift files can be compiled to run on your local machine using the following command
swiftc -o scriptName -Osize script.swift