3 ms·
The new official Scala build tool / compiler front end (scala-cli) is amazing, https://scala-cli.virtuslab.org/ https://scala-cli.virtuslab.org/ The thing tha
by xmcqdpt2 3y ago
The new official Scala build tool / compiler front end (scala-cli) is amazing,
https://scala-cli.virtuslab.org/ https://scala-cli.virtuslab.org/
The thing that really struck me after years of python is how it lets you out dependencies directly in a comment on top of a script and it will download and run with them automatically, without poisoning any system settings. It's so simple!
- mananaysiempre 3y ago> it lets you out dependencies directly in a comment on top of a script and it will download and run with them automatically, without poisoning any system settings The old-style nix-shell command in Nix can do this[1] for every language and package Nixpkgs supports, although it’s not that often used because it ties your shebangs to Nix. (An equivalent feature for the new CLI is a work in progress[2].) [1] https://nixos.org/manual/nix/stable/command-ref/nix-shell.html#use-as-a--interpreter https://nixos.org/manual/nix/stable/command-ref/nix-shell.ht... [2] https://github.com/NixOS/nix/pull/5189 https://github.com/NixOS/nix/pull/5189
- sverhagen 3y agoJust curious: what makes it "official"?
- xmcqdpt2 3y agoIt's going to be rolled out as the new standard Scala repl and compiler (instead of the current scalac which is a bit weak on features.)