News for hackers. Stuff that matters.
Re:Show HN: Just.sh – compiler that turns Justfiles into por... by latchkey on Tuesday December 26, 2023 @01:24PM (#38774378)
This is fantastic, but I'd say that this solution is somewhat in response to this open issue from 2019:

https://github.com/casey/just/issues/429

I really wish just was included as a package in distributions.

Re:Show HN: Just.sh – compiler that turns Justfiles into por... by xonix on Tuesday December 26, 2023 @02:51PM (#38775370)
makesure, a similar tool (https://maximullaris.com/makesure-vs-just.html) I'm developing, doesn't require installation in the traditional sense: https://github.com/xonixx/makesure#installation.

Also, I was considering adding the same feature (generating the equivalent shell script) to my tool, but after doing some analysis decided not to pursue this idea for the following reasons: https://github.com/xonixx/makesure/issues/83#issuecomment-98....

Re:Show HN: Just.sh – compiler that turns Justfiles into por... by fbdab103 on Tuesday December 26, 2023 @02:46PM (#38775318)
Woof, four years. Is packaging really that complicated?
Re:Show HN: Just.sh – compiler that turns Justfiles into por... by jstrieb on Tuesday December 26, 2023 @04:55PM (#38776509)
My understanding is that building a .deb is not too hard. The hard part is finding a willing Debian project sponsor to add the package to the archive.

https://wiki.debian.org/DebianMentorsFaq#How_do_I_add_a_new_...

Re:Show HN: Just.sh – compiler that turns Justfiles into por... by jstrieb on Tuesday December 26, 2023 @01:39PM (#38774561)
I share your wish. This project started out because Just is not apt installable. But at a certain point, it became a "just for fun" project (pun intended).
Re:Show HN: Just.sh – compiler that turns Justfiles into por... by latchkey on Tuesday December 26, 2023 @01:48PM (#38774638)
You're totally right, it is a fun project. The problem is that if I'm writing Justfiles and transpiling them to shell... now I have 3 problems. Just, Python and shell.
Re:Show HN: Just.sh – compiler that turns Justfiles into por... by derefr on Tuesday December 26, 2023 @03:00PM (#38775463)
Presuming the just.sh compiler is doing everything right, you shouldn't have a shell problem, any more than using C compiler means you now have an assembly-language problem.

Also, the trade-off here (in my mind, at least) is that you could maintain higher-level Justfiles, but distribute releases containing the portable-shell-script artifacts of said compilation — so that anyone using your package doesn't need just, only a POSIX environment.

Re:Show HN: Just.sh – compiler that turns Justfiles into por... by rgoulter on Tuesday December 26, 2023 @10:02PM (#38778631)
Yeah.

For an individual.. if you're happy to install `just` in any place you're going to maintain the project, that seems better.

For helping others use the project, providing a bash script which has all the just UX would at least save them from having to install another tool. (Adds one thing for the maintainer, but saves one thing for others to install).

Re:Show HN: Just.sh – compiler that turns Justfiles into por... by SushiHippie on Wednesday December 27, 2023 @09:08AM (#38782011)
https://repology.org/project/just/versions

Mhm basically only Arch Linux, Chocolatey, FreeBSD, Gentoo and Homebrew. All others are outdated or nonexistent.