live-codes / livecodes

Code Playground That Just Works!
https://livecodes.io
MIT License
718 stars 55 forks source link

Feature: support kotlin #517

Open xaaksw opened 4 months ago

xaaksw commented 4 months ago

Type of feature

✨ Feature

Current behavior

No response

Suggested feature

Support kotlin language, u can check kotlin website they have a play ground already, maybe integrate with them

Additional context

No response

Code of Conduct

Contributing Docs

hatemhosny commented 4 months ago

Thank you Please see https://github.com/live-codes/livecodes/issues/516#issuecomment-1962798785

hatemhosny commented 4 months ago

May be if this gets bootstrapped/self-hosted (compiles itself) https://kotlinlang.org/docs/js-overview.html

xaaksw commented 4 months ago

What about integrating with this ,

https://github.com/JetBrains/kotlin-playground

@hatemhosny

hatemhosny commented 3 months ago

What about integrating with this ,

https://github.com/JetBrains/kotlin-playground

@hatemhosny

sorry @xaaksw , I did not notice your comment.

I see that kotlin playground sends the code to a server to compile. This is against the philosophy of LiveCodes being a client-side app with all compilation strictly occurs in the browser as discussed here and here.

Having said that, I'm exploring the idea of allowing custom user-provided plugins that allows using custom compilers even if it is not supported by LiveCodes out-of-the-box (see #481). I think Kotlin can be one of the first candidates for such solution. I may even provide it as an example for using plugins.

Thanks again