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

mount more java classes #63

Closed
retrogradeorbit opened this issue May 20, 2020 · 3 comments
Closed

mount more java classes #63

retrogradeorbit opened this issue May 20, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@retrogradeorbit
Copy link
Member

$ spire -e 'java.net.Socket'
Exception in thread "main" clojure.lang.ExceptionInfo: Could not resolve symbol: java.net.Socket [at line 1, column 1] {:type :sci/error, :line 1, :column 1}

Would be nice to have many more java classes present like in babashka

@retrogradeorbit retrogradeorbit added the enhancement New feature or request label May 20, 2020
@jeroenvandijk
Copy link

@retrogradeorbit Do you have a list of essentials classes? I see two long term options: 1) integrate as pod, 2) extract a common layer from babashka and use that here.

Maybe both options are premature and just copying the implementation is easier

retrogradeorbit added a commit that referenced this issue May 24, 2020
@retrogradeorbit
Copy link
Member Author

@jeroenvandijk I just took the list from babashka and listed them as a plain literal with no special generation. Podification will be undertaken at some point but it requires a fair bit of work as much of spires internals convey object instances (which are in a separate heap in a pod and can't traverse the edn boundary). It can be done by passing id's instead, but it's a fair amount of rework, so this will suffice for the time being.

@retrogradeorbit
Copy link
Member Author

fixed in 0.1.0-alpha.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants