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

Support for ConcurrentLinkedQueue #896

Open
varunsingh87 opened this issue Mar 14, 2024 · 2 comments
Open

Support for ConcurrentLinkedQueue #896

varunsingh87 opened this issue Mar 14, 2024 · 2 comments

Comments

@varunsingh87
Copy link

varunsingh87 commented Mar 14, 2024

Is there a plan to support the ConcurrentLinkedQueue class in the future? Perhaps something like this npm package.

ConcurrentLinkedQueue is the only class that makes teavm incompatible with socket.io. Other websocket libraries have many other Java classes that are not emulated by teavm.

@konsoletyper
Copy link
Owner

There's a plan to support ConcurrentLinkedQueue eventually, but there are no terms for that. I believe, this is an important feature for actual or potential TeaVM users, but there are plenty of such features, and I'm trying to guess (according to my own experience and feedback) what is more important right now. So if you really need ConcurrentLinkedQueue implementation and this is a show-stopper, you can try to motivate me to change my plans. You can try to convince me, that you are determined to create socket.io port for TeaVM and that this is going to make a lot of buzz around TeaVM and bring more users to it. Or you can become a sponsor. Anyway, my personal opinion that you don't need socket.io client for Java ported to JavaScript, because it was not written for this target with its specifics. I suggest that you write a socket.io TeaVM client, without the need in ConcurrentLinkedQueue and threads at all (just rely on JS event queue).

@varunsingh87
Copy link
Author

varunsingh87 commented Mar 16, 2024

I appreciate your quick response. I may write a socketio-teavm JavaScript-Java wrapper as a workaround for this issue.
If ConcurrentLinkedQueue works with socket.io, teavm becomes applicable to real-time multiplayer games and many other applications that use websockets. I would contribute this feature to teavm, but I don’t know have any knowledge of networking or compilers.

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

2 participants