Skip to content

Conversation

@plx
Copy link
Owner

@plx plx commented Jul 23, 2025

Summary

This PR rolls back the incomplete macro migration attempt while preserving valuable Swift 6 modernizations. It provides a clean foundation for future incremental macro migration.

Changes

Swift 6 Modernizations Preserved

  • ✅ Swift 6 language mode in Package.swift
  • ✅ Modern platform requirements (iOS 18, macOS 15, tvOS 18, watchOS 11)
  • ✅ Sendable conformances for all matrix and quaternion types
  • ✅ Fixed concurrency warnings with nonisolated(unsafe) for static properties
  • ✅ Updated deprecated Package.swift APIs

Macro Work Removed

  • ❌ Removed all macro-related code and dependencies
  • ❌ Removed incomplete macro implementations
  • ❌ Moved implementations back from Holding directory

Documentation Added

  • 📝 planning/macro-migration-roadmap.md: Comprehensive 6-phase migration plan
  • 📝 planning/macro-migration-prompts.md: Specific prompts for each migration phase

Context

The original macro migration (on feat/swift-modernization branch) attempted to:

  1. Replace the complex protocol hierarchy with macro-generated code
  2. Co-generate implementations and test coverage
  3. Reduce compilation time and boilerplate

However, the migration got stuck due to its ambitious scope. This PR provides a clean slate for a more incremental approach.

Test Plan

  • Project compiles successfully with Swift 6
  • All existing functionality preserved
  • Verify tests pass (existing test coverage is sparse)

Next Steps

Follow the roadmap in planning/macro-migration-roadmap.md for incremental macro migration.

🤖 Generated with Claude Code

plx and others added 12 commits June 18, 2024 06:23
- Preserved Swift 6 language mode and platform requirements
- Added Sendable conformances to Quaternion type
- Fixed static property concurrency warnings with nonisolated(unsafe)
- Updated deprecated Package.swift API (swiftLanguageModes)
- Created planning/ directory with:
  - macro-migration-roadmap.md: Comprehensive 6-phase migration plan
  - macro-migration-prompts.md: Specific prompts for each phase
- Project now compiles successfully with Swift 6
- No build artifacts included in this commit
@plx plx changed the base branch from master to feat/modernization July 23, 2025 01:33
@plx plx merged commit 31d1385 into feat/modernization Jul 23, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants