Swiftz
oc
Swiftz | oc | |
---|---|---|
1 | 2 | |
3,328 | 45 | |
0.0% | - | |
0.0 | 10.0 | |
almost 2 years ago | almost 5 years ago | |
Swift | C | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Swiftz
-
C-Macs – a pure C macOS application
Draw a line through this 12+-year-old effort from Robert Widmann and his 8-year-old exercise in type-lifting Swift [1] and ask yourself: what is he doing now at Apple?
[1] https://github.com/typelift/Swiftz
oc
-
C-Macs – a pure C macOS application
Here's something similar by Garret Bass:
https://github.com/garettbass/oc
...I also experimented a bit with parsing macOS system headers via clang-ast-dump and then code-generating C and Zig APIs but that didn't get far:
https://github.com/floooh/objc-ast-experiments
...with a bit of effort and maybe using libclang instead of clang-ast-dump that's definitely feasible though.
I guess a similar approach is used by the official C++ bindings for Metal:
https://developer.apple.com/metal/cpp/
-
Space-shooter.c: cross-platform, top-down 2D space shooter written in C
Metal can be called from C by going directly through the Objective-C runtime, but it requires either macro magic (like: https://github.com/garettbass/oc/), or code-generated C headers.
But it's not a big deal to move all the ObjC code into a separate .m source file and expose a smaller and higher level C API.
What are some alternatives?
Argo - Functional JSON parsing library for Swift
Swiftx - Functional data types and functions for any project
R.swift - Strong typed, autocompleted resources like images, fonts and segues in Swift projects
Runes - Infix operators for monadic functions in Swift
LlamaKit - Collection of must-have functional Swift tools
Prelude - Swift µframework of simple functional programming tools
Hookah
Oriole - A functional utility belt implemented as Swift 2.0 protocol extensions.
Funky - Functional programming tools and experiments in Swift.
OptionalExtensions - Swift µframework with extensions for the Optional Type
Forbind - Functional chaining and promises in Swift
Bow - 🏹 Bow is a cross-platform library for Typed Functional Programming in Swift