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

Is there not a single example of java + nodejs interop? #842

Open
balayanv opened this issue Sep 3, 2024 · 0 comments
Open

Is there not a single example of java + nodejs interop? #842

balayanv opened this issue Sep 3, 2024 · 0 comments

Comments

@balayanv
Copy link

balayanv commented Sep 3, 2024

I understand that one can simply run unmodified node projects with this, that's nice but most people would look at graal so they can use node modules out there from java.

I remember doing all sorts of crazy hacks, setting up shared task queues because node has its event loop and you cant just call into it without being on that thread...

Is there not even a single example of java interacting with a simple node code? call node code from java and vice versa...

I remember also having to launch my code with custom shell scripts because the executable is node and intellij cant understand that its actually a fully powered jvm that runs node... so i had to transform, manually grab classpaths feed them into node command properly so i can just launch the app with graalnodejs (loosing any capability to debug stuff at the same time)...

This was a while ago, so maybe there is a better way to do things or i was doing some unnecessary magic to begin with? either way it was bad dev experience...

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