objc-ast-experiments

By floooh

Objc-ast-experiments Alternatives

Similar projects and alternatives to objc-ast-experiments

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better objc-ast-experiments alternative or higher similarity.

objc-ast-experiments reviews and mentions

Posts with mentions or reviews of objc-ast-experiments. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-19.
  • C-Macs – a pure C macOS application
    11 projects | news.ycombinator.com | 19 Apr 2024
    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/

  • Show HN: C-ocoa, Write iOS/macOS apps in any language, with a generated C API
    3 projects | news.ycombinator.com | 11 Sep 2023
    This is basically also what the "official" C++ API for Metal does (https://developer.apple.com/metal/cpp/), it's an automatically generated bindings wrapper which calls into ObjC runtime functions.

    I also dabbled a bit with this idea by parsing clang AST-dumps of macOS system headers:

    https://github.com/floooh/objc-ast-experiments

    Unfortunately this is very brittle, and also broke on ARM CPUs, I guess the shim code needs some ABI adjustments (famously, objc_msgSend has multiple "ABI shapes": https://www.mikeash.com/pyblog/objc_msgsends-new-prototype.h...).

Stats

Basic objc-ast-experiments repo stats
2
7
10.0
over 2 years ago

The primary programming language of objc-ast-experiments is C.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com