Skip to content

Conversation

dkrasnoff
Copy link
Collaborator

No description provided.

@dkrasnoff dkrasnoff requested a review from zoobestik September 11, 2025 09:21
KotlinTranslatableCompiler.JS -> kotlinProjectExecutor.convertToJsIr(project)
KotlinTranslatableCompiler.WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo)
KotlinTranslatableCompiler.COMPOSE_WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo)
class CompilerRestController(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zoobestik please, check the contract of this controller. If it suits you.

internal const val WASM_DEFAULT_MODULE_NAME = "playground"

@Component
class CompilerArgumentsUtil(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tapchicoma could you please assist in reviewing this class

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, mainly white lists of arguments, should we remove something, or add

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also wonder about the hierarchy for WASM and JS. It seems that for WASM and the compose WASM build, we still need some arguments from the JS list.
I don't have much experience with WASM and JS, but it seems that either we have some mistakes in using it, or you have a mistake with grouping WASM and JS args.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding Wasm - JS arguments - I would propose to talk about it with Zalim

@dkrasnoff dkrasnoff force-pushed the dkrasnov/KTL-724-provide-the-opportunity-to-pass-kotlin-compiler-arguments branch 2 times, most recently from 26d34af to 5809835 Compare September 11, 2025 10:23
@dkrasnoff dkrasnoff force-pushed the kotlin-community/dev branch from 8fd7307 to 4f2f724 Compare October 1, 2025 10:20
We are using `kotlin-compiler-arguments-description` maven dependency for extracting all known compiler arguments for the current kotlin version.
We've added an endpoint for getting all known compiler dependencies by the given platform.
We've extended `run` and `translate` endpoints with the user's compiler args.
@dkrasnoff dkrasnoff force-pushed the dkrasnov/KTL-724-provide-the-opportunity-to-pass-kotlin-compiler-arguments branch from 5809835 to 4dd02f7 Compare October 1, 2025 12:44
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

Successfully merging this pull request may close these issues.

2 participants