scala
Scala benjaminedwardwebb 1 year ago 100%
native binaries from Scala with sbt, sbt-native-packager, graalvm, and nix flakes codeberg.org

Hi there! Sharing a little example project I put together a while back that builds native binaries from Scala code using sbt, graalvm, and nix. It's dead simple and merely glues together the different technologies involved. But maybe a nix-curious Scala developer stumbling on this community will find it interesting as a template to copy. It relies on https://github.com/zaninime/sbt-derivation, which has worked well in my very limited usage of it.

8
1
scala Scala Welcome to this Scala community
Jump
agora The Agora [Discussion] Vote mechanics
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearBE
    benjaminedwardwebb
    1 year ago 100%

    I like the idea of using lemmy's builtin voting mechanism.

    I think for yes or no voting questions, it would be simplest to express all options with a single comment that is an affirmative statement on whatever is up for vote. Then each user action (pressing the upvote button, pressing the downvote button, or reading the post and pressing no button) maps exactly onto the vote a person casts.

    1