https://github.com/lcbx/swiftexperiment
experiment with using cpp libraries in swift
https://github.com/lcbx/swiftexperiment
Last synced: 5 months ago
JSON representation
experiment with using cpp libraries in swift
- Host: GitHub
- URL: https://github.com/lcbx/swiftexperiment
- Owner: Lcbx
- Created: 2025-03-31T13:17:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-05T18:36:50.000Z (over 1 year ago)
- Last Synced: 2025-10-09T15:06:49.741Z (10 months ago)
- Language: CMake
- Size: 1.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## swiftExperiment
the idea was to use swift to use cpp libraries and build a 3D engine this way
swift is more fun than cpp imho (better syntax & features like async/await, type extensions, ranges & slices, ..)
Just investigating right now.
#### NOTES
* to import a c++ lib you need to :
- add their subdirectory with CMAKE
- add a 'module.modulemap' file with the header file names in the include dir
* swift struggles with c++ templates (= generics)
* might need to create c++ bridging / interfaces classes
- it would make using vcpkg easier
- but it adds friction to dev