Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Prior Art #1

Open
Techcable opened this issue Apr 21, 2021 · 1 comment
Open

Investigate Prior Art #1

Techcable opened this issue Apr 21, 2021 · 1 comment

Comments

@Techcable
Copy link
Member

Obviously the most well known Reflection APIs are going to be the Java-like runtime APIs or Python-style dynamic behavior. However, this crate would like to do as much as possible at compile time.

Rust

  • 8BitMate/reflect - Implement procedural macros using compiler time reflection (originally by dontolay)
    • This is incredibly awesome, although it's a little different than what we want to do (it is for implementing proc macros)
    • I almost don't trust it because it's so revolutionary
  • gimli - Dwarf debug API
    • Ofc, dwarf doesn't give much rust-specific info

C++

Java

  • TeaVM "metaprogramming API" - Used as a replacement for reflection, allowing fast startup and agressive size optimization
    • TeaVM is basically a better GWT
    • Very awesome and elegant project in general. Even emulates threading with green threads.
    • Tons of compile-time reflection, including a replacement implementing for jackson that avoids reflection (basically seeds)
@Techcable
Copy link
Member Author

See also juntyr/const-type-layout. Unfortunately requires a lot of nightly features (even specialization 😦).

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

No branches or pull requests

1 participant