swiftlang/swift ? reverse-engineered prompt

Reverse engineered prompt

I want to create a new high-performance systems programming language. It should have a clean, modern syntax and be memory-safe by default. A major goal here is making sure it has seamless access to existing C and Objective-C code and their frameworks, so it's easy to adopt in existing projects.

The language needs all the modern features: objects, protocols, closures, and generics. Let's also use a modern module system instead of C-style header files to keep things clean.

Please scaffold the complete project for this. This should include the compiler itself, a core standard library, and the necessary build scripts (using CMake) to create a full installable toolchain. The toolchain should be easy to integrate with Xcode on macOS. Also, please set up a comprehensive testing structure, since this will be a complex project that needs a lot of validation.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab