livecodes icon indicating copy to clipboard operation
livecodes copied to clipboard

Feature: support kotlin

Open xaaksw opened this issue 1 year ago • 4 comments

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

  • [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 Please see https://github.com/live-codes/livecodes/issues/516#issuecomment-1962798785

hatemhosny avatar Feb 25 '24 03:02 hatemhosny

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

hatemhosny avatar Feb 25 '24 03:02 hatemhosny

What about integrating with this ,

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

@hatemhosny

xaaksw avatar Feb 25 '24 03:02 xaaksw

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

hatemhosny avatar Mar 17 '24 23:03 hatemhosny