An open API service indexing awesome lists of open source software.

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

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