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

Port clojure.pprint #147

Open
jeaye opened this issue Dec 13, 2024 · 1 comment
Open

Port clojure.pprint #147

jeaye opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@jeaye
Copy link
Member

jeaye commented Dec 13, 2024

This one would help my day to day work, since I'm often rendering EDN versions of jank's AST and yearning for some nice formatting (at least until we can tap into Portal 😁). Check out clojure.pprint and the various other files it brings in. Try to break it into smaller pieces. Any part that's pure Clojure should just work with jank; if you run into something that's not yet implemented, call it out and we can prioritize that. Any parts that are doing Java interop need to go into a clojure.pprint-native module that's using a C++ file. This will allow you to reach into the jank world.

For now, just use the C API, rather than the C++ API. This is more limiting, but it's much lighter to JIT compile.

@stmonty
Copy link
Contributor

stmonty commented Dec 13, 2024

I'm on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants