livecodes icon indicating copy to clipboard operation
livecodes copied to clipboard

Support java language

Open xaaksw opened this issue 1 year ago • 3 comments

Type of feature

✨ Feature

Current behavior

No response

Suggested feature

To allow java devs to have a playground on the go

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Contributing Docs

  • [X] I agree to follow this project's Contribution Docs

xaaksw avatar Feb 25 '24 03:02 xaaksw

Thank you for your interest and suggestions 💚

I would really love to support Java and kotlin (#517). However, I am not "yet" able to compile and run them in the browser.

LiveCodes is a client-side only app. All compilation and processing occur in the browser. There is no backend to compile any of the 80+ currently supported languages. And I really want to keep it like that. This allows huge benefits like being able to easily (self-)host the app on any static file server (for free), ability to scale to serve a large number of users without adding almost any significant load on server (currently hosted on Cloudflare CDN), potential to run offline (not yet implemented), etc.

Please see: https://livecodes.io/docs/why

I would really be grateful if someone can help or guide compiling/running Java/kotlin in the browser.

And again, thank you 🙏

hatemhosny avatar Feb 25 '24 03:02 hatemhosny

The closest I could find is Cheerpj https://cheerpj.com/

However, it is not open source.

hatemhosny avatar Feb 25 '24 04:02 hatemhosny

The other option would be loading a whole linux vm in the browser and use that to compile. A much more complex approach, however, it allows supporting a lot more languages.

https://github.com/copy/v86

hatemhosny avatar Feb 25 '24 04:02 hatemhosny