My question relates to a desire I have that within a handful years, I want to write an OS and other system level software in Swift. While Im currently pursuing writing high level programs, I will want to make the transition so I need to be strategic in how I approach it with respect to Swifts evolution. Currently I spend some time learning about OS and how they work.
One common thing with C and Rust which are low level is that they dont have run times but Swift does.
Swift has automatic memory management while low level languages do not which makes it impossible to build memory management systems contextual to the type of system you are aiming to build.
Currently, Swift does not support inline assembly.
Swift does not have access to IO ports.
Swift is still slow to perform well in the OS world.
Idk if it even worth trying to spend the energy trying to forcefully create an OS in pure swift and assembly when its not suitable. Just dont know how. Perhaps I have no choice but to learn C as well but whats the point when languages like Rust provide a safer and better approach while being just as fast. What are your thoughts and advice to me? Will Swift ever be suitable for such a task in the coming years?