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

Implement Golem Scala plugin and exporter macro #1

Merged
merged 9 commits into from
Apr 1, 2024
Merged

Implement Golem Scala plugin and exporter macro #1

merged 9 commits into from
Apr 1, 2024

Conversation

danieletorelli
Copy link
Collaborator

This implements an SBT plugin that comes with a macro and with ScalaJS dependencies and settings preconfigured to avoid any ScalaJS boilerplate to the user.

The user can just add the @Worker annotation to the worker object and then run sbt fullLinkJS to have it ready.

Please check the README file and the SBT tests to see how it works more in details.

The macro is simple, and can be surely improved, but I think is a good starting point.

@danieletorelli danieletorelli self-assigned this Mar 21, 2024
@vigoo
Copy link

vigoo commented Mar 26, 2024

How is this project integrating with https://github.com/golemcloud/golem-scalajs-wit-bindgen ?

@danieletorelli
Copy link
Collaborator Author

How is this project integrating with https://github.com/golemcloud/golem-scalajs-wit-bindgen ?

@vigoo Indeed my idea would be to extend the work done in this PR to eventually be able to produce WASM directly.

The steps would be to:

I still have to think about it in details, but I've done all of this manually and it works. Now it would be just matter of automating the process as I described and then make it enough configurable / extensible to cover more complex use cases.

@danieletorelli danieletorelli merged commit 6a0d0d2 into golemcloud:main Apr 1, 2024
5 checks passed
@danieletorelli danieletorelli deleted the golem-scala-plugin branch April 1, 2024 10:06
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