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

Add Scala-Native examples (500USD bounty) #3647

Closed
4 tasks
lihaoyi opened this issue Oct 1, 2024 · 4 comments
Closed
4 tasks

Add Scala-Native examples (500USD bounty) #3647

lihaoyi opened this issue Oct 1, 2024 · 4 comments
Labels
Milestone

Comments

@lihaoyi
Copy link
Member

lihaoyi commented Oct 1, 2024


From the maintainer Li Haoyi: I'm putting a 500USD bounty on this issue, payable by bank transfer on a merged PR implementing this.


We already have Scala-Native support in scalanativelib, but it is not very discoverable and is not covered in the docsite. We should add example tests with explanations and include them in the docsite so people can read the docs and learn how to get started with a simple scala-native project.

This ticket is to add the following examples to a new example/scalalib/native folder:

  1. example/scalalib/native/1-simple: a simple hello-world Scala native project, similar to example/scalalib/basic/1-simple: build, test, run of a trivial one-module project with some trivial thirdparty dependencies

  2. example/scalalib/native/2-interop: a Scala-native project that interops with native C code that is compiled as part of the build, similar to example/javalib/module/15-jni

  3. example/scalalib/native/3-multi-module: a version of example/scalalib/basic/3-multi-module except the two modules are scala-native modules each with their own C code, and with both Scala- and C-level dependencies between the two modules

  4. example/scalalib/native/4-common-config: a version of example/scalalib/module/1-common-config but giving an overview of the important Scala-Native config specific overrides rather than the generic-Scala config overrides

These should be included in a new page in the documentation docs/modules/ROOT/pages/scalalib/native-examples.adoc titled Scala Native Examples, similar to docs/modules/ROOT/pages/scalalib/web-examples.adoc.

All the scala-native integration code should already be there, this ticket is just about documenting it and making it discoverable

@lihaoyi lihaoyi added the bounty label Oct 1, 2024
@ByteJoseph
Copy link

Paypal ?

@lihaoyi
Copy link
Member Author

lihaoyi commented Oct 3, 2024

Bank transfer, as stated in the description

@rom1dep
Copy link

rom1dep commented Oct 4, 2024

Do I understand correctly from #3583 that it would make those automatically available from mill init ? If so, that's brilliant :)

@lihaoyi
Copy link
Member Author

lihaoyi commented Oct 5, 2024

@rom1dep yes these can become automatically available from mill init. That's the whole point of #3583 after all!

lihaoyi pushed a commit that referenced this issue Oct 31, 2024
This is a PR to close issue #3647
@lihaoyi lihaoyi closed this as completed Nov 1, 2024
@lefou lefou added this to the 0.12.2 milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants