If you have a super secret algorithm that you want to keep safe an okay programmer could make some server code to run it pretty easily (the protocol part, cant comment on your algorithm). Then you would write a GUI interface program in whatever language you want for the desktop that calls out to the server over TCP or something for the processing.